BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
dchain::MuteWholeCandidateItr< CandidateClass > Class Template Reference

#include <MuteWholeCandidateItr.h>

Public Types

typedef const LabeledCandidate< CandidateClass > value_type
 
typedef candidateitr::size_type distance_type
 
typedef candidateitr::size_type size_type
 
typedef candidateitr::difference_type difference_type
 
typedef std::random_access_iterator_tag iterator_category
 
typedef const LabeledCandidate< CandidateClass > * pointer
 
typedef const LabeledCandidate< CandidateClass > & reference
 

Public Member Functions

 MuteWholeCandidateItr (const MuteWholeCandidateItr< CandidateClass > &aOtherItr)
 
virtual ~MuteWholeCandidateItr ()
 
const MuteWholeCandidateItr< CandidateClass > & operator= (const MuteWholeCandidateItr< CandidateClass > &aOtherItr)
 
MuteWholeCandidateItr< CandidateClass > & operator++ ()
 
MuteWholeCandidateItr< CandidateClass > operator++ (int)
 
MuteWholeCandidateItr< CandidateClass > & operator-- ()
 
MuteWholeCandidateItr< CandidateClass > operator-- (int)
 
MuteWholeCandidateItr< CandidateClass > & operator+= (difference_type n)
 
MuteWholeCandidateItr< CandidateClass > operator+ (difference_type n)
 
MuteWholeCandidateItr< CandidateClass > & operator-= (difference_type n)
 
MuteWholeCandidateItr< CandidateClass > operator- (difference_type n)
 
LabeledCandidate< CandidateClass > & operator* () const
 
LabeledCandidate< CandidateClass > & operator[] (size_type n) const
 
