dchain::LabeledCandidate< CandidateClass > Class Template Reference

#include <LabeledCandidate.h>

Inheritance diagram for dchain::LabeledCandidate< CandidateClass >:

dchain::LabeledParticle< T > List of all members.

Public Member Functions

 LabeledCandidate ()
 LabeledCandidate (const LabeledCandidate< CandidateClass > &aOtherLabeled)
virtual ~LabeledCandidate ()
const LabeledCandidateoperator= (const LabeledCandidate< CandidateClass > &aOtherLabeled)
const CandidateClass & operator() () const
const CandidateClass & labeledClass () const
conjugation::Label label () const
bool operator== (const conjugation::Label &aLabel) const
bool operator!= (const conjugation::Label &aLabel) const

Protected Member Functions

template<class THolder>
 LabeledCandidate (THolder aCandidateClass, const conjugation::Label aLabel)
CandidateClass * pointer ()
const CandidateClass * pointer () const

Private Attributes

ReferenceHolder< CandidateClass > m_pointer
conjugation::Label m_label

Detailed Description

template<class CandidateClass>
class dchain::LabeledCandidate< CandidateClass >

Definition at line 37 of file LabeledCandidate.h.


Constructor & Destructor Documentation

template<class CandidateClass>
dchain::LabeledCandidate< CandidateClass >::LabeledCandidate (  )  [inline]

Definition at line 45 of file LabeledCandidate.h.

00045 {}

template<class CandidateClass>
dchain::LabeledCandidate< CandidateClass >::LabeledCandidate ( const LabeledCandidate< CandidateClass > &  aOtherLabeled  )  [inline]

Definition at line 46 of file LabeledCandidate.h.

00046                                                                                   :
00047          m_pointer( aOtherLabeled.m_pointer ) ,
00048          m_label( aOtherLabeled.m_label )
00049       {}
      virtual ~LabeledCandidate() {}

template<class CandidateClass>
virtual dchain::LabeledCandidate< CandidateClass >::~LabeledCandidate (  )  [inline, virtual]

Definition at line 50 of file LabeledCandidate.h.

00050 {}

template<class CandidateClass>
template<class THolder>
dchain::LabeledCandidate< CandidateClass >::LabeledCandidate ( THolder  aCandidateClass,
const conjugation::Label  aLabel 
) [inline, protected]

Definition at line 93 of file LabeledCandidate.h.

00094                                                           :
00095          m_pointer(aCandidateClass),
00096          m_label(aLabel) {}


Member Function Documentation

template<class CandidateClass>
conjugation::Label dchain::LabeledCandidate< CandidateClass >::label (  )  const [inline]

Definition at line 75 of file LabeledCandidate.h.

00075                                      {
00076          return ( m_label ) ;
00077       }

template<class CandidateClass>
const CandidateClass& dchain::LabeledCandidate< CandidateClass >::labeledClass (  )  const [inline]

Definition at line 71 of file LabeledCandidate.h.

00071                                                  {
00072          return ( *m_pointer ) ;
00073       }

template<class CandidateClass>
bool dchain::LabeledCandidate< CandidateClass >::operator!= ( const conjugation::Label aLabel  )  const [inline]

Definition at line 83 of file LabeledCandidate.h.

00083                                                               {
00084          return ( aLabel != m_label ) ;
00085       }

template<class CandidateClass>
const CandidateClass& dchain::LabeledCandidate< CandidateClass >::operator() ( void   )  const [inline]

Reimplemented in LabeledDecay< DecayClass >, and dchain::LabeledParticle< T >.

Definition at line 66 of file LabeledCandidate.h.

00066                                                {
00067          return ( *m_pointer ) ;
00068       }

template<class CandidateClass>
const LabeledCandidate& dchain::LabeledCandidate< CandidateClass >::operator= ( const LabeledCandidate< CandidateClass > &  aOtherLabeled  )  [inline]

Definition at line 53 of file LabeledCandidate.h.

00054       {
00055          m_pointer = aOtherLabeled.m_pointer ;
00056          m_label = aOtherLabeled.m_label ;
00057          return ( *this ) ;
00058       }

template<class CandidateClass>
bool dchain::LabeledCandidate< CandidateClass >::operator== ( const conjugation::Label aLabel  )  const [inline]

Definition at line 79 of file LabeledCandidate.h.

00079                                                               {
00080          return ( aLabel == m_label ) ;
00081       }

template<class CandidateClass>
const CandidateClass* dchain::LabeledCandidate< CandidateClass >::pointer (  )  const [inline, protected]

Definition at line 104 of file LabeledCandidate.h.

00104                                             {
00105          return ( m_pointer.pointer() ) ;
00106       }

template<class CandidateClass>
CandidateClass* dchain::LabeledCandidate< CandidateClass >::pointer (  )  [inline, protected]

Definition at line 99 of file LabeledCandidate.h.

Referenced by dchain::LabeledParticle< T >::operator()(), and dchain::LabeledParticle< T >::particle().

00099                                 {
00100          return m_pointer.pointer();
00101       }


Member Data Documentation

template<class CandidateClass>
conjugation::Label dchain::LabeledCandidate< CandidateClass >::m_label [private]

Definition at line 118 of file LabeledCandidate.h.

Referenced by dchain::LabeledCandidate< dchain::ParticleTraits< T >::CandidateType >::label(), dchain::LabeledCandidate< dchain::ParticleTraits< T >::CandidateType >::operator!=(), dchain::LabeledCandidate< dchain::ParticleTraits< T >::CandidateType >::operator=(), and dchain::LabeledCandidate< dchain::ParticleTraits< T >::CandidateType >::operator==().

template<class CandidateClass>
ReferenceHolder<CandidateClass> dchain::LabeledCandidate< CandidateClass >::m_pointer [private]

Definition at line 117 of file LabeledCandidate.h.

Referenced by dchain::LabeledCandidate< dchain::ParticleTraits< T >::CandidateType >::labeledClass(), dchain::LabeledCandidate< dchain::ParticleTraits< T >::CandidateType >::operator()(), dchain::LabeledCandidate< dchain::ParticleTraits< T >::CandidateType >::operator=(), and dchain::LabeledCandidate< dchain::ParticleTraits< T >::CandidateType >::pointer().


Generated on Tue Nov 29 23:36:25 2016 for BOSS_7.0.2 by  doxygen 1.4.7