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

ACE_Service_Object_Ptr Class Reference

This is a smart pointer that holds onto the associated * until the current scope is left, at which point the object's <fini> hook is called and the service_object_ gets deleted. More...

#include <Service_Object.h>

Collaboration diagram for ACE_Service_Object_Ptr:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Service_Object_Ptr (ACE_Service_Object *so)
 Acquire ownership of the <so>.

 ~ACE_Service_Object_Ptr (void)
 Release the held by calling its <fini> hook.

ACE_Service_Objectoperator-> ()
 Smart pointer to access the underlying .


Private Attributes

ACE_Service_Objectservice_object_
 Holds the service object until we're done.


Detailed Description

This is a smart pointer that holds onto the associated * until the current scope is left, at which point the object's <fini> hook is called and the service_object_ gets deleted.

This class is similar to the Standard C++ Library class . It is used in conjunction with statically linked , as shown in the ./netsvcs/server/main.cpp example.


Constructor & Destructor Documentation

ACE_INLINE ACE_Service_Object_Ptr::ACE_Service_Object_Ptr ( ACE_Service_Object * so )
 

Acquire ownership of the <so>.

ACE_INLINE ACE_Service_Object_Ptr::~ACE_Service_Object_Ptr ( void )
 

Release the held by calling its <fini> hook.


Member Function Documentation

ACE_INLINE ACE_Service_Object * ACE_Service_Object_Ptr::operator-> ( void )
 

Smart pointer to access the underlying .


Member Data Documentation

ACE_Service_Object * ACE_Service_Object_Ptr::service_object_ [private]
 

Holds the service object until we're done.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 10:33:24 2001 for ACE by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000