12 #ifndef ROOT_TBranchBrowsable 13 #define ROOT_TBranchBrowsable 43 if (
IsFolder())
return "TBranchElement-folder";
44 else return "TBranchElement-leaf";
107 if (
IsFolder())
return "TMethodBrowsable-branch";
108 return "TMethodBrowsable-leaf";}
110 static void Register();
111 static void Unregister();
114 static void GetBrowsableMethodsForClass(
TClass* cl,
TList& list);
130 static void Register();
131 static void Unregister();
151 return fDraw.Data(); }
152 static void Register();
153 static void Unregister();
175 static void Register();
176 static void Unregister();
185 #endif // defined ROOT_TBranchBrowsable static void RegisterDefaultGenerators()
Adds the default generators.
const char * GetDraw() const
Bool_t TypeIsPointer() const
TList * fLeaves
pointer to leaves
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
const TVirtualBranchBrowsable * fParent
parent method if this method is member of a returned class
A tiny browser helper object (and its generator) for adding a virtual (as in "not actually part of th...
void SetType(TClass *type)
static Int_t FillListOfBrowsables(TList &list, const TBranch *branch, const TVirtualBranchBrowsable *parent=0)
Askes all registered generators to fill their browsables into the list.
void GetScope(TString &scope) const
Returns the full name for TTree::Draw to draw *this.
#define ClassDef(name, id)
Int_t(* MethodCreateListOfBrowsables_t)(TList &, const TBranch *branch, const TVirtualBranchBrowsable *parent)
The TNamed class is the base class for all named ROOT classes.
TList * GetLeaves() const
Return list of leaves. If not set up yet we'll create them.
const TVirtualBranchBrowsable * GetParent() const
const char * GetIconName() const
Returns mime type name of object.
const char * GetIconName() const
Returns mime type name of object.
static TClass * GetCollectionContainedType(const TBranch *b, const TVirtualBranchBrowsable *parent, TClass *&contained)
Check whether the branch (or the parent) contains a collection.
Using a TBrowser one can browse all ROOT objects.
TClass * fClass
pointer to TClass representing our type (i.e. return type for methods), 0 if basic type ...
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...
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
~TCollectionPropertyBrowsable()
The ROOT global object gROOT contains a list of all defined classes.
static Bool_t fgGeneratorsSet
have we set the generators yet? empty is not good enough - user might have removed them ...
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)
const TBranch * GetBranch() const
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)
Each ROOT class (see TClass) has a linked list of methods.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
const TBranch * fBranch
pointer to the branch element representing the top object
static std::list< MethodCreateListOfBrowsables_t > fgGenerators
list of MethodCreateListOfBrowsables_t called by CreateListOfBrowsables
~TCollectionMethodBrowsable()
Bool_t fTypeIsPointer
return type is pointer to class
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.
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.