12#ifndef ROOT_TStructViewer
13#define ROOT_TStructViewer
47 TStructViewer(
void* ptr =
nullptr,
const char * clname =
nullptr);
60 void SetPointer(
void* ptr,
const char* clname =
nullptr);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDef(name, id)
TClass instances represent classes, structs and namespaces in the ROOT type system.
The color creation and management class.
This class stores a (key,value) pair using an external hash.
Defines top level windows that interact with the system Window Manager.
Mother of all ROOT objects.
TExMap fLevelMembersCount
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".
TColor GetColor(const char *typeName)
Returns color associated with type "typeName".
void Reset()
Deleting nodes, maps and array.
Bool_t GetLinksVisibility() const
Get visibility of links between objects.
void SetPointer(void *ptr, const char *clname=nullptr)
Set main pointer of class "clname".
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>