For maintaining a list of ACE_Cleanup_Info items. More...
#include <Cleanup.h>
Public Member Functions | |
ACE_Cleanup_Info_Node (void) | |
ACE_Cleanup_Info_Node (void *object, ACE_CLEANUP_FUNC cleanup_hook, void *param, const char *name) | |
~ACE_Cleanup_Info_Node (void) | |
bool | operator== (const ACE_Cleanup_Info_Node &o) const |
Equality operator. | |
bool | operator!= (const ACE_Cleanup_Info_Node &o) const |
Inequality operator. | |
void * | object (void) |
ACE_CLEANUP_FUNC | cleanup_hook (void) |
void * | param (void) |
Private Attributes | |
void * | object_ |
Point to object that gets passed into the <cleanup_hook_>. | |
ACE_CLEANUP_FUNC | cleanup_hook_ |
Cleanup hook that gets called back. | |
void * | param_ |
Parameter passed to the <cleanup_hook_>. | |
const char * | name_ |
Name of the cleanup object. |
For maintaining a list of ACE_Cleanup_Info items.
For internal use by ACE_Object_Manager.
Definition at line 71 of file Cleanup.h.
ACE_Cleanup_Info_Node::ACE_Cleanup_Info_Node | ( | void | ) |
Definition at line 39 of file Cleanup.cpp.
: object_ (0), cleanup_hook_ (0), param_ (0), name_ (0) { }
ACE_Cleanup_Info_Node::ACE_Cleanup_Info_Node | ( | void * | object, | |
ACE_CLEANUP_FUNC | cleanup_hook, | |||
void * | param, | |||
const char * | name | |||
) |
Definition at line 47 of file Cleanup.cpp.
: object_ (object), cleanup_hook_ (cleanup_hook), param_ (param), name_ (name ? ACE_OS::strdup (name) : 0) { }
ACE_Cleanup_Info_Node::~ACE_Cleanup_Info_Node | ( | void | ) |
Definition at line 58 of file Cleanup.cpp.
{ if (this->name_) ACE_OS::free ((void *) name_); }
ACE_CLEANUP_FUNC ACE_Cleanup_Info_Node::cleanup_hook | ( | void | ) | [inline] |
Definition at line 19 of file Cleanup.inl.
{ return this->cleanup_hook_; }
void * ACE_Cleanup_Info_Node::object | ( | void | ) | [inline] |
Definition at line 13 of file Cleanup.inl.
{ return this->object_; }
bool ACE_Cleanup_Info_Node::operator!= | ( | const ACE_Cleanup_Info_Node & | o | ) | const |
bool ACE_Cleanup_Info_Node::operator== | ( | const ACE_Cleanup_Info_Node & | o | ) | const |
Equality operator.
Definition at line 65 of file Cleanup.cpp.
{ return o.object_ == this->object_ && o.cleanup_hook_ == this->cleanup_hook_ && o.param_ == this->param_; }
void * ACE_Cleanup_Info_Node::param | ( | void | ) | [inline] |
Definition at line 25 of file Cleanup.inl.
{ return this->param_; }
const char* ACE_Cleanup_Info_Node::name_ [private] |
void* ACE_Cleanup_Info_Node::object_ [private] |
void* ACE_Cleanup_Info_Node::param_ [private] |