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

ACE_TSS_Type_Adapter Class Template Reference

Adapter that allows built-in types to be used with ACE_TSS. More...

#include <Synch_T.h>

List of all members.

Public Methods

 ACE_TSS_Type_Adapter (const TYPE value = 0)
 Constructor. Inlined here so that it should _always_ be inlined.

 operator TYPE () const
 TYPE conversion. Inlined here so that it should _always_ be inlined.

 operator TYPE & ()
 TYPE & conversion. Inlined here so that it should _always_ be inlined.


Private Attributes

TYPE value_
 The wrapped value.


Detailed Description

template<class TYPE> template class ACE_TSS_Type_Adapter

Adapter that allows built-in types to be used with ACE_TSS.

Wraps a value of a built-in type, providing conversions to and from the type. Example use with ACE_TSS: ACE_TSS > i; *i = 37; ACE_OS::fprintf (stderr, "d
", *i); Unfortunately, though, some compilers have trouble with the implicit type conversions. This seems to work better: ACE_TSS > i; i->operator int &() = 37; ACE_OS::fprintf (stderr, "d
", i->operator int());


Constructor & Destructor Documentation

template<classTYPE>
ACE_TSS_Type_Adapter<TYPE>::ACE_TSS_Type_Adapter<TYPE> ( const TYPE value = 0 ) [inline]
 

Constructor. Inlined here so that it should _always_ be inlined.


Member Function Documentation

template<classTYPE>
ACE_TSS_Type_Adapter<TYPE>::operator TYPE ( ) const [inline]
 

TYPE conversion. Inlined here so that it should _always_ be inlined.

template<classTYPE>
ACE_TSS_Type_Adapter<TYPE>::operator TYPE & ( ) [inline]
 

TYPE & conversion. Inlined here so that it should _always_ be inlined.


Member Data Documentation

template<classTYPE>
TYPE ACE_TSS_Type_Adapter<TYPE>::value_ [private]
 

The wrapped value.


The documentation for this class was generated from the following file:
Generated at Fri Oct 5 07:05:25 2001 for ACE by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000