145 if(dm->IsaPointer()) {
146 TString trueTypeName = dm->GetTrueTypeName();
157 void** pptr = (
void**)((
ULong_t)pointer + dm->GetOffset());
176 size = dm->GetUnitSize();
180 if(dm->GetDataType()) {
193 parent->SetTotalSize(parent->GetTotalSize() + node->
GetTotalSize() - size);
195 parent->SetAllMembersCount(parent->GetAllMembersCount() + node->
GetAllMembersCount() - 1);
197 ptr = (
void*)((
ULong_t)pointer + dm->GetOffset());
208 if (dm->IsSTLContainer()) {
238 size = clProxy->
Size();
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);
278 name = ((
TObject*) element)->GetName();
312 while((item = it2())) {
315 if (
TClass* cl3 = item->IsA()){
329 parent->SetMembersCount(parent->GetMembersCount() + 1);
333 parent->SetTotalSize(parent->GetTotalSize() + node->
GetTotalSize());
334 parent->SetAllMembersCount(parent->GetAllMembersCount() + node->
GetAllMembersCount());
347 }
else if (opt ==
"size") {
433 while ((lst = (
TList*) it() )) {
508 if (!strcmp(prop->
GetName(), typeName)) {
virtual void Clear(Option_t *="")
void Add(ULong64_t hash, Long64_t key, Long64_t value)
Add an (key,value) pair to the table. The key should be unique.
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...
void SetNodePtr(TStructNode *val)
Sets top node pointer and updates view.
void Prepare()
Create top node and find all member nodes.
void Update(Bool_t resetCamera=false)
Updates view. Clear all the nodes, call draw function and update scene. Doesn't reset camera...
void SetLinksVisibility(Bool_t val)
Sets links visibility to "visible".
void SetNodeType(ENodeType type)
Sets type of node to "type".
TExMap GetLevelMembersCount() const
Returns TExMap with pairs <level number, number of objects>
virtual void Clear(Option_t *option="")
Remove all objects from the array.
virtual TClass * GetValueClass() const =0
All ROOT classes may have RTTI (run time type identification) support added.
int GetSplit(const char *type, std::vector< std::string > &output, int &nestedLoc, EModType mode=TClassEdit::kNone)
Stores in output (after emptying it) the splited type.
void * GetPointer() const
Returns main pointer.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
Bool_t IsTObject() const
Return kTRUE is the class inherits from TObject.
void Draw(Option_t *option="")
Draw object if there is valid pointer.
TList * GetListOfDataMembers(Bool_t load=kTRUE)
Return list containing the TDataMembers of a class.
TGMainFrame * GetFrame()
Returns pointer to main window.
void SetMembersCount(ULong_t count)
Sets number of members to "number".
Bool_t GetLinksVisibility() const
Returns true if links are visible, otherwise return false.
virtual EDataType GetType() const =0
void SetLinksVisibility(Bool_t val)
ISets links visibility.
virtual void Sort(Bool_t order=kSortAscending)
Sort linked list.
void SetAllMembersCount(ULong_t count)
Sets numbers of all members to "number".
const char * Data() const
UInt_t GetLevel() const
Returns actual level of node.
ULong_t GetMembersCount() const
Returns numbers of members of node.
std::string ResolveTypedef(const char *tname, bool resolveAll=false)
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...
void SetColor(TString name, Int_t color)
Sets color for the class "name" to color "color".
TColor GetColor() const
Returns color of class.
void Reset()
Deleting nodes, maps and array.
~TStructViewer()
Destructor. Clean all object after closing the viewer.
ULong_t GetTotalSize() const
Returns total size of allocated memory in bytes.
void BuildRealData(void *pointer=0, Bool_t isTransient=kFALSE)
Build a full list of persistent data members.
TExMap fLevelMembersCount
Long64_t GetValue(ULong64_t hash, Long64_t key)
Return the value belonging to specified key and hash value.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
Bool_t GetLinksVisibility() const
Get visibility of links between objects.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual Bool_t HasPointers() const =0
Collection abstract base class.
ULong_t GetAllMembersCount() const
Returns number of all members in node.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb"...
virtual const char * GetName() const
Returns name of object.
The ROOT global object gROOT contains a list of all defined classes.
virtual UInt_t Sizeof() const =0
virtual const char * GetName() const
Returns name of object.
TExMap GetLevelSize() const
Returns TExMap with pairs <level number, size of level in bytes>
void SetTotalSize(ULong_t size)
Sets total size of allocated memory in bytes to value "size".
virtual void * At(UInt_t idx)=0
The color creation and management class.
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.
virtual void Clear(Option_t *option="")
Remove all objects from the list.
void SetColor(const TColor &color)
Sets the color to "color".
TVirtualCollectionProxy * GetCollectionProxy() const
Return the proxy describing the collection (if any).
Mother of all ROOT objects.
virtual UInt_t Size() const =0
virtual void Add(TObject *obj)
void CountMembers(TClass *cl, TStructNode *parent, void *pointer)
Count allocated memory, increase member counters, find child nodes.
void SetPointer(void *ptr, const char *clname=NULL)
Set main pointer of class "clname".
TCanvas * GetCanvas()
Returns canvas used to keep TGeoVolumes.
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
void * GetPointer() const
Return main pointer.
TColor GetColor(const char *typeName)
Returns color associated with type "typeName".
Int_t Size() const
Return size of object of this class.
This class stores a (key,value) pair using an external hash.