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...
virtual EIPtr clone() const
Standard clone method.
virtual vector< tcColinePtr > colourLines() const
Return the colour lines to which this particle is connected.
EventInfoBase is a base class for information objects.
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...
tColinePtr antiColourLine() const
Return the anti-colour line to which this particle is connected.
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
tColinePtr colourLine() const
Return the colour line to which this particle is connected.
Rebinder is a class associating pairs of pointers to objects.
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.
virtual ~ColourBase()
Destructor.
virtual void antiColourLine(tColinePtr line)
Set the anti-colour line to which this particle is connected.
virtual void rebind(const EventTranslationMap &trans)
Rebind to cloned objects.
virtual bool hasColourLine(tcColinePtr line, bool anti=false) const
Return true if the particle is connected to the given (anti-) colour line.
ThePEG::Ptr< ColourLine >::transient_pointer tColinePtr
Alias for a transient pointer to ColourLine .
RCPtr is a reference counted (smart) pointer.
void persistentOutput(PersistentOStream &) const
Standard function for writing to a persistent stream.
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.
virtual vector< tcColinePtr > antiColourLines() const
Return the anti-colour lines to which this particle is connected.
The ColourLine class represents colour lines connecting Particles.
void persistentInput(PersistentIStream &, int)
Standard functions for reading from a persistent stream.
bool hasAntiColourLine(tcColinePtr line) const
Return true if the particle is connected to the given anti-colour line.
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.