library: libTree #include "TLeafS.h"

# TLeafS

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

## class TLeafS : public TLeaf

| Inheritance Chart:

`TObject`

<-

`TNamed`

<-

`TLeaf`

<-

`TLeafS`

        public:

                              TLeafS()
                              TLeafS(const char* name, const char* type)
                              TLeafS(const TLeafS&)
                      virtual ~TLeafS()
               static TClass* Class()
                 virtual void Export(TClonesArray* list, Int_t n)
                 virtual void FillBasket(TBuffer& b)
          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
                      TLeafS& operator=(const TLeafS&)
                 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 ShowMembers(TMemberInspector& insp, char* parent)
                 virtual void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

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

## Class Description

     A TLeaf for a 16 bit Integer data type.

TLeafS(): TLeaf()

    *-*-*-*-*-*Default constructor for LeafS*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*        ============================

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

    *-*-*-*-*-*-*-*-*-*-*-*-*Create a LeafS*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                      ==============
    *-*

~TLeafS()

    *-*-*-*-*-*Default destructor for a LeafS*-*-*-*-*-*-*-*-*-*-*-*
    *-*        ===============================

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 a integer integer from ifstream s and store it into the branch buffer

void SetAddress(void *add)

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

### Inline Functions

                  void* GetValuePointer() const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
                 TLeafS TLeafS(const TLeafS&)
                TLeafS& operator=(const TLeafS&)

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