BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkHitOnTrkIter< T > Class Template Reference

#include <TrkHitOnTrkIter.h>

Public Types

typedef std::random_access_iterator_tag iterator_category
 
typedef T::iterator_value_type value_type
 
typedef ptrdiff_t difference_type
 
typedef value_typepointer
 
typedef value_typereference
 
typedef T::iterator_implementation iterator_implementation
 

Public Member Functions

 TrkHitOnTrkIter ()
 
 TrkHitOnTrkIter (const TrkHitOnTrkIter< T > &i)
 
 TrkHitOnTrkIter (const iterator_implementation &i)
 
pointer get () const
 
pointer operator-> () const
 
reference operator* () const
 
TrkHitOnTrkIter< T > & operator-= (int i)
 
TrkHitOnTrkIter< T > & operator+= (int i)
 
TrkHitOnTrkIter< T > operator- (int i)
 
TrkHitOnTrkIter< T > operator+ (int i)
 
TrkHitOnTrkIter< T > & operator-- ()
 
TrkHitOnTrkIter< T > & operator++ ()
 
TrkHitOnTrkIter< T > operator-- (int)
 
TrkHitOnTrkIter< T > operator++ (int)
 
ptrdiff_t operator- (const TrkHitOnTrkIter< T > &i) const
 
bool operator== (const TrkHitOnTrkIter< T > &i) const
 
bool operator!= (const TrkHitOnTrkIter< T > &i) const
 
bool operator< (const TrkHitOnTrkIter< T > &i) const
 
bool operator>= (const TrkHitOnTrkIter< T > &i) const
 
bool operator> (const TrkHitOnTrkIter< T > &i) const
 
bool operator<= (const TrkHitOnTrkIter< T > &i) const
 

Detailed Description

template<class T>
class TrkHitOnTrkIter< T >

Definition at line 33 of file TrkHitOnTrkIter.h.

Member Typedef Documentation

◆ difference_type

template<class T >
ptrdiff_t TrkHitOnTrkIter< T >::difference_type

Definition at line 44 of file TrkHitOnTrkIter.h.

◆ iterator_category

template<class T >
std::random_access_iterator_tag TrkHitOnTrkIter< T >::iterator_category

Definition at line 42 of file TrkHitOnTrkIter.h.

◆ iterator_implementation

template<class T >
T::iterator_implementation TrkHitOnTrkIter< T >::iterator_implementation

Definition at line 48 of file TrkHitOnTrkIter.h.

◆ pointer

template<class T >
value_type* TrkHitOnTrkIter< T >::pointer

Definition at line 45 of file TrkHitOnTrkIter.h.

◆ reference

template<class T >
value_type& TrkHitOnTrkIter< T >::reference

Definition at line 46 of file TrkHitOnTrkIter.h.

◆ value_type

template<class T >
T::iterator_value_type TrkHitOnTrkIter< T >::value_type

Definition at line 43 of file TrkHitOnTrkIter.h.

Constructor & Destructor Documentation

◆ TrkHitOnTrkIter() [1/3]

template<class T >
TrkHitOnTrkIter< T >::TrkHitOnTrkIter ( )
inline

Definition at line 48 of file TrkHitOnTrkIter.h.

49:_i() {}; // create an invalid iter...

◆ TrkHitOnTrkIter() [2/3]

template<class T >
TrkHitOnTrkIter< T >::TrkHitOnTrkIter ( const TrkHitOnTrkIter< T > & i)
inline

Definition at line 48 of file TrkHitOnTrkIter.h.

50: _i(i._i) { }

◆ TrkHitOnTrkIter() [3/3]

template<class T >
TrkHitOnTrkIter< T >::TrkHitOnTrkIter ( const iterator_implementation & i)
inline

Definition at line 48 of file TrkHitOnTrkIter.h.

51: _i(i) { }

Member Function Documentation

◆ get()

template<class T >
pointer TrkHitOnTrkIter< T >::get ( ) const
inline

Definition at line 53 of file TrkHitOnTrkIter.h.

53{ return *_i; } // this function (together with * and ->) is one of the main

Referenced by TrkHotListFull::findHot(), TrkFundHit::getHitOnTrack(), TrkHitOnTrkIter< T >::operator*(), and TrkHitOnTrkIter< T >::operator->().

◆ operator!=()

template<class T >
bool TrkHitOnTrkIter< T >::operator!= ( const TrkHitOnTrkIter< T > & i) const
inline

Definition at line 81 of file TrkHitOnTrkIter.h.

81{ return !operator==(i); }
bool operator==(const TrkHitOnTrkIter< T > &i) const

◆ operator*()

template<class T >
reference TrkHitOnTrkIter< T >::operator* ( ) const
inline

Definition at line 61 of file TrkHitOnTrkIter.h.

61{ return *this->get(); }
pointer get() const

◆ operator+()

template<class T >
TrkHitOnTrkIter< T > TrkHitOnTrkIter< T >::operator+ ( int i)
inline

Definition at line 71 of file TrkHitOnTrkIter.h.

71{ TrkHitOnTrkIter<T> x(_i); x+=i; return x; }
Double_t x[10]

◆ operator++() [1/2]

template<class T >
TrkHitOnTrkIter< T > & TrkHitOnTrkIter< T >::operator++ ( )
inline

Definition at line 74 of file TrkHitOnTrkIter.h.

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

◆ operator++() [2/2]

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

Definition at line 77 of file TrkHitOnTrkIter.h.

77{ TrkHitOnTrkIter<T> x(_i); ++_i; return x; } // postfix ++

◆ operator+=()

template<class T >
TrkHitOnTrkIter< T > & TrkHitOnTrkIter< T >::operator+= ( int i)
inline

Definition at line 68 of file TrkHitOnTrkIter.h.

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

◆ operator-() [1/2]

template<class T >
ptrdiff_t TrkHitOnTrkIter< T >::operator- ( const TrkHitOnTrkIter< T > & i) const
inline

Definition at line 79 of file TrkHitOnTrkIter.h.

79{ return _i - i._i; }

◆ operator-() [2/2]

template<class T >
TrkHitOnTrkIter< T > TrkHitOnTrkIter< T >::operator- ( int i)
inline

Definition at line 70 of file TrkHitOnTrkIter.h.

70{ TrkHitOnTrkIter<T> x(_i); x-=i; return x; }

◆ operator--() [1/2]

template<class T >
TrkHitOnTrkIter< T > & TrkHitOnTrkIter< T >::operator-- ( )
inline

Definition at line 73 of file TrkHitOnTrkIter.h.

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

◆ operator--() [2/2]

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

Definition at line 76 of file TrkHitOnTrkIter.h.

76{ TrkHitOnTrkIter<T> x(_i); --_i; return x; } // postfix --

◆ operator-=()

template<class T >
TrkHitOnTrkIter< T > & TrkHitOnTrkIter< T >::operator-= ( int i)
inline

Definition at line 67 of file TrkHitOnTrkIter.h.

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

◆ operator->()

template<class T >
pointer TrkHitOnTrkIter< T >::operator-> ( ) const
inline

Definition at line 60 of file TrkHitOnTrkIter.h.

60{ return this->get(); }

◆ operator<()

template<class T >
bool TrkHitOnTrkIter< T >::operator< ( const TrkHitOnTrkIter< T > & i) const
inline

Definition at line 82 of file TrkHitOnTrkIter.h.

82{ return _i<i._i;}

Referenced by TrkHitOnTrkIter< T >::operator>=().

◆ operator<=()

template<class T >
bool TrkHitOnTrkIter< T >::operator<= ( const TrkHitOnTrkIter< T > & i) const
inline

Definition at line 85 of file TrkHitOnTrkIter.h.

85{ return !operator>(i);}
bool operator>(const TrkHitOnTrkIter< T > &i) const

◆ operator==()

template<class T >
bool TrkHitOnTrkIter< T >::operator== ( const TrkHitOnTrkIter< T > & i) const
inline

Definition at line 80 of file TrkHitOnTrkIter.h.

80{ return _i==i._i; }

Referenced by TrkHitOnTrkIter< T >::operator!=().

◆ operator>()

template<class T >
bool TrkHitOnTrkIter< T >::operator> ( const TrkHitOnTrkIter< T > & i) const
inline

Definition at line 84 of file TrkHitOnTrkIter.h.

84{ return _i>i._i;}

Referenced by TrkHitOnTrkIter< T >::operator<=().

◆ operator>=()

template<class T >
bool TrkHitOnTrkIter< T >::operator>= ( const TrkHitOnTrkIter< T > & i) const
inline

Definition at line 83 of file TrkHitOnTrkIter.h.

83{ return !operator<(i);}
bool operator<(const TrkHitOnTrkIter< T > &i) const

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