9 #ifndef ThePEG_Containers_H 10 #define ThePEG_Containers_H 25 #include "ThePEG/Utilities/UnitIO.h" 178 template <
typename T,
typename U>
179 vector<T> & operator<<(vector<T> & tv,
const U & u) {
191 template <
typename T,
typename U>
205 template <
typename T,
typename U>
206 stack<T> & operator<<(stack<T> & ts,
const U & u) {
218 template <
typename T,
typename U>
232 template <
typename T,
typename U>
233 deque<T> & operator<<(deque<T> & td,
const U & u) {
245 template <
typename T,
typename U>
259 template <
typename T,
typename U>
260 set<T> & operator<<(set<T> & ts,
const U & u) {
274 template <
typename OStream,
typename T,
typename Alloc,
typename UT>
275 void ounitstream(OStream & os,
const vector<T,Alloc> & v, UT & u) {
277 for (
typename vector<T,Alloc>::const_iterator i = v.begin();
288 template <
typename IStream,
typename T,
typename Alloc,
typename UT>
290 typename vector<T,Alloc>::size_type l;
293 for (
typename vector<T,Alloc>::iterator i = v.begin(); i != v.end(); ++i )
303 template <
typename OStream,
typename T,
typename CMP,
typename A,
typename UT>
306 for (
typename set<T,CMP,A>::const_iterator i = s.begin(); i != s.end(); ++i )
316 template <
typename IStream,
typename T,
typename CMP,
typename A,
typename UT>
319 typename set<T,CMP,A>::size_type l;
335 template <
typename OStream,
typename K,
typename T,
336 typename CMP,
typename A,
typename UT>
337 void ounitstream(OStream & os,
const map<K,T,CMP,A> & m, UT & u) {
339 for (
typename map<K,T,CMP,A>::const_iterator i = m.begin();
341 os << i->first <<
ounit(i->second, u);
351 template <
typename IStream,
typename K,
typename T,
352 typename CMP,
typename A,
typename UT>
355 typename map<K,T,CMP,A>::size_type l;
360 is >> k >>
iunit(t, u);
pair< cPPtr, cPPtr > cPPair
A pair of pointers to const Particle objects.
pair< tcPDPtr, tcPDPtr > tcPDPair
A pair of transient pointers to const ParticleData objects.
vector< cPPtr > cPVector
A vector of pointers to const Particle objects.
pair< tColinePtr, tColinePtr > tColinePair
A pair of transient pointers to ColourLine objects.
The InterfaceBase class defines a generic interface to any class derived from the InterfacedBase clas...
void ounitstream(OStream &os, const vector< T, Alloc > &v, UT &u)
Ouput a vector of objects with the specified unit.
vector< tcPDPtr > tcPDVector
A vector of transient pointers to const ParticleData objects.
ThePEG_DECLARE_SET(PDPtr, ParticleDataSet)
A set of pointers to ParticleData objects.
list< tPPtr > tPList
A list of transient pointers to Particle objects.
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
list< tcPPtr > tcPList
A list of transient pointers to const Particle objects.
Rebinder is a class associating pairs of pointers to objects.
This is the main namespace within which all identifiers in ThePEG are declared.
pair< tcPPtr, tcPPtr > tcPPair
A pair of transient pointers to const Particle objects.
vector< double > DVector
A vector of doubles.
void iunitstream(IStream &is, vector< T, Alloc > &v, UT &u)
Input a vector of objects with the specified unit.
pair< tPPtr, tPPtr > tPPair
A pair of transient pointers to const Particle objects.
vector< Energy > EnergyVector
A vector of energies.
vector< cIBPtr > CIVector
A vector of pointers to const InterfacedBase objects.
list< PPtr > ParticleList
A list of pointers to Particle objects.
ThePEG_DECLARE_MAP(long, PDPtr, ParticleMap)
A map relating integers to ParticleData objects.
vector< tPDPair > tPartonPairVec
A vector of pairs of transient pointers to PartonBins.
vector< tPDPtr > tPDVector
A vector of transient pointers to ParticleData objects.
vector< tcPPtr > tcPVector
A vector of transient pointers to const Particle objects.
OUnit< T, UT > ounit(const T &t, const UT &ut)
Helper function creating a OUnit object given an object and a unit.
vector< T > & operator>>(vector< T > &tv, U &u)
Overload the right shift operator for vector to pop objects from a vector.
pair< PDPtr, PDPtr > PDPair
A pair of pointers to ParticleData objects.
ThePEG::Ptr< ParticleData >::pointer PDPtr
Alias for a reference counted pointer to ParticleData .
pair< PPtr, PPtr > PPair
A pair of pointers to Particle objects.
RCPtr is a reference counted (smart) pointer.
pair< double, double > DPair
A pair of doubles.
pair< tPDPtr, tPDPtr > tPDPair
A pair of transient pointers to ParticleData objects.
vector< cPDPtr > cPDVector
A vector of pointers to const ParticleData objects.
vector< PDPtr > PDVector
A vector of pointers to ParticleData objects.
vector< SInterval > SIntervalVector
A vector of intervals of scales.
Interval< Energy2 > SInterval
An Interval in scale.
list< cPPtr > cPList
A list of pointers to const Particle objects.
pair< cPDPtr, cPDPtr > cPDPair
A pair of pointers to const ParticleData objects.
vector< tPPtr > tPVector
A vector of transient pointers to Particle objects.
vector< IBPtr > IVector
A vector of pointers to InterfacedBase objects.
vector< PPtr > ParticleVector
A vector of pointers to Particle objects.
vector< PPtr > PVector
A vector of pointers to Particle objects.
vector< AnaPtr > AnalysisVector
A vector of pointers to AnalysisHandler objects.
vector< EIPtr > EIVector
A vector of pointers to EventInfoBase objects.
Rebinder< InterfacedBase > TranslationMap
A rebinder for InterfacedBase objects.
list< PPtr > PList
A list of pointers to Particle objects.
IUnit< T, UT > iunit(T &t, const UT &ut)
Helper function creating a IUnit object given an object and a unit.