ROOT_Application  2.0
C++ Core modules and GUIStock
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
Garbage Class Reference

Garbage collector for ROOT TObjects. More...

#include <Garbage.h>

Inheritance diagram for Garbage:
Inheritance graph
[legend]
Collaboration diagram for Garbage:
Collaboration graph
[legend]

Public Member Functions

void Add (TObject *)
 Add a TOBject to be deleted. More...
 
virtual Bool_t HandleTimer (TTimer *)
 called by a TTImer and delete all objects in the list More...
 

Static Public Member Functions

static GarbagegetInstance ()
 

Private Types

typedef std::list< TObject * >
::iterator 
it_l
 

Private Member Functions

 Garbage ()
 
 ~Garbage ()
 
 Garbage (const Garbage &)
 
const Garbageoperator= (const Garbage &)
 

Private Attributes

std::list< TObject * > list_object
 

Detailed Description

Garbage collector for ROOT TObjects.

Some graphical objects cannot be deleted in using signal Can use a shot timer Or use a garbage collector

Singleton class, use a non thread-safe lazy implementation

Definition at line 30 of file Garbage.h.

Member Typedef Documentation

typedef std::list<TObject*>::iterator Garbage::it_l
private

Definition at line 46 of file Garbage.h.

Constructor & Destructor Documentation

Garbage::Garbage ( )
private
Garbage::~Garbage ( )
private

Definition at line 33 of file Garbage.cxx.

Garbage::Garbage ( const Garbage )
private

Member Function Documentation

void Garbage::Add ( TObject obj)

Add a TOBject to be deleted.

Definition at line 39 of file Garbage.cxx.

References list_object.

Referenced by IndicatorFrame::DeleteLines().

Here is the caller graph for this function:

Garbage & Garbage::getInstance ( )
static

Definition at line 19 of file Garbage.cxx.

Referenced by ClassImp(), and IndicatorFrame::DeleteLines().

Here is the caller graph for this function:

Bool_t Garbage::HandleTimer ( TTimer )
virtual

called by a TTImer and delete all objects in the list

Definition at line 47 of file Garbage.cxx.

References list_object.

const Garbage& Garbage::operator= ( const Garbage )
private

Field Documentation

std::list<TObject*> Garbage::list_object
private

Definition at line 45 of file Garbage.h.

Referenced by Add(), and HandleTimer().


The documentation for this class was generated from the following files: