library: libGeom
#include "TGeoCache.h"

TGeoNodeArray


class description - header file - source file
viewCVS header - viewCVS source

class TGeoNodeArray: public TObject

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGeoNodeArray()
TGeoNodeArray(Int_t ndaughters, Int_t size = 0)
virtual~TGeoNodeArray()
voidTObject::AbstractMethod(const char* method) const
virtual Int_tAddDaughter(TGeoNode* node, Int_t i)
virtual Int_tAddMatrix(TGeoMatrix* global)
virtual Int_tAddNode(TGeoNode* node)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
virtual voidcd(Int_t inode)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual voidClearDaughter(Int_t ind)
virtual voidClearMatrix()
virtual voidClearNode()
virtual TObject*TObject::Clone(const char* newname = "") const
virtual voidCompact()
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")
voidDeleteArray()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Int_tGetDaughter(Int_t ind) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual Int_tGetMatrixInd() const
virtual const char*TObject::GetName() const
virtual Int_tGetNdaughters() const
virtual TGeoNode*GetNode() const
Int_tGetNused() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tGetSize() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Int_tGetUsageCount() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual Bool_tHasDaughters() const
virtual ULong_tTObject::Hash() const
virtual voidIncreaseArray()
virtual voidIncrementUsageCount()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tIsPersistent() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetMatrix(Int_t mind)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetPersistency(Bool_t flag = kTRUE)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const
protected:
TGeoNodeArray(const TGeoNodeArray&)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
TGeoNodeArray&operator=(const TGeoNodeArray&)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
public:
static const Int_tfgGeoArrayMaxSizemaximum cache size
static const Int_tfgGeoArrayInitSizeinitial cache size
static const Int_tfgGeoReleasedSpacedefault number of nodes released on cleaning
protected:
Int_tfSizenumber of nodes stored in array
Int_tfFirstFreeindex of first free location
Int_tfCurrentindex of current node
Int_tfNusednumber of used nodes
TBits*fBitsArrayoccupancy flags
private:
Int_tfNodeSizesize of a node in bytes
Int_tfNdaughtersnumber of daughters for nodes in this array
Int_t*fOffset[fSize*fNodeSize] offset of the current node
Int_t*fArrayarray of nodes

Class Description

 Physical tree description.




/* */
TGeoNodeArray()
 dummy ctor
TGeoNodeArray(Int_t ndaughters, Int_t size)
 default constructor
TGeoNodeArray(const TGeoNodeArray& gna)
copy constructor
TGeoNodeArray& operator=(const TGeoNodeArray& gna)
assignment operator
~TGeoNodeArray()
 destructor
Int_t AddDaughter(TGeoNode *node, Int_t i)
 Add node as i-th daughter of current node of this array.
Int_t AddMatrix(TGeoMatrix *global)
 Adds a global matrix to the current node in this array.
void Compact()
 Compact the array.
void DeleteArray()
 Deletes the array of nodes.
Int_t AddNode(TGeoNode *node)
 Add node in the node array. The number of daughters
 MUST be equal to fNdaughters (no check for speed reasons)
 It does not check if node is already in the cache. This is
 done by AddDaughter
 first compute the offset of the first free location
void ClearDaughter(Int_t ind)
 Clear the daughter ind from the list of the current node. Send the
 signal back to TGeoNodeCache, that proceeds with dispatching the
 clear signal for all the branch.
void ClearMatrix()
 Clears the global matrix of this node from matrix cache.
void ClearNode()
 Clear the current node. All branch from this point downwords will be deleted.
 remember the current node
Bool_t HasDaughters()
 Check if current node has daughters.
void IncreaseArray()
 Doubles the array size unless maximum cache limit is reached or
 global cache limit is reached. In this case forces the cache
 manager to do the garbage collection.
Bool_t IsPersistent()
 Returns persistency flag of the node.
void SetPersistency(Bool_t flag)
 Set array of nodes as persistent in memory.
TGeoNode * GetNode()
Int_t GetNused()
{return fNused;}
Int_t GetSize()
{return fSize;}
Int_t GetUsageCount()
void IncrementUsageCount()
void cd(Int_t mindex)
Int_t GetDaughter(Int_t ind)
Int_t GetMatrixInd()
{return fMatrix;}
Int_t GetNdaughters()
{return fNdaughters;}
void SetMatrix(Int_t mat_ind)
{fMatrix = mat_ind;}

Author: Andrei Gheata 18/03/02
Last update: root/geom:$Name: $:$Id: TGeoCache.cxx,v 1.45 2006/07/09 05:27:53 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.