Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TLeafI.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/tree:$Id$
0002 // Author: Rene Brun   12/01/96
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TLeafI
0013 #define ROOT_TLeafI
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TLeafI                                                               //
0019 //                                                                      //
0020 // A TLeaf for an Integer data type.                                    //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 
0025 #include "TLeaf.h"
0026 
0027 class TLeafI : public TLeaf {
0028 
0029 protected:
0030    Int_t       fMinimum;         ///<  Minimum value if leaf range is specified
0031    Int_t       fMaximum;         ///<  Maximum value if leaf range is specified
0032    Int_t       *fValue;          ///<! Pointer to data buffer
0033    Int_t       **fPointer;       ///<! Address of pointer to data buffer
0034 
0035 public:
0036    TLeafI();
0037    TLeafI(TBranch *parent, const char *name, const char *type);
0038    ~TLeafI() override;
0039 
0040    void            Export(TClonesArray *list, Int_t n) override;
0041    void            FillBasket(TBuffer &b) override;
0042    DeserializeType GetDeserializeType() const override { return DeserializeType::kInPlace; }
0043    const char     *GetTypeName() const override;
0044    Int_t           GetMaximum() const override { return fMaximum; }
0045    Int_t           GetMinimum() const override { return fMinimum; }
0046    Double_t        GetValue(Int_t i=0) const override;
0047    void           *GetValuePointer() const override { return fValue; }
0048    bool            IncludeRange(TLeaf *) override;
0049    void            Import(TClonesArray *list, Int_t n) override;
0050    void            PrintValue(Int_t i=0) const override;
0051    void            ReadBasket(TBuffer &b) override;
0052    void            ReadBasketExport(TBuffer &b, TClonesArray *list, Int_t n) override;
0053    bool            ReadBasketFast(TBuffer&, Long64_t) override;
0054    void            ReadValue(std::istream& s, Char_t delim = ' ') override;
0055    void            SetAddress(void *add=nullptr) override;
0056    virtual void    SetMaximum(Int_t max) {fMaximum = max;}
0057    virtual void    SetMinimum(Int_t min) {fMinimum = min;}
0058 
0059    ClassDefOverride(TLeafI,1);  //A TLeaf for an Integer data type.
0060 };
0061 
0062 #endif