difference_type operator- (const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator== (const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator!= (const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator< (const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator> (const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator>= (const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
 
bool operator<= (const MuteWholeCandidateItr< CandidateClass > &aOtherItr) const
 

Protected Member Functions

 MuteWholeCandidateItr (IndexedLabeledCandidates< CandidateClass > *aList, const size_type aIndex)
 
IndexedLabeledCandidates< CandidateClass > * indexedCandidates () const
 
size_type index () const
 

Friends

class LabeledCandidateList< CandidateClass >
 

Detailed Description

template<class CandidateClass>
class dchain::MuteWholeCandidateItr< CandidateClass >

Definition at line 43 of file MuteWholeCandidateItr.h.

Member Typedef Documentation

◆ difference_type

template<class CandidateClass >
typedef candidateitr::difference_type dchain::MuteWholeCandidateItr< CandidateClass >::difference_type

Definition at line 53 of file MuteWholeCandidateItr.h.

◆ distance_type

template<class CandidateClass >
typedef candidateitr::size_type dchain::MuteWholeCandidateItr< CandidateClass >::distance_type

Definition at line 51 of file MuteWholeCandidateItr.h.

◆ iterator_category

template<class CandidateClass >
typedef std::random_access_iterator_tag dchain::MuteWholeCandidateItr< CandidateClass >::iterator_category

Definition at line 54 of file MuteWholeCandidateItr.h.

◆ pointer

template<class CandidateClass >
typedef const LabeledCandidate<CandidateClass>* dchain::MuteWholeCandidateItr< CandidateClass >::pointer

Definition at line 55 of file MuteWholeCandidateItr.h.

◆ reference

template<class CandidateClass >
typedef const LabeledCandidate<CandidateClass>& dchain::MuteWholeCandidateItr< CandidateClass >::reference

Definition at line 56 of file MuteWholeCandidateItr.h.

◆ size_type

template<class CandidateClass >
typedef candidateitr::size_type dchain::MuteWholeCandidateItr< CandidateClass >::size_type

Definition at line 52 of file MuteWholeCandidateItr.h.

◆ value_type

template<class CandidateClass >
typedef const LabeledCandidate<CandidateClass> dchain::MuteWholeCandidateItr< CandidateClass >::value_type

Definition at line 50 of file MuteWholeCandidateItr.h.

Constructor & Destructor Documentation

◆ MuteWholeCandidateItr() [1/2]

template<class CandidateClass >
dchain::MuteWholeCandidateItr< CandidateClass >::MuteWholeCandidateItr ( const MuteWholeCandidateItr< CandidateClass > &  aOtherItr)
inline

Definition at line 146 of file MuteWholeCandidateItr.h.

146 :
147 m_indexedCandidates( aOtherItr.indexedCandidates() ) ,
148 m_index( aOtherItr.index() )
149{
150}

◆ ~MuteWholeCandidateItr()

template<class CandidateClass >
virtual dchain::MuteWholeCandidateItr< CandidateClass >::~MuteWholeCandidateItr ( )
inlinevirtual

Definition at line 60 of file MuteWholeCandidateItr.h.

60{}

◆ MuteWholeCandidateItr() [2/2]

template<class CandidateClass >
dchain::MuteWholeCandidateItr< CandidateClass >::MuteWholeCandidateItr ( IndexedLabeledCandidates< CandidateClass > *  aList,
const size_type  aIndex 
)
inlineprotected

Definition at line 154 of file MuteWholeCandidateItr.h.

155 :
156 m_indexedCandidates( (IndexedLabeledCandidates< CandidateClass >*)aList ) ,
157 m_index( aIndex )
158{
159}

Member Function Documentation

◆ index()

◆ indexedCandidates()

◆ operator!=()

template<class CandidateClass >
bool dchain::MuteWholeCandidateItr< CandidateClass >::operator!= ( const MuteWholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 279 of file MuteWholeCandidateItr.h.

280{
281 return ( ( m_index != aOtherItr.index() ) ||
282 ( m_indexedCandidates != aOtherItr.indexedCandidates() ) ) ;
283}

◆ operator*()

template<class CandidateClass >
LabeledCandidate< CandidateClass > & dchain::MuteWholeCandidateItr< CandidateClass >::operator*
inline

Definition at line 250 of file MuteWholeCandidateItr.h.

251{
252 return ( (*m_indexedCandidates).labeledCandidateClass( m_index ) ) ;
253}

◆ operator+()

template<class CandidateClass >
MuteWholeCandidateItr< CandidateClass > dchain::MuteWholeCandidateItr< CandidateClass >::operator+ ( difference_type  n)
inline

Definition at line 222 of file MuteWholeCandidateItr.h.

223{
224 MuteWholeCandidateItr tmp( *this ) ;
225 return ( tmp += n ) ;
226}
MuteWholeCandidateItr(const MuteWholeCandidateItr< CandidateClass > &aOtherItr)

◆ operator++() [1/2]

template<class CandidateClass >
MuteWholeCandidateItr< CandidateClass > & dchain::MuteWholeCandidateItr< CandidateClass >::operator++
inline

Definition at line 180 of file MuteWholeCandidateItr.h.

181{
182 ++m_index ;
183 return ( *this ) ;
184}

Referenced by dchain::MuteWholeItr< T >::operator++().

◆ operator++() [2/2]

template<class CandidateClass >
MuteWholeCandidateItr< CandidateClass > dchain::MuteWholeCandidateItr< CandidateClass >::operator++ ( int  )
inline

Definition at line 188 of file MuteWholeCandidateItr.h.

189{
190 MuteWholeCandidateItr tmp( *this ) ;
191 ++m_index ;
192 return ( tmp ) ;
193}

◆ operator+=()

template<class CandidateClass >
MuteWholeCandidateItr< CandidateClass > & dchain::MuteWholeCandidateItr< CandidateClass >::operator+= ( difference_type  n)
inline

Definition at line 214 of file MuteWholeCandidateItr.h.

215{
216 m_index += n ;
217 return( *this ) ;
218}

◆ operator-() [1/2]

template<class CandidateClass >
MuteWholeCandidateItr< CandidateClass >::difference_type dchain::MuteWholeCandidateItr< CandidateClass >::operator- ( const MuteWholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 264 of file MuteWholeCandidateItr.h.

265{
266 return ( m_index - aOtherItr.index() ) ;
267}

◆ operator-() [2/2]

template<class CandidateClass >
MuteWholeCandidateItr< CandidateClass > dchain::MuteWholeCandidateItr< CandidateClass >::operator- ( difference_type  n)
inline

Definition at line 238 of file MuteWholeCandidateItr.h.

239{
240 MuteWholeCandidateItr tmp( *this ) ;
241 return ( tmp -= n ) ;
242}

◆ operator--() [1/2]

template<class CandidateClass >
MuteWholeCandidateItr< CandidateClass > & dchain::MuteWholeCandidateItr< CandidateClass >::operator--
inline

Definition at line 197 of file MuteWholeCandidateItr.h.

198{
199 --m_index ;
200 return ( *this ) ;
201}

Referenced by dchain::MuteWholeItr< T >::operator--().

◆ operator--() [2/2]

template<class CandidateClass >
MuteWholeCandidateItr< CandidateClass > dchain::MuteWholeCandidateItr< CandidateClass >::operator-- ( int  )
inline

Definition at line 205 of file MuteWholeCandidateItr.h.

206{
207 MuteWholeCandidateItr tmp( *this ) ;
208 --m_index ;
209 return ( tmp ) ;
210}

◆ operator-=()

template<class CandidateClass >
MuteWholeCandidateItr< CandidateClass > & dchain::MuteWholeCandidateItr< CandidateClass >::operator-= ( difference_type  n)
inline

Definition at line 230 of file MuteWholeCandidateItr.h.

231{
232 m_index -= n ;
233 return( *this ) ;
234}

Referenced by dchain::MuteWholeItr< T >::operator-=().

◆ operator<()

template<class CandidateClass >
bool dchain::MuteWholeCandidateItr< CandidateClass >::operator< ( const MuteWholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 287 of file MuteWholeCandidateItr.h.

288{
289 return ( ( m_index < aOtherItr.index() ) &&
290 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
291}

◆ operator<=()

template<class CandidateClass >
bool dchain::MuteWholeCandidateItr< CandidateClass >::operator<= ( const MuteWholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 311 of file MuteWholeCandidateItr.h.

312{
313 return ( ( m_index <= aOtherItr.index() ) &&
314 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
315}

◆ operator=()

template<class CandidateClass >
const MuteWholeCandidateItr< CandidateClass > & dchain::MuteWholeCandidateItr< CandidateClass >::operator= ( const MuteWholeCandidateItr< CandidateClass > &  aOtherItr)
inline

Definition at line 167 of file MuteWholeCandidateItr.h.

168{
169 m_indexedCandidates = aOtherItr.indexedCandidates() ;
170 m_index = aOtherItr.index() ;
171 return ( *this ) ;
172}

Referenced by dchain::MuteWholeItr< T >::operator=().

◆ operator==()

template<class CandidateClass >
bool dchain::MuteWholeCandidateItr< CandidateClass >::operator== ( const MuteWholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 271 of file MuteWholeCandidateItr.h.

272{
273 return ( ( m_index == aOtherItr.index() ) &&
274 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
275}

◆ operator>()

template<class CandidateClass >
bool dchain::MuteWholeCandidateItr< CandidateClass >::operator> ( const MuteWholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 295 of file MuteWholeCandidateItr.h.

296{
297 return ( ( m_index > aOtherItr.index() ) &&
298 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
299}

◆ operator>=()

template<class CandidateClass >
bool dchain::MuteWholeCandidateItr< CandidateClass >::operator>= ( const MuteWholeCandidateItr< CandidateClass > &  aOtherItr) const
inline

Definition at line 303 of file MuteWholeCandidateItr.h.

304{
305 return ( ( m_index >= aOtherItr.index() ) &&
306 ( m_indexedCandidates == aOtherItr.indexedCandidates() ) ) ;
307}

◆ operator[]()

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

Definition at line 257 of file MuteWholeCandidateItr.h.

258{
259 return ( (*m_indexedCandidates).labeledCandidateClass( m_index + n ) ) ;
260}

Friends And Related Function Documentation

◆ LabeledCandidateList< CandidateClass >

template<class CandidateClass >
friend class LabeledCandidateList< CandidateClass >
friend

Definition at line 319 of file MuteWholeCandidateItr.h.


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