Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Cleanup_Adapter Class Template Reference

Adapter for ACE_Cleanup objects that allows them to be readily managed by the ACE_Object_Manager. More...

#include <Managed_Object.h>

Inheritance diagram for ACE_Cleanup_Adapter:

Inheritance graph
[legend]
Collaboration diagram for ACE_Cleanup_Adapter:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Cleanup_Adapter (void)
 Default constructor. More...

virtual ~ACE_Cleanup_Adapter (void)
 Virtual destructor, needed by some compilers for vtable placement. More...

TYPE & object (void)
 Accessor for contained object. More...


Private Methods

 ACE_Cleanup_Adapter (const ACE_Cleanup_Adapter< TYPE > &)
void operator= (const ACE_Cleanup_Adapter< TYPE > &)

Private Attributes

TYPE object_
 Contained object. More...


Detailed Description

template<class TYPE>
class ACE_Cleanup_Adapter< TYPE >

Adapter for ACE_Cleanup objects that allows them to be readily managed by the ACE_Object_Manager.

This template class adapts an object of any type to be an ACE_Cleanup object. The object can then be destroyed type-safely by the ACE_Object_Manager. This class is typically used to replace a cast; but, it's a bit cleaner and allows insertion of, say, run-time type identification internally if desired.

Definition at line 41 of file Managed_Object.h.


Constructor & Destructor Documentation

template<class TYPE>
ACE_INLINE ACE_Cleanup_Adapter< TYPE >::ACE_Cleanup_Adapter void   
 

Default constructor.

Definition at line 6 of file Managed_Object.i.

00007          : don't explicitly initialize "object_", because TYPE may not
00008   // have a default constructor.  Let the compiler figure it out . . .
00009 {
00010 }

template<class TYPE>
ACE_Cleanup_Adapter< TYPE >::~ACE_Cleanup_Adapter void    [virtual]
 

Virtual destructor, needed by some compilers for vtable placement.

Definition at line 19 of file Managed_Object.cpp.

00020 {
00021 }

template<class TYPE>
ACE_Cleanup_Adapter< TYPE >::ACE_Cleanup_Adapter const ACE_Cleanup_Adapter< TYPE > &    [private]
 


Member Function Documentation

template<class TYPE>
ACE_INLINE TYPE & ACE_Cleanup_Adapter< TYPE >::object void   
 

Accessor for contained object.

Definition at line 15 of file Managed_Object.i.

References object_.

Referenced by ACE_Static_Object_Lock::instance, and ACE_Log_Msg::instance.

00016 {
00017   return this->object_;
00018 }

template<class TYPE>
void ACE_Cleanup_Adapter< TYPE >::operator= const ACE_Cleanup_Adapter< TYPE > &    [private]
 


Member Data Documentation

template<class TYPE>
TYPE ACE_Cleanup_Adapter::object_ [private]
 

Contained object.

Definition at line 58 of file Managed_Object.h.

Referenced by object.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:46:35 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002