![]() |
AliPhysics
b24dc27 (b24dc27)
|
bidirectional stl iterator over the EMCAL iterable container More...
#include <AliEmcalIterableContainer.h>
Public Member Functions | |
iterator (const AliEmcalIterableContainerT< T > *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) |
T * | operator* () const |
Private Member Functions | |
iterator () | |
Private Attributes | |
const AliEmcalIterableContainerT< T > * | 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 73 of file AliEmcalIterableContainer.h.
AliEmcalIterableContainerT< T >::iterator::iterator | ( | const AliEmcalIterableContainerT< T > * | cont, |
int | currentpos, | ||
bool | forward = true |
||
) |
AliEmcalIterableContainerT< T >::iterator::iterator | ( | const iterator & | ref | ) |
|
inlinevirtual |
Definition at line 80 of file AliEmcalIterableContainer.h.
|
private |
bool AliEmcalIterableContainerT< T >::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 333 of file AliEmcalIterableContainer.h.
T * AliEmcalIterableContainerT< T >::iterator::operator* | ( | ) | const |
Access operator. Providing access to the object at the position of the iterator.
Definition at line 395 of file AliEmcalIterableContainer.h.
AliEmcalIterableContainerT< T >::iterator & AliEmcalIterableContainerT< T >::iterator::operator++ | ( | ) |
Prefix increment operator. Incrementing / decrementing position of the iterator based on the direction.
Definition at line 343 of file AliEmcalIterableContainer.h.
iterator AliEmcalIterableContainerT< T >::iterator::operator++ | ( | int | ) |
AliEmcalIterableContainerT< T >::iterator & AliEmcalIterableContainerT< T >::iterator::operator-- | ( | ) |
Prefix decrement operator. Decrementing / incrementing the position of the iterator based on the direction.
Definition at line 355 of file AliEmcalIterableContainer.h.
iterator AliEmcalIterableContainerT< T >::iterator::operator-- | ( | int | ) |
AliEmcalIterableContainerT< T >::iterator & AliEmcalIterableContainerT< T >::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 318 of file AliEmcalIterableContainer.h.
|
private |
current index in the container
Definition at line 95 of file AliEmcalIterableContainer.h.
Referenced by AliEmcalIterableContainerT< T >::iterator::operator!=(), and AliEmcalIterableContainerT< T >::iterator::operator=().
|
private |
use forward or backward direction
Definition at line 96 of file AliEmcalIterableContainer.h.
Referenced by AliEmcalIterableContainerT< T >::iterator::operator=().
|
private |
container with data
Definition at line 94 of file AliEmcalIterableContainer.h.
Referenced by AliEmcalIterableContainerT< T >::iterator::operator=().