TLeaf


class description - source file - inheritance tree

class TLeaf : public TNamed


    public:
TLeaf TLeaf() TLeaf TLeaf(Text_t* name, Text_t* type) TLeaf TLeaf(TLeaf&) virtual void ~TLeaf() virtual void Browse(TBrowser* b) TClass* Class() virtual void Export(TClonesArray* list, Int_t n) virtual void FillBasket(TBuffer& b) TBranch* GetBranch() virtual TLeaf* GetLeafCount() virtual TLeaf* GetLeafCounter(Int_t& countval) virtual Int_t GetLen() virtual Int_t GetLenStatic() virtual Int_t GetLenType() virtual Int_t GetMaximum() virtual Int_t GetMinimum() virtual Int_t GetNdata() virtual Int_t GetOffset() virtual const Text_t* GetTypeName() virtual Float_t GetValue(Int_t i = 0, TTreeFormula* f = 0) virtual void* GetValuePointer() virtual void Import(TClonesArray* list, Int_t n) virtual TClass* IsA() virtual Bool_t IsRange() virtual Bool_t IsUnsigned() virtual void Print(Option_t* option) virtual void ReadBasket(TBuffer& b) Int_t ResetAddress(void* add, Bool_t destructor = kFALSE) virtual void SetAddress(void* add = 0) virtual void SetBranch(TBranch* branch) virtual void SetLeafCount(TLeaf* leaf) virtual void SetLen(Int_t len = 1) virtual void SetOffset(Int_t offset = 0) virtual void SetRange(Bool_t range = kTRUE) virtual void SetUnsigned() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
Int_t fLen Number of fixed length elements Int_t fLenType Number of bytes for this data type Int_t fNdata Number of elements in fAddress data buffer Int_t fOffset Offset in ClonesArray object (if one) TLeaf* fLeafCount Pointer to Leaf count if variable length Bool_t fIsRange (=kTRUE if leaf has a range, kFALSE otherwise) Bool_t fIsUnsigned (=kTRUE if unsigned, kFALSE otherwise) TBranch* fBranch Pointer to supporting branch


See also

TLeafB, TLeafC, TLeafD, TLeafF, TLeafI, TLeafObject, TLeafS

Class Description

                                                                      
 A TLeaf describes individual elements of a TBranch                   
       See TBranch structure in TTree.                                


TLeaf(): TNamed()
*-*-*-*-*-*Default constructor for Leaf*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*        ============================

TLeaf(const Text_t *name, const Text_t *) :TNamed(name,name)
*-*-*-*-*-*-*-*-*-*-*-*-*Create a Leaf*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      =============

     See the TTree and TBranch constructors for explanation of parameters.

~TLeaf()
*-*-*-*-*-*Default destructor for a Leaf*-*-*-*-*-*-*-*-*-*-*-*
*-*        ===============================

void Browse(TBrowser *)

void FillBasket(TBuffer &)
*-*-*-*-*-*-*-*-*-*-*Pack leaf elements in Basket output buffer*-*-*-*-*-*-*
*-*                  =========================================

TLeaf* GetLeafCounter(Int_t &countval)
*-*-*-*-*-*-*Return Pointer to counter of referenced Leaf*-*-*-*-*-*-*-*
*-*          ============================================

  If leaf name has the forme var[nelem], where nelem is alphanumeric, then
     If nelem is a leaf name, return countval = 0 and the pointer to leaf.
  If leaf name has the forme var[nelem], where nelem is a digit, then
     return countval = nelemr and a null pointer.
  Otherwise return countval=1 and a null pointer.


Int_t GetLen() const
*-*-*-*-*-*-*-*-*Return the number of effective elements of this leaf*-*-*-*
*-*              ====================================================

void Print(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Print a description of this leaf*-*-*-*-*-*-*-*-*
*-*                  ================================

void ReadBasket(TBuffer &)
*-*-*-*-*-*-*-*-*-*-*Read leaf elements from Basket input buffer*-*-*-*-*-*
*-*                  ===========================================

Int_t ResetAddress(void *add, Bool_t destructor)
*-*-*-*-*-*-*-*-*-*-*Set leaf buffer data address*-*-*-*-*-*
*-*                  ============================

  This function is called by all TLeafX::SetAddress

void Streamer(TBuffer &b)
*-*-*-*-*-*-*-*-*Stream a class object*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*              =========================================



Inline Functions


                 void Export(TClonesArray* list, Int_t n)
             TBranch* GetBranch()
               TLeaf* GetLeafCount()
                Int_t GetLenStatic()
                Int_t GetLenType()
                Int_t GetMaximum()
                Int_t GetMinimum()
                Int_t GetNdata()
                Int_t GetOffset()
                void* GetValuePointer()
        const Text_t* GetTypeName()
              Float_t GetValue(Int_t i = 0, TTreeFormula* f = 0)
                 void Import(TClonesArray* list, Int_t n)
               Bool_t IsRange()
               Bool_t IsUnsigned()
                 void SetAddress(void* add = 0)
                 void SetBranch(TBranch* branch)
                 void SetLeafCount(TLeaf* leaf)
                 void SetLen(Int_t len = 1)
                 void SetOffset(Int_t offset = 0)
                 void SetRange(Bool_t range = kTRUE)
                 void SetUnsigned()
              TClass* Class()
              TClass* IsA()
                 void ShowMembers(TMemberInspector& insp, char* parent)
                TLeaf TLeaf(TLeaf&)


Author: Rene Brun 12/01/96
Last update: 2.22/01 11/05/99 17.34.23 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.