BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
dchain::WholeItr< T > Class Template Reference

#include <WholeItr.h>

+ Inheritance diagram for dchain::WholeItr< T >:

Public Types

typedef WholeCandidateItr< typename T::CandidateClass > ParentType
 
typedef ParentType::difference_type difference_type
 
typedef ParentType::size_type size_type
 
- Public Types inherited from dchain::WholeCandidateItr< T::CandidateClass >
typedef const LabeledCandidate< T::CandidateClass > value_type
 
typedef dchain::candidateitr::size_type distance_type
 
typedef dchain::candidateitr::size_type size_type
 
typedef dchain::candidateitr::difference_type difference_type
 
typedef std::random_access_iterator_tag iterator_category
 
typedef const LabeledCandidate< T::CandidateClass > * pointer
 
typedef const LabeledCandidate< T::CandidateClass > & reference
 

Public Member Functions

 WholeItr (const WholeItr< T > &aOtherItr)
 
const WholeItr< T > & operator= (const WholeItr< T > &aOtherItr)
 
WholeItr< T > & operator++ ()
 
WholeItr< T > operator++ (int)
 
WholeItr< T > & operator-- ()
 
WholeItr< T > operator-- (int)
 
WholeItr< T > & operator+= (difference_type n)
 
WholeItr< T > operator+ (difference_type n)
 
WholeItr< T > & operator-= (difference_type n)
 
WholeItr< T > operator- (difference_type n)
 
const LabeledParticle< T > & operator* () const
 
const LabeledParticle< T > & operator[] (size_type n) const
 
difference_type operator- (const WholeItr< T > &aOtherItr) const
 
- Public Member Functions inherited from dchain::WholeCandidateItr< T::CandidateClass >
 WholeCandidateItr (const WholeCandidateItr< T::CandidateClass > &aOtherItr)
 
virtual ~WholeCandidateItr ()
 
const WholeCandidateItroperator= (const WholeCandidateItr< T::CandidateClass > &aOtherItr)
 
WholeCandidateItr< T::CandidateClass > & operator++ ()
 
WholeCandidateItr< T::CandidateClass > operator++ (int)
 
WholeCandidateItr< T::CandidateClass > & operator-- ()
 
WholeCandidateItr< T::CandidateClass > operator-- (int)
 
WholeCandidateItr< T::CandidateClass > & operator+= (difference_type n)
 
WholeCandidateItr< T::CandidateClass > operator+ (difference_type n)
 
WholeCandidateItr< T::CandidateClass > & operator-= (difference_type n)
 
WholeCandidateItr< T::CandidateClass > operator- (difference_type n)
 
difference_type operator- (const WholeCandidateItr< T::CandidateClass > &aOtherItr) const
 
const LabeledCandidate< T::CandidateClass > & operator* () const
 
const LabeledCandidate< T::CandidateClass > & operator[] (size_type n) const
 
bool operator== (const WholeCandidateItr< T::CandidateClass > &aOtherItr) const
 
bool operator!= (const WholeCandidateItr< T::CandidateClass > &aOtherItr) const
 
bool operator< (const WholeCandidateItr< T::CandidateClass > &aOtherItr) const
 
bool operator> (const WholeCandidateItr< T::CandidateClass > &aOtherItr) const
 
bool operator>= (const WholeCandidateItr< T::CandidateClass > &aOtherItr) const
 
bool operator<= (const WholeCandidateItr< T::CandidateClass > &aOtherItr) const
 

Protected Member Functions

 WholeItr (const IndexedLabeledParticles< T, typename T::CandidateClass > *aList, const size_type aIndex)
 
- Protected Member Functions inherited from dchain::WholeCandidateItr< T::CandidateClass >
 WholeCandidateItr (const IndexedLabeledCandidates< T::CandidateClass > *aList, const size_type aIndex)
 
IndexedLabeledCandidates< T::CandidateClass > * indexedCandidates () const
 
size_type index () const
 

Friends

class LabeledParticleList< T, typename T::CandidateClass >
 

Detailed Description

template<class T>
class dchain::WholeItr< T >

Definition at line 84 of file WholeItr.h.

Member Typedef Documentation

◆ difference_type

template<class T >
typedef ParentType::difference_type dchain::WholeItr< T >::difference_type

Definition at line 92 of file WholeItr.h.

◆ ParentType

template<class T >
typedef WholeCandidateItr<typename T::CandidateClass> dchain::WholeItr< T >::ParentType

Definition at line 91 of file WholeItr.h.

◆ size_type

template<class T >
typedef ParentType::size_type dchain::WholeItr< T >::size_type

Definition at line 93 of file WholeItr.h.

Constructor & Destructor Documentation

