Warning, file /include/root/TLeafObject.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TLeafObject
0013 #define ROOT_TLeafObject
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 #include "TLeaf.h"
0026 #include "TClassRef.h"
0027
0028 class TClass;
0029 class TMethodCall;
0030
0031 class TLeafObject : public TLeaf {
0032
0033 protected:
0034 TClassRef fClass;
0035 void **fObjAddress;
0036 bool fVirtual;
0037
0038 public:
0039 enum EStatusBits {
0040 kWarn = BIT(14)
0041 };
0042
0043
0044
0045
0046
0047
0048 enum EStatusBitsOldValues {
0049 kOldWarn = BIT(12)
0050 };
0051
0052 TLeafObject();
0053 TLeafObject(TBranch *parent, const char *name, const char *type);
0054 ~TLeafObject() override;
0055
0056 bool CanGenerateOffsetArray() override { return false; }
0057 void FillBasket(TBuffer &b) override;
0058 virtual Int_t *GenerateOffsetArrayBase(Int_t , Int_t ) { return nullptr; }
0059 TClass *GetClass() const {return fClass;}
0060 TMethodCall *GetMethodCall(const char *name);
0061 TObject *GetObject() const {return (TObject*)(*fObjAddress);}
0062 const char *GetTypeName() const override;
0063 void *GetValuePointer() const override {return fObjAddress;}
0064 bool IsOnTerminalBranch() const override;
0065 bool IsVirtual() const {return fVirtual;}
0066 bool Notify() override;
0067 void PrintValue(Int_t i=0) const override;
0068 void ReadBasket(TBuffer &b) override;
0069 void SetAddress(void *add=nullptr) override;
0070 virtual void SetVirtual(bool virt=true) {fVirtual=virt;}
0071
0072 ClassDefOverride(TLeafObject,4);
0073 };
0074
0075 #endif