ROOT logo
// @(#)root/tree:$Id: TLeafI.h 36407 2010-10-22 02:04:08Z pcanal $
// Author: Rene Brun   12/01/96

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TLeafI
#define ROOT_TLeafI


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TLeafI                                                               //
//                                                                      //
// A TLeaf for an Integer data type.                                    //
//                                                                      //
//////////////////////////////////////////////////////////////////////////


#ifndef ROOT_TLeaf
#include "TLeaf.h"
#endif

class TLeafI : public TLeaf {

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

public:
   TLeafI();
   TLeafI(TBranch *parent, const char *name, const char *type);
   virtual ~TLeafI();
   
   virtual void    Export(TClonesArray *list, Int_t n);
   virtual void    FillBasket(TBuffer &b);
   const char     *GetTypeName() const;
   virtual Int_t   GetMaximum() const {return fMaximum;}
   virtual Int_t   GetMinimum() const {return fMinimum;}
   Double_t        GetValue(Int_t i=0) const;
   virtual void   *GetValuePointer() const {return fValue;}
   virtual void    Import(TClonesArray *list, Int_t n);
   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(istream & s);
   virtual void    SetAddress(void *add=0);
   virtual void    SetMaximum(Int_t max) {fMaximum = max;}
   virtual void    SetMinimum(Int_t min) {fMinimum = min;}
   
   ClassDef(TLeafI,1);  //A TLeaf for an Integer data type.
};

#endif
 TLeafI.h:1
 TLeafI.h:2
 TLeafI.h:3
 TLeafI.h:4
 TLeafI.h:5
 TLeafI.h:6
 TLeafI.h:7
 TLeafI.h:8
 TLeafI.h:9
 TLeafI.h:10
 TLeafI.h:11
 TLeafI.h:12
 TLeafI.h:13
 TLeafI.h:14
 TLeafI.h:15
 TLeafI.h:16
 TLeafI.h:17
 TLeafI.h:18
 TLeafI.h:19
 TLeafI.h:20
 TLeafI.h:21
 TLeafI.h:22
 TLeafI.h:23
 TLeafI.h:24
 TLeafI.h:25
 TLeafI.h:26
 TLeafI.h:27
 TLeafI.h:28
 TLeafI.h:29
 TLeafI.h:30
 TLeafI.h:31
 TLeafI.h:32
 TLeafI.h:33
 TLeafI.h:34
 TLeafI.h:35
 TLeafI.h:36
 TLeafI.h:37
 TLeafI.h:38
 TLeafI.h:39
 TLeafI.h:40
 TLeafI.h:41
 TLeafI.h:42
 TLeafI.h:43
 TLeafI.h:44
 TLeafI.h:45
 TLeafI.h:46
 TLeafI.h:47
 TLeafI.h:48
 TLeafI.h:49
 TLeafI.h:50
 TLeafI.h:51
 TLeafI.h:52
 TLeafI.h:53
 TLeafI.h:54
 TLeafI.h:55
 TLeafI.h:56
 TLeafI.h:57
 TLeafI.h:58
 TLeafI.h:59
 TLeafI.h:60
 TLeafI.h:61