TAO  2.3.3
Public Member Functions | Private Attributes | List of all members
TAO_Auto_Reference< T > Class Template Reference

TAO_Auto_Reference acts as a "smart pointer" for reference-countable instances. More...

#include <Connection_Handler.h>

Inheritance diagram for TAO_Auto_Reference< T >:
Inheritance graph
[legend]
Collaboration diagram for TAO_Auto_Reference< T >:
Collaboration graph
[legend]

Public Member Functions

 TAO_Auto_Reference (T &r)
 
 ~TAO_Auto_Reference ()
 

Private Attributes

T & ref_
 

Additional Inherited Members

- Private Member Functions inherited from ACE_Copy_Disabled
 ACE_Copy_Disabled (void)
 

Detailed Description

template<class T>
class TAO_Auto_Reference< T >

TAO_Auto_Reference acts as a "smart pointer" for reference-countable instances.

It increments the refrence count in the constructor and decrements it in the destructor. The only requiement for the template parameter is to be a class that provides add_reference() and remove_reference().

Constructor & Destructor Documentation

template<class T >
TAO_Auto_Reference< T >::TAO_Auto_Reference ( T &  r)
inline
template<class T >
TAO_Auto_Reference< T >::~TAO_Auto_Reference ( )
inline

Member Data Documentation

template<class T >
T& TAO_Auto_Reference< T >::ref_
private

The documentation for this class was generated from the following file: