9 #ifndef ThePEG_ColourBase_H 10 #define ThePEG_ColourBase_H 13 #include "ThePEG/EventRecord/EventInfoBase.h" 14 #include "ThePEG/EventRecord/ColourLine.h" ColourBase & operator=(const ColourBase &)
Private and non-existent assignment operator.
PersistentIStream is used to read persistent objects from a stream where they were previously written...
EventInfoBase is a base class for information objects.
virtual vector< tcColinePtr > antiColourLines() const
Return the anti-colour lines to which this particle is connected.
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data...
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from...
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
Rebinder is a class associating pairs of pointers to objects.
void persistentOutput(PersistentOStream &) const
Standard function for writing to a persistent stream.
This is the main namespace within which all identifiers in ThePEG are declared.
virtual void colourLine(tColinePtr l, bool anti=false)
Set the (anti-) colour line to which this particle is connected.
tColinePtr antiColourLine() const
Return the anti-colour line to which this particle is connected.
virtual EIPtr clone() const
Standard clone method.
virtual ~ColourBase()
Destructor.
virtual void antiColourLine(tColinePtr line)
Set the anti-colour line to which this particle is connected.
bool hasAntiColourLine(tcColinePtr line) const
Return true if the particle is connected to the given anti-colour line.
virtual bool hasColourLine(tcColinePtr line, bool anti=false) const
Return true if the particle is connected to the given (anti-) colour line.
virtual void rebind(const EventTranslationMap &trans)
Rebind to cloned objects.
ThePEG::Ptr< ColourLine >::transient_pointer tColinePtr
Alias for a transient pointer to ColourLine .
RCPtr is a reference counted (smart) pointer.
ColourBase is the base class to be used to supply a Particle with information about its colour state...
ColinePtr theColourLine
The colour line to which this particle is connected.
static ClassDescription< ColourBase > initColourBase
Describe concrete class with persistent data.
The ColourLine class represents colour lines connecting Particles.
tColinePtr colourLine() const
Return the colour line to which this particle is connected.
virtual vector< tcColinePtr > colourLines() const
Return the colour lines to which this particle is connected.
void persistentInput(PersistentIStream &, int)
Standard functions for reading from a persistent stream.
virtual void removeAntiColourLine(tcColinePtr line)
Remove the anti-colour line to which this particle is connected.
static void Init()
Standard Init function.
virtual void removeColourLine(tcColinePtr line, bool anti=false)
Remove the (anti-) colour line to which this particle is connected.
ColinePtr theAntiColourLine
The anti-colour line to which this particle is connected.