ACE
6.4.2
|
This is the object database (ODB) that keeps track of all live ACE objects. More...
#include <Dump.h>
Classes | |
struct | Tuple |
Public Types | |
enum | { MAX_TABLE_SIZE = 100000 } |
Public Member Functions | |
void | dump_objects (void) |
void | register_object (const ACE_Dumpable *dumper) |
Add the tuple <dumper, this_> to the list of registered ACE objects. More... | |
void | remove_object (const void *this_) |
Static Public Member Functions | |
static ACE_ODB * | instance (void) |
Interface to the Singleton instance of the object database. More... | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Private Member Functions | |
ACE_ODB (void) | |
Private Attributes | |
Tuple | object_table_ [ACE_ODB::MAX_TABLE_SIZE] |
int | current_size_ |
Current size of <object_table_>. More... | |
Static Private Attributes | |
static ACE_ODB * | instance_ = 0 |
Singleton instance of this class. More... | |
This is the object database (ODB) that keeps track of all live ACE objects.
|
private |
void ACE_ODB::dump_objects | ( | void | ) |
Iterates through the entire set of registered objects and dumps their state.
|
static |
Interface to the Singleton instance of the object database.
void ACE_ODB::register_object | ( | const ACE_Dumpable * | dumper | ) |
Add the tuple <dumper, this_> to the list of registered ACE objects.
void ACE_ODB::remove_object | ( | const void * | this_ | ) |
Use <this_> to locate and remove the associated <dumper> from the list of registered ACE objects.
ACE_ODB::ACE_ALLOC_HOOK_DECLARE |
|
private |
Current size of <object_table_>.
|
staticprivate |
Singleton instance of this class.
|
private |
The current implementation is very simple-minded and will be changed to be dynamic.