Public Member Functions | Private Attributes

ACE_Cleanup_Info_Node Class Reference

For maintaining a list of ACE_Cleanup_Info items. More...

#include <Cleanup.h>

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

List of all members.

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.

Detailed Description

For maintaining a list of ACE_Cleanup_Info items.

For internal use by ACE_Object_Manager.

Definition at line 71 of file Cleanup.h.


Constructor & Destructor Documentation

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_);
}


Member Function Documentation

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

Inequality operator.

Definition at line 73 of file Cleanup.cpp.

{
  return !(*this == o);
}

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_;
}


Member Data Documentation

Cleanup hook that gets called back.

Definition at line 97 of file Cleanup.h.

const char* ACE_Cleanup_Info_Node::name_ [private]

Name of the cleanup object.

Definition at line 103 of file Cleanup.h.

Point to object that gets passed into the <cleanup_hook_>.

Definition at line 94 of file Cleanup.h.

Parameter passed to the <cleanup_hook_>.

Definition at line 100 of file Cleanup.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines