TStructViewer Class Reference

#include <TStructViewer.h>

Inheritance diagram for TStructViewer:

TObject TObject List of all members.

Public Member Functions

 TStructViewer (void *ptr=NULL, const char *clname=NULL)
 ~TStructViewer ()
void Draw (Option_t *option="")
TCanvasGetCanvas ()
TGMainFrameGetFrame ()
TColor GetColor (const char *typeName)
TExMap GetLevelMembersCount () const
TExMap GetLevelSize () const
Bool_t GetLinksVisibility () const
void * GetPointer () const
void SetColor (TString name, Int_t color)
void SetLinksVisibility (Bool_t val)
void SetPointer (void *ptr, const char *clname=NULL)
 ClassDef (TStructViewer, 0)
 TStructViewer (void *ptr=NULL, const char *clname=NULL)
 ~TStructViewer ()
void Draw (Option_t *option="")
TCanvasGetCanvas ()
TGMainFrameGetFrame ()
TColor GetColor (const char *typeName)
TExMap GetLevelMembersCount () const
TExMap GetLevelSize () const
Bool_t GetLinksVisibility () const
void * GetPointer () const
void SetColor (TString name, Int_t color)
void SetLinksVisibility (Bool_t val)
void SetPointer (void *ptr, const char *clname=NULL)
 ClassDef (TStructViewer, 0)

Private Member Functions

void AddNode (TStructNode *node, ULong_t size)
void CountMembers (TClass *cl, TStructNode *parent, void *pointer)
void Prepare ()
void Reset ()
void AddNode (TStructNode *node, ULong_t size)
void CountMembers (TClass *cl, TStructNode *parent, void *pointer)
void Prepare ()
void Reset ()

Private Attributes

void * fPointer
TClassfPointerClass
TStructViewerGUIfGUI
TExMap fLevelMembersCount
TExMap fLevelSize
TExMap fPointers
TObjArray fLevelArray
TStructNodefTopNode
TList fColors
void * fPointer
TClassfPointerClass
TStructViewerGUIfGUI
TStructNodefTopNode

Detailed Description

Definition at line 26 of file TStructViewer.h.


Constructor & Destructor Documentation

TStructViewer::TStructViewer ( void *  ptr = NULL,
const char *  clname = NULL 
)

Definition at line 67 of file TStructViewer.cxx.

References TList::Add(), fColors, fGUI, fPointer, fPointerClass, fTopNode, NULL, and SetPointer().

TStructViewer::~TStructViewer (  ) 

Definition at line 85 of file TStructViewer.cxx.

References TList::Clear(), fColors, Reset(), and TCollection::SetOwner().

TStructViewer::TStructViewer ( void *  ptr = NULL,
const char *  clname = NULL 
)

TStructViewer::~TStructViewer (  ) 


Member Function Documentation

void TStructViewer::AddNode ( TStructNode node,
ULong_t  size 
) [private]

Definition at line 95 of file TStructViewer.cxx.

References fLevelArray, fLevelMembersCount, fLevelSize, TStructNode::GetLevel(), and list.

Referenced by CountMembers(), and Prepare().

void TStructViewer::CountMembers ( TClass cl,
TStructNode parent,
void *  pointer 
) [private]

Definition at line 113 of file TStructViewer.cxx.

References TExMap::Add(), AddNode(), TVirtualCollectionProxy::At(), TClass::BuildRealData(), xmlio::Class, TObject::ClassName(), fPointers, TStructNode::GetAllMembersCount(), TClass::GetClass(), TClass::GetCollectionProxy(), TClass::GetListOfDataMembers(), TStructNode::GetMembersCount(), TObject::GetName(), TStructNode::GetPointer(), TClassEdit::GetSplit(), TStructNode::GetTotalSize(), TVirtualCollectionProxy::GetType(), TExMap::GetValue(), TVirtualCollectionProxy::GetValueClass(), TVirtualCollectionProxy::HasPointers(), i, TClass::InheritsFrom(), kBasic, kClass, kCollection, kFALSE, kNoType_t, kSTLCollection, kTRUE, name, NULL, ptr, TClassEdit::ResolveTypedef(), TStructNode::SetAllMembersCount(), TStructNode::SetMembersCount(), TStructNode::SetNodeType(), TStructNode::SetTotalSize(), TVirtualCollectionProxy::Size(), TClass::Size(), size, TVirtualCollectionProxy::Sizeof(), and type.

Referenced by Prepare().

void TStructViewer::Prepare (  )  [private]

Definition at line 407 of file TStructViewer.cxx.

References AddNode(), xmlio::Class, CountMembers(), fPointer, fPointerClass, fTopNode, TClass::InheritsFrom(), kClass, name, NULL, Reset(), TClass::Size(), and size.

Referenced by SetPointer().

void TStructViewer::Reset (  )  [private]

Definition at line 426 of file TStructViewer.cxx.

References TList::Clear(), TObjArray::Clear(), TObject::Clear(), fLevelArray, fLevelMembersCount, fLevelSize, fPointers, fTopNode, NULL, and TCollection::SetOwner().

Referenced by Prepare(), and ~TStructViewer().

void TStructViewer::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

Definition at line 340 of file TStructViewer.cxx.

References fGUI, fTopNode, and TStructViewerGUI::SetNodePtr().

Referenced by gviz3d().

TCanvas * TStructViewer::GetCanvas (  ) 

