TObjectTable Class Reference

#include <TObjectTable.h>

Inheritance diagram for TObjectTable:

TObject TObject List of all members.

Public Member Functions

 TObjectTable (Int_t tableSize=100)
 ~TObjectTable ()
void Add (TObject *obj)
void * CheckPtrAndWarn (const char *msg, void *vp)
void Delete (Option_t *opt="")
Int_t GetSize () const
Int_t Instances () const
void InstanceStatistics () const
void Print (Option_t *option="") const
Bool_t PtrIsValid (TObject *obj)
void Remove (TObject *obj)
void RemoveQuietly (TObject *obj)
void Statistics ()
void Terminate ()
void UpdateInstCount () const
 TObjectTable (Int_t tableSize=100)
 ~TObjectTable ()
void Add (TObject *obj)
void * CheckPtrAndWarn (const char *msg, void *vp)
void Delete (Option_t *opt="")
Int_t GetSize () const
Int_t Instances () const
void InstanceStatistics () const
void Print (Option_t *option="") const
Bool_t PtrIsValid (TObject *obj)
void Remove (TObject *obj)
void RemoveQuietly (TObject *obj)
void Statistics ()
void Terminate ()
void UpdateInstCount () const

Static Public Member Functions

static void AddObj (TObject *obj)
static void AddObj (TObject *obj)

Private Member Functions

Bool_t HighWaterMark ()
void Expand (Int_t newsize)
Int_t FindElement (TObject *obj)
void FixCollisions (Int_t index)
 TObjectTable (const TObjectTable &)
TObjectTableoperator= (const TObjectTable &)
Bool_t HighWaterMark ()
void Expand (Int_t newsize)
Int_t FindElement (TObject *obj)
void FixCollisions (Int_t index)
 TObjectTable (const TObjectTable &)
TObjectTableoperator= (const TObjectTable &)

Private Attributes

TObject ** fTable
Int_t fSize
Int_t fTally
TObject ** fTable

Detailed Description

Definition at line 37 of file TObjectTable.h.


Constructor & Destructor Documentation

TObjectTable::TObjectTable ( const TObjectTable  )  [private]

Referenced by AddObj().

TObjectTable::TObjectTable ( Int_t  tableSize = 100  ) 

TObjectTable::~TObjectTable (  ) 

Definition at line 104 of file TObjectTable.cxx.

References fTable.

TObjectTable::TObjectTable ( const TObjectTable  )  [private]

TObjectTable::TObjectTable ( Int_t  tableSize = 100  ) 

TObjectTable::~TObjectTable (  ) 


Member Function Documentation

Bool_t TObjectTable::HighWaterMark (  )  [inline, private]

Definition at line 77 of file TObjectTable.h.

References fSize, and fTally.

Referenced by Add().

void TObjectTable::Expand ( Int_t  newsize  )  [private]

Definition at line 315 of file TObjectTable.cxx.

References Add(), fSize, fTable, fTally, i, and TMath::NextPrime().

Referenced by Add().

Int_t TObjectTable::FindElement ( TObject obj  )  [private]

Definition at line 267 of file TObjectTable.cxx.

References fSize, fTable, TString::Hash(), and n.

Referenced by Add(), CheckPtrAndWarn(), FixCollisions(), PtrIsValid(), Remove(), and RemoveQuietly().

void TObjectTable::FixCollisions ( Int_t  index  )  [private]

Definition at line 293 of file TObjectTable.cxx.

References FindElement(), fSize, and fTable.

Referenced by Remove(), and RemoveQuietly().

TObjectTable& TObjectTable::operator= ( const TObjectTable  )  [private]

void TObjectTable::Add ( TObject obj  ) 

Definition at line 141 of file TObjectTable.cxx.

References TObject::Error(), Expand(), FindElement(), fSize, fTable, fTally, and HighWaterMark().

Referenced by AddObj(), Expand(), and TCollection::GarbageCollect().

void * TObjectTable::CheckPtrAndWarn ( const char *  msg,
void *  vp 
)

Definition at line 389 of file TObjectTable.cxx.

References FindElement(), fTable, Remove(), and TObject::Warning().

void TObjectTable::Delete ( Option_t opt = ""  )  [virtual]

Reimplemented from TObject.

Definition at line 189 of file TObjectTable.cxx.

References fSize, fTable, fTally, and i.

Referenced by TCollection::EmptyGarbageCollection().

Int_t TObjectTable::GetSize (  )  const [inline]

Definition at line 60 of file TObjectTable.h.

References fSize.

Int_t TObjectTable::Instances (  )  const [inline]

Definition at line 61 of file TObjectTable.h.

References fTally.

void TObjectTable::InstanceStatistics (  )  const

Definition at line 333 of file TObjectTable.cxx.

References fTable, fTally, TROOT::GetListOfClasses(), gROOT, h, n, Printf(), s, and UpdateInstCount().

Referenced by Print(), and Terminate().

void TObjectTable::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

Definition at line 112 of file TObjectTable.cxx.

References TString::Contains(), fSize, fTable, i, InstanceStatistics(), num, Printf(), and TString::ToLower().

Referenced by formula1(), and Statistics().

Bool_t TObjectTable::PtrIsValid ( TObject obj  )  [inline]

Definition at line 80 of file TObjectTable.h.

References FindElement(), and fTable.

Referenced by THashTable::Rehash().

void TObjectTable::Remove ( TObject obj  ) 

Definition at line 203 of file TObjectTable.cxx.

References TObject::Error(), FindElement(), FixCollisions(), fSize, fTable, fTally, i, j, and TObject::Warning().

Referenced by CheckPtrAndWarn(), and TObject::~TObject().

void TObjectTable::RemoveQuietly ( TObject obj  ) 

Definition at line 234 of file TObjectTable.cxx.

References FindElement(), FixCollisions(), fSize, fTable, fTally, i, and j.

Referenced by TClonesArray::Expand(), TClonesArray::operator=(), and TClonesArray::~TClonesArray().

void TObjectTable::Statistics (  )  [inline]

Definition at line 67 of file TObjectTable.h.

References Print().

void TObjectTable::Terminate (  ) 

Definition at line 258 of file TObjectTable.cxx.

References fTable, and InstanceStatistics().

void TObjectTable::UpdateInstCount (  )  const

Definition at line 368 of file TObjectTable.cxx.

References TObject::Error(), fSize, fTable, TROOT::GetListOfClasses(), gROOT, i, TROOT::Initialized(), TObject::IsOnHeap(), TObject::kNotDeleted, and TObject::TestBit().

Referenced by InstanceStatistics().

void TObjectTable::AddObj ( TObject obj  )  [static]

Definition at line 162 of file TObjectTable.cxx.

References Add(), TObject::Error(), gObjectTable, kFALSE, kTRUE, and TObjectTable().

Referenced by ClassImp(), G__G__Cont_122_0_21(), G__setup_memfuncTObjectTable(), and TObject::TObject().

Bool_t TObjectTable::HighWaterMark (  )  [private]

void TObjectTable::Expand ( Int_t  newsize  )  [private]

Int_t TObjectTable::FindElement ( TObject obj  )  [private]

void TObjectTable::FixCollisions ( Int_t  index  )  [private]

TObjectTable& TObjectTable::operator= ( const TObjectTable  )  [private]

void TObjectTable::Add ( TObject obj  ) 

void* TObjectTable::CheckPtrAndWarn ( const char *  msg,
void *  vp 
)

void TObjectTable::Delete ( Option_t opt = ""  )  [virtual]

Reimplemented from TObject.

Int_t TObjectTable::GetSize (  )  const [inline]

Definition at line 60 of file TObjectTable.h.

References fSize.

Int_t TObjectTable::Instances (  )  const [inline]

Definition at line 61 of file TObjectTable.h.

References fTally.

void TObjectTable::InstanceStatistics (  )  const

void TObjectTable::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

Bool_t TObjectTable::PtrIsValid ( TObject obj  ) 

void TObjectTable::Remove ( TObject obj  ) 

void TObjectTable::RemoveQuietly ( TObject obj  ) 

void TObjectTable::Statistics (  )  [inline]

Definition at line 67 of file TObjectTable.h.

References Print().

void TObjectTable::Terminate (  ) 

void TObjectTable::UpdateInstCount (  )  const

static void TObjectTable::AddObj ( TObject obj  )  [static]


Member Data Documentation

TObject** TObjectTable::fTable [private]

Definition at line 40 of file TObjectTable.h.

Referenced by Add(), CheckPtrAndWarn(), Delete(), Expand(), FindElement(), FixCollisions(), InstanceStatistics(), Print(), PtrIsValid(), Remove(), RemoveQuietly(), Terminate(), UpdateInstCount(), and ~TObjectTable().

Int_t TObjectTable::fSize [private]

Definition at line 41 of file TObjectTable.h.

Referenced by Add(), Delete(), Expand(), FindElement(), FixCollisions(), GetSize(), HighWaterMark(), Print(), Remove(), RemoveQuietly(), and UpdateInstCount().

Int_t TObjectTable::fTally [private]

Definition at line 42 of file TObjectTable.h.

Referenced by Add(), Delete(), Expand(), HighWaterMark(), Instances(), InstanceStatistics(), Remove(), and RemoveQuietly().

TObject** TObjectTable::fTable [private]

Definition at line 40 of file TObjectTable.h.


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