TAO 2.0.5
Public Member Functions | Private Attributes
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]

List of all members.

Public Member Functions

 TAO_Auto_Reference (T &r)
 ~TAO_Auto_Reference ()

Private Attributes

T & ref_

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines