library: libTree #include "TLeafI.h"

# TLeafI

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

## class TLeafI : public TLeaf

| Inheritance Chart:
`TObject`
| <- | `TNamed`
| <- | `TLeaf`
| <- | `TLeafI` |

        public:

                              TLeafI()
                              TLeafI(const char* name, const char* type)
                              TLeafI(const TLeafI&)
                      virtual ~TLeafI()
               static TClass* Class()
                 virtual void Export(TClonesArray* list, Int_t n)
                 virtual void FillBasket(TBuffer& b)
                virtual Int_t GetMaximum() const
                virtual Int_t GetMinimum() 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
                      TLeafI& operator=(const TLeafI&)
                 virtual void PrintValue(Int_t i = 0) const
                 virtual void ReadBasket(TBuffer& b)
                 virtual void ReadBasketExport(TBuffer& b, TClonesArray* list, Int_t n)
                 virtual void ReadValue(ifstream& s)
                 virtual void SetAddress(void* add = 0)
                 virtual void SetMaximum(Int_t max)
                 virtual void SetMinimum(Int_t min)
                 virtual void ShowMembers(TMemberInspector& insp, char* parent)
                 virtual void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

            Int_t fMinimum  Minimum value if leaf range is specified
            Int_t fMaximum  Maximum value if leaf range is specified
           Int_t* fValue    !Pointer to data buffer
          Int_t** fPointer  !Address of pointer to data buffer

## Class Description

     A TLeaf for an Integer data type.

TLeafI(): TLeaf()

    *-*-*-*-*-*Default constructor for LeafI*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*        ============================

TLeafI(const char *name, const char *type) :TLeaf(name,type)

    *-*-*-*-*-*-*-*-*-*-*-*-*Create a LeafI*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                      ==============
    *-*

~TLeafI()

    *-*-*-*-*-*Default destructor for a LeafI*-*-*-*-*-*-*-*-*-*-*-*
    *-*        ===============================

void Export(TClonesArray *list, Int_t n)

    *-*-*-*-*-*Export element from local leaf buffer to ClonesArray*-*-*-*-*
    *-*        ======================================================

void FillBasket(TBuffer &b)

    *-*-*-*-*-*-*-*-*-*-*Pack leaf elements in Basket output buffer*-*-*-*-*-*-*
    *-*                  =========================================

const char* GetTypeName() const

    *-*-*-*-*-*-*-*Returns name of leaf type*-*-*-*-*-*-*-*-*-*-*-*
    *-*            =========================

Double_t GetValue(Int_t i) const

     Returns current value of leaf
     if leaf is a simple type, i must be set to 0
     if leaf is an array, i is the array element number to be returned

void Import(TClonesArray *list, Int_t n)

    *-*-*-*-*-*Import element from ClonesArray into local leaf buffer*-*-*-*-*
    *-*        ======================================================

void PrintValue(Int_t l) const

     Prints leaf value

void ReadBasket(TBuffer &b)

    *-*-*-*-*-*-*-*-*-*-*Read leaf elements from Basket input buffer*-*-*-*-*-*
    *-*                  ===========================================

void ReadBasketExport(TBuffer &b, TClonesArray *list, Int_t n)

    *-*-*-*-*-*-*-*-*-*-*Read leaf elements from Basket input buffer*-*-*-*-*-*
      and export buffer to TClonesArray objects

void ReadValue(ifstream &s)

     read an integer from ifstream s and store it into the branch buffer

void SetAddress(void *add)

    *-*-*-*-*-*-*-*-*-*-*Set leaf buffer data address*-*-*-*-*-*
    *-*                  ============================

### Inline Functions

                  Int_t GetMaximum() const
                  Int_t GetMinimum() const
                  void* GetValuePointer() const
                   void SetMaximum(Int_t max)
                   void SetMinimum(Int_t min)
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
                 TLeafI TLeafI(const TLeafI&)
                TLeafI& operator=(const TLeafI&)

Author: Rene Brun 12/01/96
Last update: root/tree:$Name: $:$Id: TLeafI.cxx,v 1.18 2004/10/18 12:32:12 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *