REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
Public Types | Public Member Functions | Private Attributes | Friends
TRestHits::TRestHits_Iterator Class Reference

Detailed Description

Definition at line 195 of file TRestHits.h.

Public Types

using difference_type = int
 
using iterator_category = std::random_access_iterator_tag
 
using pointer = void
 
using reference = void
 
using value_type = TRestHits_Iterator
 

Public Member Functions

float & e ()
 
float e () const
 
TRestHits_Iterator operator* () const
 
TRestHits_Iterator operator+ (const int &n)
 
TRestHits_Iteratoroperator++ ()
 
TRestHits_Iteratoroperator+= (const int &n)
 
TRestHits_Iterator operator- (const int &n)
 
TRestHits_Iteratoroperator-- ()
 
TRestHits_Iteratoroperator-= (const int &n)
 
TRestHits_Iteratoroperator= (const TRestHits_Iterator &iter)
 
float & t ()
 
float t () const
 
void toaccessor ()
 
 TRestHits_Iterator (TRestHits *h, int _index)
 
REST_HitType & type ()
 
REST_HitType type () const
 
float & x ()
 
float x () const
 
float & y ()
 
float y () const
 
float & z ()
 
float z () const
 

Private Attributes

float _e
 
float _t
 
REST_HitType _type
 
float _x
 
float _y
 
float _z
 
TRestHitsfHits = nullptr
 
int index = 0
 
bool isAccessor = false
 
int maxIndex = 0
 

Friends

bool operator!= (const TRestHits_Iterator &i1, const TRestHits_Iterator &i2)
 
int operator- (const TRestHits_Iterator &i1, const TRestHits_Iterator &i2)
 
bool operator< (const TRestHits_Iterator &i1, const TRestHits_Iterator &i2)
 
bool operator<= (const TRestHits_Iterator &i1, const TRestHits_Iterator &i2)
 
bool operator== (const TRestHits_Iterator &i1, const TRestHits_Iterator &i2)
 
bool operator> (const TRestHits_Iterator &i1, const TRestHits_Iterator &i2)
 
bool operator>= (const TRestHits_Iterator &i1, const TRestHits_Iterator &i2)
 
void swap (TRestHits::TRestHits_Iterator i1, TRestHits::TRestHits_Iterator i2)
 

Member Typedef Documentation

◆ difference_type

using TRestHits::TRestHits_Iterator::difference_type = int

Definition at line 199 of file TRestHits.h.

◆ iterator_category

using TRestHits::TRestHits_Iterator::iterator_category = std::random_access_iterator_tag

Definition at line 197 of file TRestHits.h.

◆ pointer

using TRestHits::TRestHits_Iterator::pointer = void

Definition at line 200 of file TRestHits.h.

◆ reference

using TRestHits::TRestHits_Iterator::reference = void

Definition at line 201 of file TRestHits.h.

◆ value_type

Definition at line 198 of file TRestHits.h.

Constructor & Destructor Documentation

◆ TRestHits_Iterator()

TRestHits::TRestHits_Iterator::TRestHits_Iterator ( TRestHits h,
int  _index 
)

Definition at line 1404 of file TRestHits.cxx.

Member Function Documentation

◆ e() [1/2]

float & TRestHits::TRestHits_Iterator::e ( )
inline

Definition at line 220 of file TRestHits.h.

◆ e() [2/2]

float TRestHits::TRestHits_Iterator::e ( ) const
inline

Definition at line 227 of file TRestHits.h.

◆ operator*()

TRestHits::TRestHits_Iterator TRestHits::TRestHits_Iterator::operator* ( ) const

Definition at line 1422 of file TRestHits.cxx.

◆ operator+()

TRestHits::TRestHits_Iterator TRestHits::TRestHits_Iterator::operator+ ( const int &  n)

Definition at line 1443 of file TRestHits.cxx.

◆ operator++()

TRestHits::TRestHits_Iterator & TRestHits::TRestHits_Iterator::operator++ ( )

Definition at line 1428 of file TRestHits.cxx.

◆ operator+=()

TRestHits::TRestHits_Iterator & TRestHits::TRestHits_Iterator::operator+= ( const int &  n)

Definition at line 1434 of file TRestHits.cxx.

◆ operator-()

TRestHits::TRestHits_Iterator TRestHits::TRestHits_Iterator::operator- ( const int &  n)

Definition at line 1466 of file TRestHits.cxx.

◆ operator--()

TRestHits::TRestHits_Iterator & TRestHits::TRestHits_Iterator::operator-- ( )

Definition at line 1451 of file TRestHits.cxx.

