12 #ifndef ROOT_TBranchBrowsable
13 #define ROOT_TBranchBrowsable
47 if (
IsFolder())
return "TBranchElement-folder";
48 else return "TBranchElement-leaf";
111 if (
IsFolder())
return "TMethodBrowsable-branch";
112 return "TMethodBrowsable-leaf";}
189 #endif // defined ROOT_TBranchBrowsable
static void Unregister()
Wrapper for the registration method.
ClassDef(TVirtualBranchBrowsable, 0)
void GetScope(TString &scope) const
Returns the full name for TTree::Draw to draw *this.
static void RegisterDefaultGenerators()
Adds the default generators.
ClassDef(TCollectionMethodBrowsable, 0)
static Int_t GetBrowsables(TList &list, const TBranch *branch, const TVirtualBranchBrowsable *parent=0)
This methods fills list with TMethodBrowsables for the branch's or parent's collection class and its ...
static Int_t GetBrowsables(TList &list, const TBranch *branch, const TVirtualBranchBrowsable *parent=0)
This methods fills list with TMethodBrowsables for the branch's or parent's class and its base classe...
static void Register()
Wrapper for the registration method.
const char * GetIconName() const
Returns mime type name of object.
virtual void SetNameTitle(const char *name, const char *title)
Change (i.e. set) all the TNamed parameters (name and title).
const TVirtualBranchBrowsable * fParent
A tiny browser helper object (and its generator) for adding a virtual (as in "not actually part of th...
const TVirtualBranchBrowsable * GetParent() const
void SetType(TClass *type)
const char * Data() const
static Int_t FillListOfBrowsables(TList &list, const TBranch *branch, const TVirtualBranchBrowsable *parent=0)
Askes all registered generators to fill their browsables into the list.
const TBranch * GetBranch() const
static void GetBrowsableMethodsForClass(TClass *cl, TList &list)
Given a class, this methods fills list with TMethodBrowsables for the class and its base classes...
static void Unregister()
Wrapper for the registration method.
The TNamed class is the base class for all named ROOT classes.
TNonSplitBrowsable(const TStreamerElement *element, const TBranch *branch, const TVirtualBranchBrowsable *parent=0)
Constructor.
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
TCollectionMethodBrowsable(const TBranch *branch, TMethod *m, const TVirtualBranchBrowsable *parent=0)
Contructor, see TMethodBrowsable's constructor.
static TClass * GetCollectionContainedType(const TBranch *b, const TVirtualBranchBrowsable *parent, TClass *&contained)
Check whether the branch (or the parent) contains a collection.
static void Register()
Wrapper for the registration method.
Using a TBrowser one can browse all ROOT objects.
Bool_t TypeIsPointer() const
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
static Bool_t IsMethodBrowsable(const TMethod *m)
A TMethod is browsable if it is const, public and not pure virtual, if does not have any parameter wi...
static void RegisterGenerator(MethodCreateListOfBrowsables_t generator)
Adds a generator to be called when browsing branches.
TCollectionMethodBrowsable extends TCollectionPropertyBrowsable by showing all methods of the collect...
static Int_t GetBrowsables(TList &list, const TBranch *branch, const TVirtualBranchBrowsable *parent=0)
Given either a branch "branch" or a "parent" TVirtualBranchBrowsable, we fill "list" with objec...
ClassDef(TMethodBrowsable, 0)
~TCollectionPropertyBrowsable()
The ROOT global object gROOT contains a list of all defined classes.
static void Unregister()
Wrapper for the registration method.
static Bool_t fgGeneratorsSet
TMethodBrowsable(const TBranch *branch, TMethod *m, const TVirtualBranchBrowsable *parent=0)
Constructor.
TVirtualBranchBrowsable is a base class (not really abstract, but useless by itself) for helper objec...
A Branch for the case of an object.
void SetTypeIsPointer(Bool_t set=kTRUE)
TClass * GetClassType() const
void Browse(TBrowser *b)
Calls TTree::Draw on the method if return type is not a class; otherwise expands returned object's "f...
TCollectionPropertyBrowsable(const char *name, const char *title, const char *draw, const TBranch *branch, const TVirtualBranchBrowsable *parent=0)
ClassDef(TCollectionPropertyBrowsable, 0)
const char * GetIconName() const
Returns mime type name of object.
TList * GetLeaves() const
Return list of leaves. If not set up yet we'll create them.
Int_t(* MethodCreateListOfBrowsables_t)(TList &, const TBranch *branch, const TVirtualBranchBrowsable *parent)
static void Register()
Wrapper for the registration method.
ClassDef(TNonSplitBrowsable, 0)
static Int_t GetBrowsables(TList &list, const TBranch *branch, const TVirtualBranchBrowsable *parent=0)
If the element to browse (given by either parent of branch) contains a collection (TClonesArray or so...
Each ROOT class (see TClass) has a linked list of methods.
static void Unregister()
Wrapper for the registration method.
static std::list< MethodCreateListOfBrowsables_t > fgGenerators
~TCollectionMethodBrowsable()
static void Register()
Wrapper for the registration method.
void Browse(TBrowser *b)
Browses a TCollectionPropertyBrowsable.
A TTree is a list of TBranches.
static std::list< MethodCreateListOfBrowsables_t > & GetRegisteredGenerators()
returns the list of registered generator methods
~TVirtualBranchBrowsable()
Destructor. Delete our leaves.
TVirtualBranchBrowsable(const TBranch *b, TClass *type, Bool_t typeIsPointer, const TVirtualBranchBrowsable *parent=0)
Constructor setting all members according to parameters.
Allows a TBrowser to browse non-split branches as if they were split.
const char * GetDraw() const
static void UnregisterGenerator(MethodCreateListOfBrowsables_t generator)
Removes a generator from the list of generators to be called when browsing branches.
This helper object allows the browsing of methods of objects stored in branches.