IndexCell iterator.
More...
#include <TIndexCell.h>
◆ TIndexCellIter() [1/2]
TIndexCellIter::TIndexCellIter |
( |
| ) |
|
|
inlineprivate |
const TIndexCell * fCell
cell being iterated
Definition: TIndexCell.h:114
◆ TIndexCellIter() [2/2]
TIndexCellIter::TIndexCellIter |
( |
const TIndexCell * |
cell, |
|
|
int |
level, |
|
|
Bool_t |
dir = kIterForward |
|
) |
| |
Create cell iterator. By default the iteration direction is kIterForward. To go backward use kIterBackward.
640{
643
648 if( level < 1 ) level=0;
653 }
654}
Int_t fPass
number of cells iterated
Definition: TIndexCell.h:118
Int_t * fVind
current position in array
Definition: TIndexCell.h:115
Int_t fLevel
current level
Definition: TIndexCell.h:117
Int_t fLevel0
level to be iterated on
Definition: TIndexCell.h:116
void Reset()
Definition: TIndexCell.cpp:705
Bool_t fDirection
iteration direction
Definition: TIndexCell.h:119
Int_t Nlevels() const
Definition: TIndexCell.cpp:328
◆ ~TIndexCellIter()
TIndexCellIter::~TIndexCellIter |
( |
| ) |
|
◆ GetCell()
const TIndexCell * TIndexCellIter::GetCell |
( |
| ) |
const |
|
inline |
◆ LevelDown()
int TIndexCellIter::LevelDown |
( |
| ) |
|
689{
694
699 return 1;
701 return 0;
702}
int LevelDown()
Definition: TIndexCell.cpp:688
Int_t GetEntries() const
Definition: TIndexCell.h:82
TIndexCell const * At(Int_t narg, Int_t vind[]) const
Definition: TIndexCell.cpp:519
◆ Next()
Return next object in cell. Returns 0 when no more objects in cell.
665{
667
669
670 START:
671
673
675
676
681 } else {
683 }
684 return 0;
685}
◆ Reset()
void TIndexCellIter::Reset |
( |
| ) |
|
Reset array iterator.
706{
708
713 }
714 else {}
715}
◆ Test()
void TIndexCellIter::Test |
( |
| ) |
|
719{
720 int count=0;
721 while(
Next() ) count++;
722 printf("count = %d\n",count);
723}
TIndexCell const * Next()
Definition: TIndexCell.cpp:664
◆ fCell
◆ fDirection
Bool_t TIndexCellIter::fDirection |
|
private |
◆ fLevel
Int_t TIndexCellIter::fLevel |
|
private |
◆ fLevel0
Int_t TIndexCellIter::fLevel0 |
|
private |
◆ fPass
Int_t TIndexCellIter::fPass |
|
private |
◆ fVind
Int_t* TIndexCellIter::fVind |
|
private |
current position in array
The documentation for this class was generated from the following files: