dchain::LabeledParticle< T > Class Template Reference

#include <LabeledParticle.h>

Inheritance diagram for dchain::LabeledParticle< T >:

dchain::LabeledCandidate< CandidateClass > List of all members.

Public Member Functions

 LabeledParticle ()
 LabeledParticle (const LabeledParticle< T > &aOtherLabeled)
template<class THolder>
 LabeledParticle (THolder aT, const typename conjugation::Label aLabel)
const T & operator() () const
const T & particle () 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

CandidateClass * pointer ()
const CandidateClass * pointer () const

Detailed Description

template<class T>
class dchain::LabeledParticle< T >

Definition at line 73 of file LabeledParticle.h.


Constructor & Destructor Documentation

template<class T>
dchain::LabeledParticle< T >::LabeledParticle (  )  [inline]

Definition at line 81 of file LabeledParticle.h.

00081 {}

template<class T>
dchain::LabeledParticle< T >::LabeledParticle ( const LabeledParticle< T > &  aOtherLabeled  )  [inline]

Definition at line 82 of file LabeledParticle.h.

00082                                                                    :
00083          LabeledCandidate<typename ParticleTraits<T>::CandidateType>(aOtherLabeled) {}

template<class T>
template<class THolder>
dchain::LabeledParticle< T >::LabeledParticle ( THolder  aT,
const typename conjugation::Label  aLabel 
) [inline]

Definition at line 86 of file LabeledParticle.h.

00087                                                                :
00088          LabeledCandidate<typename ParticleTraits<T>::CandidateType>(aT,aLabel) {}


Member Function Documentation

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

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, inherited]

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, inherited]

Definition at line 83 of file LabeledCandidate.h.

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

template<class T>
const T& dchain::LabeledParticle< T >::operator() ( void   )  const [inline]

Reimplemented from dchain::LabeledCandidate< CandidateClass >.

Definition at line 98 of file LabeledParticle.h.

References dchain::LabeledCandidate< CandidateClass >::pointer().

00098                                   {
00099          return *static_cast<const T*>(this->pointer());
00100       }

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

Definition at line 79 of file LabeledCandidate.h.

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

template<class T>
const T& dchain::LabeledParticle< T >::particle (  )  const [inline]

Definition at line 102 of file LabeledParticle.h.

References dchain::LabeledCandidate< CandidateClass >::pointer().

00102                                 {
00103          return *static_cast<const T*>(this->pointer());
00104       }

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

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, inherited]

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       }


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