![]() |
AliPhysics
07fddbf (07fddbf)
|
stl-iterator for the histogram manager More...
#include <THistManager.h>
Public Types | |
enum | THMIDirection_t { kTHMIforward = 0, kTHMIbackward = 1 } |
Direction for the iteration. More... | |
Public Member Functions | |
iterator (const THistManager *hmgr, Int_t currentpos, THMIDirection_t dir=kTHMIforward) | |
iterator (const iterator &ref) | |
~iterator () | |
iterator & | operator= (const iterator &rhs) |
Bool_t | operator!= (const iterator &aIter) const |
iterator & | operator++ () |
iterator | operator++ (int) |
iterator & | operator-- () |
iterator | operator-- (int) |
TObject * | operator* () const |
Private Member Functions | |
iterator () | |
Private Attributes | |
const THistManager * | fkArray |
Int_t | fCurrentPos |
Int_t | fNext |
THMIDirection_t | fDirection |
stl-iterator for the histogram manager
stl-type iterator for the histogram manager. Iterating over primary content of the histogram manager. In case histograms are organized in groups, the primary content will be histogram groups, with the data structure THashList. The iterator is implemented as bidirectional iterator, providing forward and backward iteration.
Definition at line 59 of file THistManager.h.
Direction for the iteration.
Switch for the firection of the iteration. Currently the iterator is implemented as bi-directional iterator, providing only forward and backward iteration.
Enumerator | |
---|---|
kTHMIforward |
Forward iteration. |
kTHMIbackward |
Backward iteration. |
Definition at line 72 of file THistManager.h.
THistManager::iterator::iterator | ( | const THistManager * | hmgr, |
Int_t | currentpos, | ||
THMIDirection_t | dir = kTHMIforward |
||
) |
Constructor. Initializing the histogram manager to be iterated over, the starting position for the iteration, and the direction of the iteration.
[in] | hmgr | Histogram manager to be iterated over, containing the data |
[in] | currentpos | Starting position for the iteration |
[in] | dir | Direction of the iteration |
/// Implementation of THistManager::iterator /// ///
Definition at line 610 of file THistManager.cxx.
THistManager::iterator::iterator | ( | const iterator & | ref | ) |
Copy constructor. Initializing all values from the reference.
[in] | ref | Reference for the copy |
Definition at line 617 of file THistManager.cxx.
|
inline |
Destructor
Definition at line 96 of file THistManager.h.
|
private |
bool THistManager::iterator::operator!= | ( | const iterator & | aIter | ) | const |
Comparison operator for unequalness. The comparison is performed based on the current position of the iterator.
[in] | other | iterator to compare to |
Definition at line 634 of file THistManager.cxx.
TObject * THistManager::iterator::operator* | ( | ) | const |
Dereferncing operator. Providing access to the object connected to the current state of the iterator. Objects might be histograms or THashLists in case of wheter groups are defined or not.
Definition at line 666 of file THistManager.cxx.
THistManager::iterator & THistManager::iterator::operator++ | ( | ) |
Prefix increment operator. Incrementing / decrementing the current position of the iterator based on the direction.
Definition at line 638 of file THistManager.cxx.
THistManager::iterator THistManager::iterator::operator++ | ( | int | ) |
Postfix increment operator. Incrementing / decrementing the current position of the iterator based on the direction, but returning the state before iteration
Definition at line 646 of file THistManager.cxx.
THistManager::iterator & THistManager::iterator::operator-- | ( | ) |
Prefix decrement operator. Decrementing / incrementing the current position of the iterator based on the direction.
Definition at line 652 of file THistManager.cxx.
THistManager::iterator THistManager::iterator::operator-- | ( | int | ) |
Postfix decrement operator. Decrementing / incrementing the current position of the iterator based on the direction, but returning the state before iteration
Definition at line 660 of file THistManager.cxx.
THistManager::iterator & THistManager::iterator::operator= | ( | const iterator & | rhs | ) |
Assignment operator. Initializing all values from the reference.
[in] | ref |
Definition at line 624 of file THistManager.cxx.
|
private |
Definition at line 157 of file THistManager.h.
Referenced by operator!=(), and operator=().
|
private |
Definition at line 159 of file THistManager.h.
Referenced by operator=().
|
private |
Definition at line 156 of file THistManager.h.
Referenced by operator=().
|
private |
Definition at line 158 of file THistManager.h.
Referenced by operator=().