library: libTree
#include "TLeaf.h"

TLeaf


class description - header file - source file - inheritance tree (.pdf)

class TLeaf : public TNamed

Inheritance Chart:
TObject
<-
TNamed
<-
TLeaf
<-
TLeafB
TLeafC
TLeafD
TLeafElement
TLeafF
TLeafI
TLeafL
TLeafO
TLeafObject
TLeafS
 [more...]

    protected:
TLeaf(const TLeaf&) TLeaf& operator=(const TLeaf&) public:
TLeaf() TLeaf(const char* name, const char* type) virtual ~TLeaf() virtual void Browse(TBrowser* b) static TClass* Class() virtual void Export(TClonesArray* list, Int_t n) virtual void FillBasket(TBuffer& b) TBranch* GetBranch() const virtual TLeaf* GetLeafCount() const virtual TLeaf* GetLeafCounter(Int_t& countval) const virtual Int_t GetLen() const virtual Int_t GetLenStatic() const virtual Int_t GetLenType() const virtual Int_t GetMaximum() const virtual Int_t GetMinimum() const virtual Int_t GetNdata() const virtual Int_t GetOffset() const virtual const char* GetTypeName() const virtual Double_t GetValue(Int_t i = 0) const virtual void* GetValuePointer() const virtual void Import(TClonesArray* list, Int_t n) virtual TClass* IsA() const virtual Bool_t IsOnTerminalBranch() const virtual Bool_t IsRange() const virtual Bool_t IsUnsigned() const virtual void PrintValue(Int_t = 0) const virtual void ReadBasket(TBuffer&) virtual void ReadBasketExport(TBuffer&, TClonesArray*, Int_t) virtual void ReadValue(ifstream&) 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) void StreamerNVirtual(TBuffer& b)

Data Members


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

Class Description

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

TLeaf()
*-*-*-*-*-*Default constructor for Leaf*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*        ============================
TLeaf(const char *name, const char *)
*-*-*-*-*-*-*-*-*-*-*-*-*Create a Leaf*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      =============

     See the TTree and TBranch constructors for explanation of parameters.
TLeaf(const TLeaf& lf)
copy constructor
TLeaf& operator=(const TLeaf& lf)
assignement operator
~TLeaf()
*-*-*-*-*-*Default destructor for a Leaf*-*-*-*-*-*-*-*-*-*-*-*
*-*        ===============================
void Browse(TBrowser *b)
 Browse the content of this leaf.
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 = 1 and the pointer to
     the leaf named nelem.
  If leaf name has the forme var[nelem], where nelem is a digit, then
     return countval = nelem and a null pointer.
  Otherwise return countval=0 and a null pointer.

Int_t GetLen()
 Return the number of effective elements of this leaf
Int_t ResetAddress(void *add, Bool_t destructor)
 Set leaf buffer data address

  This function is called by all TLeafX::SetAddress
void SetLeafCount(TLeaf *leaf)
 Set the leaf count of this leaf
void Streamer(TBuffer &b)
*-*-*-*-*-*-*-*-*Stream a class object*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*              =========================================
void Export(TClonesArray *list, Int_t n)
Int_t GetLenStatic()
Int_t GetLenType()
Int_t GetMaximum()
Int_t GetMinimum()
Int_t GetNdata()
Int_t GetOffset()
Double_t GetValue(Int_t i=0)
void Import(TClonesArray *list, Int_t n)
Bool_t IsOnTerminalBranch()
Bool_t IsRange()
Bool_t IsUnsigned()
void PrintValue(Int_t =0)
void ReadBasket(TBuffer &)
void ReadBasketExport(TBuffer &, TClonesArray *, Int_t)
void SetAddress(void *add=0)
void SetBranch(TBranch *branch)
void SetLen(Int_t len=1)
void SetOffset(Int_t offset=0)
void SetRange(Bool_t range=kTRUE)
void SetUnsigned()

Author: Rene Brun 12/01/96
Last update: root/tree:$Name: $:$Id: TLeaf.cxx,v 1.18 2006/05/24 15:10:47 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - 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.