![]() |
AliPhysics
66e96a0 (66e96a0)
|
bidirectional stl iterator over the EMCAL iterable container More...
#include <AliEmcalIterableContainer.h>
Public Member Functions | |
iterator (const AliEmcalIterableContainerT< T, mom > *cont, int currentpos, bool forward=true) | |
iterator (const iterator &ref) | |
iterator & | operator= (const iterator &ref) |
virtual | ~iterator () |
bool | operator!= (const iterator &ref) const |
iterator & | operator++ () |
iterator | operator++ (int) |
iterator & | operator-- () |
iterator | operator-- (int) |
int | current_index () const |
const AliTLorentzVector & | get_momentum () const |
Private Member Functions | |
iterator () | |
void | update_current_element () |
Private Attributes | |
const AliEmcalIterableContainerT< T, mom > * | fkData |
container with data More... | |
int | fCurrent |
current index in the container More... | |
bool | fForward |
use forward or backward direction 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 114 of file AliEmcalIterableContainer.h.
AliEmcalIterableContainerT< T, mom >::iterator::iterator | ( | const AliEmcalIterableContainerT< T, mom > * | cont, |
int | currentpos, | ||
bool | forward = true |
||
) |
AliEmcalIterableContainerT< T, mom >::iterator::iterator | ( | const iterator & | ref | ) |
|
inlinevirtual |
Definition at line 120 of file AliEmcalIterableContainer.h.
|
private |
|
inline |
Definition at line 129 of file AliEmcalIterableContainer.h.
|
inline |
Definition at line 130 of file AliEmcalIterableContainer.h.
bool AliEmcalIterableContainerT< T, mom >::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 388 of file AliEmcalIterableContainer.h.
AliEmcalIterableContainerT< T, mom >::iterator & AliEmcalIterableContainerT< T, mom >::iterator::operator++ | ( | ) |
Prefix increment operator. Incrementing / decrementing position of the iterator based on the direction.
Definition at line 398 of file AliEmcalIterableContainer.h.
iterator AliEmcalIterableContainerT< T, mom >::iterator::operator++ | ( | int | ) |
AliEmcalIterableContainerT< T, mom >::iterator & AliEmcalIterableContainerT< T, mom >::iterator::operator-- | ( | ) |
Prefix decrement operator. Decrementing / incrementing the position of the iterator based on the direction.
Definition at line 413 of file AliEmcalIterableContainer.h.
iterator AliEmcalIterableContainerT< T, mom >::iterator::operator-- | ( | int | ) |
AliEmcalIterableContainerT< T, mom >::iterator & AliEmcalIterableContainerT< T, mom >::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 372 of file AliEmcalIterableContainer.h.
|
inlineprivate |
Definition at line 139 of file AliEmcalIterableContainer.h.
|
private |
current index in the container
Definition at line 136 of file AliEmcalIterableContainer.h.
Referenced by AliEmcalIterableContainerT< T, mom >::iterator::current_index(), AliEmcalIterableContainerT< T, mom >::iterator::operator!=(), AliEmcalIterableContainerT< T, mom >::iterator::operator=(), and AliEmcalIterableContainerT< T, mom >::iterator::update_current_element().
|
private |
use forward or backward direction
Definition at line 137 of file AliEmcalIterableContainer.h.
Referenced by AliEmcalIterableContainerT< T, mom >::iterator::operator=().
|
private |
container with data
Definition at line 135 of file AliEmcalIterableContainer.h.
Referenced by AliEmcalIterableContainerT< T, mom >::iterator::current_index(), AliEmcalIterableContainerT< T, mom >::iterator::operator=(), and AliEmcalIterableContainerT< T, mom >::iterator::update_current_element().