ROOT logo
ROOT » TREE » TREE » TTreeFriendLeafIter

class TTreeFriendLeafIter: public TIterator


TTreeFriendLeafIter

Iterator on all the leaves in a TTree and its friend


Function Members (Methods)

public:
TTreeFriendLeafIter(const TTreeFriendLeafIter& iter)
TTreeFriendLeafIter(const TTree* t, Bool_t dir = kIterForward)
virtual~TTreeFriendLeafIter()
static TClass*Class()
virtual const TCollection*GetCollection() const
virtual Option_t*GetOption() const
virtual TClass*IsA() const
virtual TObject*Next()
virtual booloperator!=(const TIterator&) const
booloperator!=(const TTreeFriendLeafIter&) const
TObject*TIterator::operator()()
virtual TObject*operator*() const
virtual TIterator&operator=(const TIterator& rhs)
TTreeFriendLeafIter&operator=(const TTreeFriendLeafIter& rhs)
virtual voidReset()
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
TTreeFriendLeafIter()

Data Members

protected:
Bool_tfDirectioniteration direction
TIterator*fLeafItercurrent leaf sub-iterator.
TTree*fTreetree being iterated
TIterator*fTreeItercurrent tree sub-iterator.

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TTreeFriendLeafIter(const TTree* t, Bool_t dir = kIterForward)
 Create a new iterator. By default the iteration direction
 is kIterForward. To go backward use kIterBackward.
TTreeFriendLeafIter(const TTreeFriendLeafIter& iter)
 Copy constructor.  Does NOT copy the 'cursor' location!
TIterator& operator=(const TIterator& rhs)
 Overridden assignment operator. Does NOT copy the 'cursor' location!
TTreeFriendLeafIter& operator=(const TTreeFriendLeafIter& rhs)
 Overridden assignment operator.  Does NOT copy the 'cursor' location!
TObject* Next()
 Go the next friend element
Option_t* GetOption() const
 Returns the object option stored in the list.
void Reset(Option_t* option = "")
TTreeFriendLeafIter()
{ }
~TTreeFriendLeafIter()
{ SafeDelete(fLeafIter); SafeDelete(fTreeIter); }
const TCollection * GetCollection() const
{ return 0; }
TObject * operator*() const
 TODO: Implement me