#include <ColourBase.h>
Public Member Functions | |
virtual | ~ColourBase () |
Destructor. | |
tColinePtr | antiColourLine () const |
Return the anti-colour line to which this particle is connected. | |
tColinePtr | colourLine () const |
Return the colour line to which this particle is connected. | |
virtual vector< tcColinePtr > | antiColourLines () const |
Return the anti-colour lines to which this particle is connected. | |
virtual vector< tcColinePtr > | colourLines () const |
Return the colour lines to which this particle is connected. | |
virtual bool | hasColourLine (tcColinePtr line, bool anti=false) const |
Return true if the particle is connected to the given (anti-) colour line. | |
bool | hasAntiColourLine (tcColinePtr line) const |
Return true if the particle is connected to the given anti-colour line. | |
virtual void | rebind (const EventTranslationMap &trans) |
Rebind to cloned objects. | |
void | persistentOutput (PersistentOStream &) const |
Standard function for writing to a persistent stream. | |
void | persistentInput (PersistentIStream &, int) |
Standard functions for reading from a persistent stream. | |
virtual EIPtr | clone () const |
Standard clone method. | |
Static Public Member Functions | |
static void | Init () |
Standard Init function. | |
Protected Member Functions | |
virtual void | antiColourLine (tColinePtr line) |
Set the anti-colour line to which this particle is connected. | |
virtual void | colourLine (tColinePtr l, bool anti=false) |
Set the (anti-) colour line to which this particle is connected. | |
virtual void | removeAntiColourLine (tcColinePtr line) |
Remove the anti-colour line to which this particle is connected. | |
virtual void | removeColourLine (tcColinePtr line, bool anti=false) |
Remove the (anti-) colour line to which this particle is connected. | |
Private Member Functions | |
ColourBase & | operator= (const ColourBase &) |
Private and non-existent assignment operator. | |
Private Attributes | |
ColinePtr | theAntiColourLine |
The anti-colour line to which this particle is connected. | |
ColinePtr | theColourLine |
The colour line to which this particle is connected. | |
Static Private Attributes | |
static ClassDescription < ColourBase > | initColourBase |
Describe concrete class with persistent data. | |
Friends | |
class | ColourLine |
ColourLine is a good friend. |
This base class supplies information about the ColourLine
s to which the particle is connected. This should be sufficient for most uses. If any other info is required for a particle, it may be supplied by an object of a sub-class of ColourBase
, the additional information would then have to be extracted by dynamically casting to the sub-class.
Definition at line 32 of file ColourBase.h.
virtual vector<tcColinePtr> ThePEG::ColourBase::antiColourLines | ( | ) | const [virtual] |
Return the anti-colour lines to which this particle is connected.
(Always only one colour line for this base class.)
Reimplemented in ThePEG::MultiColour.
virtual vector<tcColinePtr> ThePEG::ColourBase::colourLines | ( | ) | const [virtual] |
Return the colour lines to which this particle is connected.
(Always only one colour line for this base class.)
Reimplemented in ThePEG::MultiColour.
virtual void ThePEG::ColourBase::rebind | ( | const EventTranslationMap & | trans | ) | [virtual] |
Rebind to cloned objects.
When a ColourBase is cloned, a shallow copy is done first, then all ColourLine
s etc, are cloned, and finally this method is used to see to that the pointers in the cloned ColourBase points to the cloned ColourLine
s etc.
Reimplemented from ThePEG::EventInfoBase.
static void ThePEG::ColourBase::Init | ( | ) | [static] |
Standard Init function.
Reimplemented from ThePEG::EventInfoBase.
Reimplemented in ThePEG::MultiColour.
friend class ColourLine [friend] |