250 std::vector<std::string> parts;
253 std::vector<std::string>::const_iterator iPart = parts.begin();
254 while (iPart != parts.end() && *iPart ==
"")
256 if (iPart != parts.end() && *iPart != dm->
GetTypeName()) {
257 for (std::vector<std::string>::const_iterator iP = iPart,
258 iPE = parts.end(); iP != iPE; ++iP) {
271 for (
UInt_t i = 0; i < count ; i++) {
272 element = *(
void**)proxy->
At(i);
312 while((item = it2())) {
315 if (
TClass* cl3 = item->IsA()){
347 }
else if (opt ==
"size") {
433 while ((lst = (
TList*) it() )) {
508 if (!strcmp(prop->
GetName(), typeName)) {
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
TClass instances represent classes, structs and namespaces in the ROOT type system.
void BuildRealData(void *pointer=0, Bool_t isTransient=kFALSE)
Build a full list of persistent data members.
TList * GetListOfDataMembers(Bool_t load=kTRUE)
Return list containing the TDataMembers of a class.
Int_t Size() const
Return size of object of this class.
Bool_t IsTObject() const
Return kTRUE is the class inherits from TObject.
TVirtualCollectionProxy * GetCollectionProxy() const
Return the proxy describing the collection (if any).
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
Collection abstract base class.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
The color creation and management class.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
All ROOT classes may have RTTI (run time type identification) support added.
const char * GetTrueTypeName() const
Get full type description of data member, e,g.: "class TDirectory*".
Int_t GetUnitSize() const
Get the sizeof the underlying type of the data member (i.e.
Int_t IsSTLContainer()
The return type is defined in TDictionary (kVector, kList, etc.)
Bool_t IsaPointer() const
Return true if data member is a pointer.
TDataType * GetDataType() const
Longptr_t GetOffset() const
Get offset from "this".
const char * GetTypeName() const
Get type of data member, e,g.: "class TDirectory*" -> "TDirectory".
Long_t Property() const
Get property description word. For meaning of bits see EProperty.
This class stores a (key,value) pair using an external hash.
void Add(ULong64_t hash, Long64_t key, Long64_t value)
Add an (key,value) pair to the table. The key should be unique.
Long64_t GetValue(ULong64_t hash, Long64_t key)
Return the value belonging to specified key and hash value.
Defines top level windows that interact with the system Window Manager.
virtual void Add(TObject *obj)
virtual void Clear(Option_t *option="")
Remove all objects from the list.
virtual void Sort(Bool_t order=kSortAscending)
Sort linked list.
virtual const char * GetName() const
Returns name of object.
virtual void Clear(Option_t *option="")
Remove all objects from the array.
Mother of all ROOT objects.
virtual void Clear(Option_t *="")
virtual const char * GetName() const
Returns name of object.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
TColor GetColor() const
Returns color of class.
void SetColor(const TColor &color)
Sets the color to "color".
void SetNodeType(ENodeType type)
Sets type of node to "type".
ULong_t GetAllMembersCount() const
Returns number of all members in node.
ULong_t GetMembersCount() const
Returns numbers of members of node.
void SetMembersCount(ULong_t count)
Sets number of members to "number".
void * GetPointer() const
Returns main pointer.
void SetTotalSize(ULong_t size)
Sets total size of allocated memory in bytes to value "size".
void SetAllMembersCount(ULong_t count)
Sets numbers of all members to "number".
UInt_t GetLevel() const
Returns actual level of node.
ULong_t GetTotalSize() const
Returns total size of allocated memory in bytes.
void SetNodePtr(TStructNode *val)
Sets top node pointer and updates view.
Bool_t GetLinksVisibility() const
Returns true if links are visible, otherwise return false.
void SetLinksVisibility(Bool_t val)
Sets links visibility to "visible".
void Update(Bool_t resetCamera=false)
Updates view. Clear all the nodes, call draw function and update scene. Doesn't reset camera.
TExMap fLevelMembersCount
void Draw(Option_t *option="")
Draw object if there is valid pointer.
TCanvas * GetCanvas()
Returns canvas used to keep TGeoVolumes.
TGMainFrame * GetFrame()
Returns pointer to main window.
void SetLinksVisibility(Bool_t val)
ISets links visibility.
~TStructViewer()
Destructor. Clean all object after closing the viewer.
void CountMembers(TClass *cl, TStructNode *parent, void *pointer)
Count allocated memory, increase member counters, find child nodes.
void SetColor(TString name, Int_t color)
Sets color for the class "name" to color "color".
TStructViewer(void *ptr=NULL, const char *clname=NULL)
Default constructor. An argument "ptr" is a main pointer of type "clname", which should be shown in t...
TColor GetColor(const char *typeName)
Returns color associated with type "typeName".
void SetPointer(void *ptr, const char *clname=NULL)
Set main pointer of class "clname".
void Reset()
Deleting nodes, maps and array.
Bool_t GetLinksVisibility() const
Get visibility of links between objects.
void Prepare()
Create top node and find all member nodes.
void * GetPointer() const
Return main pointer.
void AddNode(TStructNode *node, ULong_t size)
Find list with nodes on specified level and add node to this list and increment list of sizes and lis...
TExMap GetLevelMembersCount() const
Returns TExMap with pairs <level number, number of objects>
TExMap GetLevelSize() const
Returns TExMap with pairs <level number, size of level in bytes>
virtual UInt_t Sizeof() const =0
virtual EDataType GetType() const =0
virtual TClass * GetValueClass() const =0
virtual void * At(UInt_t idx)=0
virtual UInt_t Size() const =0
virtual Bool_t HasPointers() const =0
std::string ResolveTypedef(const char *tname, bool resolveAll=false)
int GetSplit(const char *type, std::vector< std::string > &output, int &nestedLoc, EModType mode=TClassEdit::kNone)
Stores in output (after emptying it) the split type.