![]() |
AliPhysics
0b37c46 (0b37c46)
|
bidirectional stl iterator over the EMCAL iterable container More...
#include <AliEmcalIterableContainer.h>
Public Member Functions | |
iterator (const AliEmcalIterableContainerT< T, STAR > *cont, int currentpos, bool forward=true) | |
iterator (const iterator &ref) | |
iterator & | operator= (const iterator &ref) |
~iterator () | |
bool | operator!= (const iterator &ref) const |
iterator & | operator++ () |
iterator | operator++ (int) |
iterator & | operator-- () |
iterator | operator-- (int) |
STAR::star_return_type | operator* () |
STAR::arrow_return_type | operator-> () |
int | current_index () const |
const AliTLorentzVector & | get_momentum () const |
Private Member Functions | |
iterator () | |
void | update_current_element () |
Private Attributes | |
const AliEmcalIterableContainerT< T, STAR > * | fkData |
container with data More... | |
int | fCurrent |
current index in the container More... | |
bool | fForward |
use forward or backward direction More... | |
momentum_object_pair | fCurrentElement |
current element pair (momentum, pointer object) More... | |
bidirectional stl iterator over the EMCAL iterable container
stl iterator corresponding to the EMCAL iterable container. The iterator iterates over all object in the EMCAL iterable container as specified in its constructor (all or accepted). It can be both forward or backward iterator.
As stl iterator it implements the operators required for an iterator
In case of c++11 the iterator also allows range-based iteration.
Definition at line 118 of file AliEmcalIterableContainer.h.
EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::iterator | ( | const AliEmcalIterableContainerT< T, STAR > * | cont, |
int | currentpos, | ||
bool | forward = true |
||
) |
EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::iterator | ( | const iterator & | ref | ) |
|
inline |
Definition at line 123 of file AliEmcalIterableContainer.h.
|
private |
|
inline |
Definition at line 135 of file AliEmcalIterableContainer.h.
|
inline |
Definition at line 136 of file AliEmcalIterableContainer.h.
bool EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator!= | ( | const iterator & | ref | ) | const |
Comparison operator for unequalness. Comparison is performed based on the position inside the container
[in] | ref | Reference for comparison |
Definition at line 407 of file AliEmcalIterableContainer.h.
|
inline |
Definition at line 132 of file AliEmcalIterableContainer.h.
AliEmcalIterableContainerT< T, STAR >::iterator & EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator++ | ( | ) |
Prefix increment operator. Incrementing / decrementing position of the iterator based on the direction.
Definition at line 417 of file AliEmcalIterableContainer.h.
iterator EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator++ | ( | int | ) |
AliEmcalIterableContainerT< T, STAR >::iterator & EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator-- | ( | ) |
Prefix decrement operator. Decrementing / incrementing the position of the iterator based on the direction.
Definition at line 432 of file AliEmcalIterableContainer.h.
iterator EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator-- | ( | int | ) |
|
inline |
Definition at line 133 of file AliEmcalIterableContainer.h.
AliEmcalIterableContainerT< T, STAR >::iterator & EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator= | ( | const iterator & | ref | ) |
Assignment operator. Only pointers are copied as the iterator does not own its container.
[in] | ref | Reference for the assignment |
Definition at line 391 of file AliEmcalIterableContainer.h.
|
inlineprivate |
Definition at line 146 of file AliEmcalIterableContainer.h.
Referenced by EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator=().
|
private |
current index in the container
Definition at line 142 of file AliEmcalIterableContainer.h.
Referenced by EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::current_index(), EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator!=(), EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator=(), and EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::update_current_element().
|
private |
current element pair (momentum, pointer object)
Definition at line 144 of file AliEmcalIterableContainer.h.
Referenced by EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::get_momentum(), EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator*(), EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator->(), and EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::update_current_element().
|
private |
use forward or backward direction
Definition at line 143 of file AliEmcalIterableContainer.h.
Referenced by EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator=().
|
private |
container with data
Definition at line 141 of file AliEmcalIterableContainer.h.
Referenced by EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::current_index(), EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::operator=(), and EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::iterator::update_current_element().