File indexing completed on 2025-10-30 08:56:11
0001 
0002 
0003 
0004 
0005 
0006 
0007 
0008 
0009 
0010 
0011 
0012 #ifndef ROOT_TLeafC
0013 #define ROOT_TLeafC
0014 
0015 
0016 
0017 
0018 
0019 
0020 
0021 
0022 
0023 
0024 #include "TLeaf.h"
0025 
0026 class TLeafC : public TLeaf {
0027 
0028 protected:
0029    Int_t        fMinimum;         
0030    Int_t        fMaximum;         
0031    Char_t       *fValue;          
0032    Char_t       **fPointer;       
0033 
0034 public:
0035    TLeafC();
0036    TLeafC(TBranch *parent, const char *name, const char *type);
0037    ~TLeafC() override;
0038 
0039    void            Export(TClonesArray *list, Int_t n) override;
0040    void            FillBasket(TBuffer &b) override;
0041    Int_t           GetMaximum() const override {return fMaximum;}
0042    Int_t           GetMinimum() const override {return fMinimum;}
0043    const char     *GetTypeName() const override;
0044    Double_t        GetValue(Int_t i=0) const override;
0045    void           *GetValuePointer() const override {return fValue;}
0046    virtual char   *GetValueString() const {return fValue;}
0047    bool            IncludeRange(TLeaf *) override;
0048    void            Import(TClonesArray *list, Int_t n) override;
0049    void            PrintValue(Int_t i=0) const override;
0050    void            ReadBasket(TBuffer &b) override;
0051    void            ReadBasketExport(TBuffer &b, TClonesArray *list, Int_t n) override;
0052    void            ReadValue(std::istream& s, Char_t delim = ' ') override;
0053    void            SetAddress(void *add = nullptr) override;
0054    virtual void    SetMaximum(Int_t max) {fMaximum = max;}
0055    virtual void    SetMinimum(Int_t min) {fMinimum = min;}
0056 
0057    ClassDefOverride(TLeafC,1);  
0058 };
0059 
0060 inline Double_t TLeafC::GetValue(Int_t i) const { return fValue[i]; }
0061 
0062 #endif