ROOT 6.12/07 Reference Guide |
RooMultiCatIter iterators over all state permutations of a list of categories.
It serves as the state iterator for a RooSuperCategory or a RooMultiCategory. Since this iterator only constructs state labels and does not change the value of its input categories, it is not required that its inputs are LValues. For cases where all inputs are LValues (such as for RooSuperCategory) the values of the input can be changes by assigning the super category the string label generated by this iterator
Definition at line 29 of file RooMultiCatIter.h.
Public Member Functions | |
RooMultiCatIter (const RooArgSet &catList, const char *rangeName=0) | |
Construct iterator over all permutations of states of categories in catList. More... | |
RooMultiCatIter (const RooMultiCatIter &other) | |
Copy constructor. More... | |
virtual | ~RooMultiCatIter () |
Destructor. More... | |
virtual const TCollection * | GetCollection () const |
Dummy implementation, always returns zero. More... | |
virtual TObject * | Next () |
Iterator increment operator. More... | |
virtual bool | operator!= (const TIterator &aIter) const |
Comparison operator to other iterator Returns true if both iterator iterate over the same set of input categories and are not at the same sequential position. More... | |
virtual TObject * | operator* () const |
Return current item (dummy) More... | |
virtual void | Reset () |
Rewind master iterator. More... | |
Public Member Functions inherited from TIterator | |
virtual | ~TIterator () |
virtual Option_t * | GetOption () const |
TObject * | operator() () |
Bool_t | operator== (const TIterator &other) const |
Protected Member Functions | |
TObjString * | compositeLabel () |
Construct string with composite object label corresponding to the state name of a RooMultiCategory or RooSuperCategory constructed from this set of input categories. More... | |
void | initialize (const RooArgSet &catList) |
Build iterator array for given catList. More... | |
TIterator & | operator= (const TIterator &) |
Protected Member Functions inherited from TIterator | |
TIterator () | |
TIterator (const TIterator &) | |
Protected Attributes | |
RooArgSet | _catList |
pRooCategory * | _catPtrList |
TObjString | _compositeLabel |
TObject * | _curItem |
Int_t | _curIter |
RooCatType * | _curTypeList |
pTIterator * | _iterList |
Int_t | _nIter |
TString | _rangeName |
#include <RooMultiCatIter.h>
RooMultiCatIter::RooMultiCatIter | ( | const RooArgSet & | catList, |
const char * | rangeName = 0 |
||
) |
Construct iterator over all permutations of states of categories in catList.
If rangeName is not null, iteration is restricted to states that are selected in the given range name
Definition at line 49 of file RooMultiCatIter.cxx.
RooMultiCatIter::RooMultiCatIter | ( | const RooMultiCatIter & | other | ) |
Copy constructor.
Definition at line 62 of file RooMultiCatIter.cxx.
|
virtual |
Destructor.
Definition at line 113 of file RooMultiCatIter.cxx.
|
protected |
Construct string with composite object label corresponding to the state name of a RooMultiCategory or RooSuperCategory constructed from this set of input categories.
Definition at line 142 of file RooMultiCatIter.cxx.
|
virtual |
Dummy implementation, always returns zero.
Implements TIterator.
Definition at line 128 of file RooMultiCatIter.cxx.
Build iterator array for given catList.
Definition at line 72 of file RooMultiCatIter.cxx.
|
virtual |
Iterator increment operator.
Implements TIterator.
Definition at line 162 of file RooMultiCatIter.cxx.
|
virtual |
Comparison operator to other iterator Returns true if both iterator iterate over the same set of input categories and are not at the same sequential position.
Reimplemented from TIterator.
Definition at line 236 of file RooMultiCatIter.cxx.
|
virtual |
Return current item (dummy)
Reimplemented from TIterator.
Definition at line 224 of file RooMultiCatIter.cxx.
Reimplemented from TIterator.
Definition at line 45 of file RooMultiCatIter.h.
|
protected |
Definition at line 50 of file RooMultiCatIter.h.
|
protected |
Definition at line 52 of file RooMultiCatIter.h.
|
protected |
Definition at line 56 of file RooMultiCatIter.h.
|
protected |
Definition at line 58 of file RooMultiCatIter.h.
|
protected |
Definition at line 55 of file RooMultiCatIter.h.
|
protected |
Definition at line 53 of file RooMultiCatIter.h.
|
protected |
Definition at line 51 of file RooMultiCatIter.h.
|
protected |
Definition at line 54 of file RooMultiCatIter.h.
|
protected |
Definition at line 57 of file RooMultiCatIter.h.