◆ operator-=()

TRestHits::TRestHits_Iterator & TRestHits::TRestHits_Iterator::operator-= ( const int &  n)

Definition at line 1457 of file TRestHits.cxx.

◆ operator=()

TRestHits::TRestHits_Iterator & TRestHits::TRestHits_Iterator::operator= ( const TRestHits_Iterator iter)

Definition at line 1474 of file TRestHits.cxx.

◆ t() [1/2]

float & TRestHits::TRestHits_Iterator::t ( )
inline

Definition at line 219 of file TRestHits.h.

◆ t() [2/2]

float TRestHits::TRestHits_Iterator::t ( ) const
inline

Definition at line 226 of file TRestHits.h.

◆ toaccessor()

void TRestHits::TRestHits_Iterator::toaccessor ( )

Definition at line 1412 of file TRestHits.cxx.

◆ type() [1/2]

REST_HitType & TRestHits::TRestHits_Iterator::type ( )
inline

Definition at line 221 of file TRestHits.h.

◆ type() [2/2]

REST_HitType TRestHits::TRestHits_Iterator::type ( ) const
inline

Definition at line 228 of file TRestHits.h.

◆ x() [1/2]

float & TRestHits::TRestHits_Iterator::x ( )
inline

Definition at line 216 of file TRestHits.h.

◆ x() [2/2]

float TRestHits::TRestHits_Iterator::x ( ) const
inline

Definition at line 223 of file TRestHits.h.

◆ y() [1/2]

float & TRestHits::TRestHits_Iterator::y ( )
inline

Definition at line 217 of file TRestHits.h.

◆ y() [2/2]

float TRestHits::TRestHits_Iterator::y ( ) const
inline

Definition at line 224 of file TRestHits.h.

◆ z() [1/2]

float & TRestHits::TRestHits_Iterator::z ( )
inline

Definition at line 218 of file TRestHits.h.

◆ z() [2/2]

float TRestHits::TRestHits_Iterator::z ( ) const
inline

Definition at line 225 of file TRestHits.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const TRestHits_Iterator i1,
const TRestHits_Iterator i2 
)
friend

Definition at line 248 of file TRestHits.h.

◆ operator-

int operator- ( const TRestHits_Iterator i1,
const TRestHits_Iterator i2 
)
friend

Definition at line 242 of file TRestHits.h.

◆ operator<

bool operator< ( const TRestHits_Iterator i1,
const TRestHits_Iterator i2 
)
friend

Definition at line 259 of file TRestHits.h.

◆ operator<=

bool operator<= ( const TRestHits_Iterator i1,
const TRestHits_Iterator i2 
)
friend

Definition at line 262 of file TRestHits.h.

◆ operator==

bool operator== ( const TRestHits_Iterator i1,
const TRestHits_Iterator i2 
)
friend

Definition at line 245 of file TRestHits.h.

◆ operator>

bool operator> ( const TRestHits_Iterator i1,
const TRestHits_Iterator i2 
)
friend

Definition at line 251 of file TRestHits.h.

◆ operator>=

bool operator>= ( const TRestHits_Iterator i1,
const TRestHits_Iterator i2 
)
friend

Definition at line 255 of file TRestHits.h.

◆ swap

Definition at line 265 of file TRestHits.h.

Field Documentation

◆ _e

float TRestHits::TRestHits_Iterator::_e
private

Definition at line 212 of file TRestHits.h.

◆ _t

float TRestHits::TRestHits_Iterator::_t
private

Definition at line 211 of file TRestHits.h.

◆ _type

REST_HitType TRestHits::TRestHits_Iterator::_type
private

Definition at line 213 of file TRestHits.h.

◆ _x

float TRestHits::TRestHits_Iterator::_x
private

Definition at line 208 of file TRestHits.h.

◆ _y

float TRestHits::TRestHits_Iterator::_y
private

Definition at line 209 of file TRestHits.h.

◆ _z

float TRestHits::TRestHits_Iterator::_z
private

Definition at line 210 of file TRestHits.h.

◆ fHits

TRestHits* TRestHits::TRestHits_Iterator::fHits = nullptr
private

Definition at line 206 of file TRestHits.h.

◆ index

int TRestHits::TRestHits_Iterator::index = 0
private

Definition at line 205 of file TRestHits.h.

◆ isAccessor

bool TRestHits::TRestHits_Iterator::isAccessor = false
private

Definition at line 207 of file TRestHits.h.

◆ maxIndex

int TRestHits::TRestHits_Iterator::maxIndex = 0
private

Definition at line 204 of file TRestHits.h.


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