CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkRepIter Class Reference

#include <TrkRepIter.h>

Public Types

typedef std::random_access_iterator_tag iterator_category
 
typedef TrkRep value_type
 
typedef ptrdiff_t difference_type
 
typedef value_typepointer
 
typedef value_typereference
 

Public Member Functions

 TrkRepIter (const TrkRepIter &rhs)
 
pointer get () const
 
pointer operator-> () const
 
reference operator* () const
 
TrkRepIteroperator-= (int i)
 
TrkRepIteroperator+= (int i)
 
TrkRepIteroperator-- ()
 
TrkRepIteroperator++ ()
 
TrkRepIter operator-- (int)
 
TrkRepIter operator++ (int)
 
ptrdiff_t operator- (const TrkRepIter &i) const
 
bool operator== (const TrkRepIter &i) const
 
bool operator!= (const TrkRepIter &i) const
 

Friends

class TrkRecoTrk
 

Detailed Description

Definition at line 21 of file TrkRepIter.h.

Member Typedef Documentation

◆ difference_type

typedef ptrdiff_t TrkRepIter::difference_type

Definition at line 27 of file TrkRepIter.h.

◆ iterator_category

typedef std::random_access_iterator_tag TrkRepIter::iterator_category

Definition at line 24 of file TrkRepIter.h.

◆ pointer

Definition at line 28 of file TrkRepIter.h.

◆ reference

Definition at line 29 of file TrkRepIter.h.

◆ value_type

Definition at line 26 of file TrkRepIter.h.

Constructor & Destructor Documentation

◆ TrkRepIter()

TrkRepIter::TrkRepIter ( const TrkRepIter rhs)
inline

Definition at line 31 of file TrkRepIter.h.

31: _l(rhs._l),_i(rhs._i) {};

Member Function Documentation

◆ get()

pointer TrkRepIter::get ( ) const
inline

Definition at line 33 of file TrkRepIter.h.

33{ return (*_l)[_i]; }

Referenced by operator*(), and operator->().

◆ operator!=()

bool TrkRepIter::operator!= ( const TrkRepIter i) const
inline

Definition at line 49 of file TrkRepIter.h.

49{ return !operator==(i); }
bool operator==(const TrkRepIter &i) const
Definition: TrkRepIter.h:47

◆ operator*()

reference TrkRepIter::operator* ( ) const
inline

Definition at line 35 of file TrkRepIter.h.

35{ return *get(); }
pointer get() const
Definition: TrkRepIter.h:33

◆ operator++() [1/2]

TrkRepIter & TrkRepIter::operator++ ( )
inline

Definition at line 40 of file TrkRepIter.h.

40{ ++_i; return *this; } // prefix ++

◆ operator++() [2/2]

TrkRepIter TrkRepIter::operator++ ( int  )
inline

Definition at line 43 of file TrkRepIter.h.

43{ TrkRepIter x(*this); ++_i; return x; } // postfix ++
Double_t x[10]

◆ operator+=()

TrkRepIter & TrkRepIter::operator+= ( int  i)
inline

Definition at line 38 of file TrkRepIter.h.

38{ _i+=i; return *this; }

◆ operator-()

ptrdiff_t TrkRepIter::operator- ( const TrkRepIter i) const
inline

Definition at line 46 of file TrkRepIter.h.

46{ return _i - i._i; }

◆ operator--() [1/2]

TrkRepIter & TrkRepIter::operator-- ( )
inline

Definition at line 39 of file TrkRepIter.h.

39{ --_i; return *this; } // prefix --

◆ operator--() [2/2]

TrkRepIter TrkRepIter::operator-- ( int  )
inline

Definition at line 42 of file TrkRepIter.h.

42{ TrkRepIter x(*this); --_i; return x; } // postfix --

◆ operator-=()

TrkRepIter & TrkRepIter::operator-= ( int  i)
inline

Definition at line 37 of file TrkRepIter.h.

37{ _i-=i; return *this; }

◆ operator->()

pointer TrkRepIter::operator-> ( ) const
inline

Definition at line 34 of file TrkRepIter.h.

34{ return get(); }

◆ operator==()

bool TrkRepIter::operator== ( const TrkRepIter i) const
inline

Definition at line 47 of file TrkRepIter.h.

47 { return _l.get() == i._l.get()
48 && _i == i._i; }

Referenced by operator!=().

Friends And Related Function Documentation

◆ TrkRecoTrk

friend class TrkRecoTrk
friend

Definition at line 52 of file TrkRepIter.h.


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