Definition at line 360 of file TStructViewer.cxx.

References fGUI, and TStructViewerGUI::GetCanvas().

TGMainFrame * TStructViewer::GetFrame (  ) 

Definition at line 368 of file TStructViewer.cxx.

References fGUI.

TColor TStructViewer::GetColor ( const char *  typeName  ) 

Definition at line 500 of file TStructViewer.cxx.

References fColors, TStructNodeProperty::GetColor(), and TNamed::GetName().

TExMap TStructViewer::GetLevelMembersCount (  )  const

Definition at line 383 of file TStructViewer.cxx.

References fLevelMembersCount.

TExMap TStructViewer::GetLevelSize (  )  const

Definition at line 391 of file TStructViewer.cxx.

References fLevelSize.

Bool_t TStructViewer::GetLinksVisibility (  )  const

Definition at line 399 of file TStructViewer.cxx.

References fGUI, and TStructViewerGUI::GetLinksVisibility().

void * TStructViewer::GetPointer (  )  const

Definition at line 375 of file TStructViewer.cxx.

References fPointer.

void TStructViewer::SetColor ( TString  name,
Int_t  color 
)

Definition at line 447 of file TStructViewer.cxx.

References TList::Add(), fColors, fGUI, TColor::GetColor(), TNamed::GetName(), name, TStructNodeProperty::SetColor(), TList::Sort(), and TStructViewerGUI::Update().

Referenced by FillColorsMap().

void TStructViewer::SetLinksVisibility ( Bool_t  val  ) 

Definition at line 469 of file TStructViewer.cxx.

References fGUI, and TStructViewerGUI::SetLinksVisibility().

void TStructViewer::SetPointer ( void *  ptr,
const char *  clname = NULL 
)

Definition at line 477 of file TStructViewer.cxx.

References a, fGUI, fPointer, fPointerClass, fTopNode, TClass::GetClass(), Prepare(), and TStructViewerGUI::SetNodePtr().

Referenced by TStructViewerGUI::SetPointerButtonSlot(), and TStructViewer().

TStructViewer::ClassDef ( TStructViewer  ,
 
)

void TStructViewer::AddNode ( TStructNode node,
ULong_t  size 
) [private]

void TStructViewer::CountMembers ( TClass cl,
TStructNode parent,
void *  pointer 
) [private]

void TStructViewer::Prepare (  )  [private]

void TStructViewer::Reset (  )  [private]

void TStructViewer::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

TCanvas* TStructViewer::GetCanvas (  ) 

TGMainFrame* TStructViewer::GetFrame (  ) 

TColor TStructViewer::GetColor ( const char *  typeName  ) 

TExMap TStructViewer::GetLevelMembersCount (  )  const

TExMap TStructViewer::GetLevelSize (  )  const

Bool_t TStructViewer::GetLinksVisibility (  )  const

void* TStructViewer::GetPointer (  )  const

void TStructViewer::SetColor ( TString  name,
Int_t  color 
)

void TStructViewer::SetLinksVisibility ( Bool_t  val  ) 

void TStructViewer::SetPointer ( void *  ptr,
const char *  clname = NULL 
)

TStructViewer::ClassDef ( TStructViewer  ,
 
)


Member Data Documentation

void* TStructViewer::fPointer [private]

Definition at line 29 of file TStructViewer.h.

Referenced by GetPointer(), Prepare(), SetPointer(), and TStructViewer().

TClass* TStructViewer::fPointerClass [private]

Definition at line 30 of file TStructViewer.h.

Referenced by Prepare(), SetPointer(), and TStructViewer().

TStructViewerGUI* TStructViewer::fGUI [private]

Definition at line 31 of file TStructViewer.h.

Referenced by Draw(), GetCanvas(), GetFrame(), GetLinksVisibility(), SetColor(), SetLinksVisibility(), SetPointer(), and TStructViewer().

TExMap TStructViewer::fLevelMembersCount [private]

Definition at line 32 of file TStructViewer.h.

Referenced by AddNode(), GetLevelMembersCount(), and Reset().

TExMap TStructViewer::fLevelSize [private]

Definition at line 33 of file TStructViewer.h.

Referenced by AddNode(), GetLevelSize(), and Reset().

TExMap TStructViewer::fPointers [private]

Definition at line 34 of file TStructViewer.h.

Referenced by CountMembers(), and Reset().

TObjArray TStructViewer::fLevelArray [private]

Definition at line 35 of file TStructViewer.h.

Referenced by AddNode(), and Reset().

TStructNode* TStructViewer::fTopNode [private]

Definition at line 36 of file TStructViewer.h.

Referenced by Draw(), Prepare(), Reset(), SetPointer(), and TStructViewer().

TList TStructViewer::fColors [private]

Definition at line 37 of file TStructViewer.h.

Referenced by GetColor(), SetColor(), TStructViewer(), and ~TStructViewer().

void* TStructViewer::fPointer [private]

Definition at line 29 of file TStructViewer.h.

TClass* TStructViewer::fPointerClass [private]

Definition at line 30 of file TStructViewer.h.

TStructViewerGUI* TStructViewer::fGUI [private]

Definition at line 31 of file TStructViewer.h.

TStructNode* TStructViewer::fTopNode [private]

Definition at line 36 of file TStructViewer.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:47:27 2011 for ROOT_528-00b_version by  doxygen 1.5.1