◆ WholeItr() [1/2]

template<class T >
dchain::WholeItr< T >::WholeItr ( const WholeItr< T > &  aOtherItr)
inline

Definition at line 176 of file WholeItr.h.

176 :
177 WholeCandidateItr< typename T::CandidateClass >( aOtherItr )
178{
179}

◆ WholeItr() [2/2]

template<class T >
dchain::WholeItr< T >::WholeItr ( const IndexedLabeledParticles< T, typename T::CandidateClass > *  aList,
const size_type  aIndex 
)
inlineprotected

Definition at line 143 of file WholeItr.h.

144 :
145 WholeCandidateItr< typename T::CandidateClass >( aList ,
146 aIndex ) {}

Member Function Documentation

◆ operator*()

template<class T >
const LabeledParticle< T > & dchain::WholeItr< T >::operator*
inline

Definition at line 237 of file WholeItr.h.

238{
239 return ( ( *(IndexedLabeledParticles< T , typename T::CandidateClass >*)(this->indexedCandidates()) ).labeledParticleClass( this->index() ) ) ;
240}
IndexedLabeledCandidates< T::CandidateClass > * indexedCandidates() const

◆ operator+()

template<class T >
WholeItr< T > dchain::WholeItr< T >::operator+ ( difference_type  n)
inline

Definition at line 112 of file WholeItr.h.

113 {
114 WholeItr< T > tmp( *this ) ;
115 return ( tmp += n ) ;
116 }

◆ operator++() [1/2]

template<class T >
WholeItr< T > & dchain::WholeItr< T >::operator++
inline

Definition at line 199 of file WholeItr.h.

200{
202 return ( *this ) ;
203}
WholeCandidateItr< CandidateClass > & operator++()

◆ operator++() [2/2]

template<class T >
WholeItr< T > dchain::WholeItr< T >::operator++ ( int  )
inline

Definition at line 207 of file WholeItr.h.

208{
209 WholeItr< T > tmp( *this ) ;
211 return ( tmp ) ;
212}

◆ operator+=()

template<class T >
WholeItr< T > & dchain::WholeItr< T >::operator+= ( difference_type  n)
inline

Definition at line 107 of file WholeItr.h.

108 {
110 return( *this ) ;
111 }
WholeCandidateItr< CandidateClass > & operator+=(difference_type n)

◆ operator-() [1/2]

template<class T >
difference_type dchain::WholeItr< T >::operator- ( const WholeItr< T > &  aOtherItr) const
inline

Definition at line 134 of file WholeItr.h.

135 {
136 return ( this->index() - aOtherItr.index() ) ;
137 }

◆ operator-() [2/2]

template<class T >
WholeItr< T > dchain::WholeItr< T >::operator- ( difference_type  n)
inline

Definition at line 122 of file WholeItr.h.

123 {
124 WholeItr< T > tmp( *this ) ;
125 return ( tmp -= n ) ;
126 }

◆ operator--() [1/2]

template<class T >
WholeItr< T > & dchain::WholeItr< T >::operator--
inline

Definition at line 216 of file WholeItr.h.

217{
219 return ( *this ) ;
220}
WholeCandidateItr< CandidateClass > & operator--()

◆ operator--() [2/2]

template<class T >
WholeItr< T > dchain::WholeItr< T >::operator-- ( int  )
inline

Definition at line 224 of file WholeItr.h.

225{
226 WholeItr< T > tmp( *this ) ;
228 return ( tmp ) ;
229}

◆ operator-=()

template<class T >
WholeItr< T > & dchain::WholeItr< T >::operator-= ( difference_type  n)
inline

Definition at line 117 of file WholeItr.h.

118 {
120 return( *this ) ;
121 }
WholeCandidateItr< CandidateClass > & operator-=(difference_type n)

◆ operator=()

template<class T >
const WholeItr< T > & dchain::WholeItr< T >::operator= ( const WholeItr< T > &  aOtherItr)
inline

Definition at line 187 of file WholeItr.h.

188{
190 return ( *this ) ;
191}
const WholeCandidateItr & operator=(const WholeCandidateItr< CandidateClass > &aOtherItr)

◆ operator[]()

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

Definition at line 130 of file WholeItr.h.

131 {
132 return ( ( *(IndexedLabeledParticles< T , typename T::CandidateClass >*)(this->indexedCandidates()) ).labeledParticleClass( this->index() + n ) ) ;
133 }

Friends And Related Function Documentation

◆ LabeledParticleList< T, typename T::CandidateClass >

template<class T >
friend class LabeledParticleList< T, typename T::CandidateClass >
friend

Definition at line 237 of file WholeItr.h.


The documentation for this class was generated from the following file: