ACE_Based_Pointer< CONCRETE > Class Template Reference

A smart proxy that keeps track of the relative offset of a "pointer" from its base address. More...

#include <Based_Pointer_T.h>

Inheritance diagram for ACE_Based_Pointer< CONCRETE >:

Inheritance graph
[legend]
Collaboration diagram for ACE_Based_Pointer< CONCRETE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_Based_Pointer (void)
 ACE_Based_Pointer (CONCRETE *initial)
 ACE_Based_Pointer (const void *base_addr, int dummy)
 ACE_Based_Pointer (const ACE_Based_Pointer< CONCRETE > &)
 Copy constructor (not implemented yet).
void operator= (const ACE_Based_Pointer< CONCRETE > &)
 Assignment operator.
void operator= (CONCRETE *from)
 Pseudo-assignment operator.
CONCRETE * operator-> (void)
 The C++ "delegation operator".

Detailed Description

template<class CONCRETE>
class ACE_Based_Pointer< CONCRETE >

A smart proxy that keeps track of the relative offset of a "pointer" from its base address.

This class makes it possible to transparently use "pointers" in shared memory as easily as programming with pointers to local memory by overloading the C++ delegation operator ->().


Constructor & Destructor Documentation

template<class CONCRETE>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Based_Pointer< CONCRETE >::ACE_Based_Pointer ( void   )  [inline]

Constructor. See constructor for ACE_Based_Pointer_Basic for details.

template<class CONCRETE>
ACE_Based_Pointer< CONCRETE >::ACE_Based_Pointer ( CONCRETE *  initial  )  [inline]

Initialize this object using the <initial> pointer. See constructor for ACE_Based_Pointer_Basic for details.

template<class CONCRETE>
ACE_Based_Pointer< CONCRETE >::ACE_Based_Pointer ( const void *  base_addr,
int  dummy 
) [inline]

Initialize this object with known base_addr. dummy is a dummy value used to resolve overload ambiguity and it otherwise ignored.

template<class CONCRETE>
ACE_Based_Pointer< CONCRETE >::ACE_Based_Pointer ( const ACE_Based_Pointer< CONCRETE > &   )  [inline]

Copy constructor (not implemented yet).


Member Function Documentation

template<class CONCRETE>
ACE_INLINE void ACE_Based_Pointer< CONCRETE >::operator= ( const ACE_Based_Pointer< CONCRETE > &   )  [inline]

Assignment operator.

template<class CONCRETE>
ACE_INLINE void ACE_Based_Pointer< CONCRETE >::operator= ( CONCRETE *  from  )  [inline]

Pseudo-assignment operator.

Reimplemented from ACE_Based_Pointer_Basic< CONCRETE >.

template<class CONCRETE>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE CONCRETE * ACE_Based_Pointer< CONCRETE >::operator-> ( void   )  [inline]

The C++ "delegation operator".


The documentation for this class was generated from the following files:
Generated on Mon Jun 25 16:26:40 2007 for ACE by  doxygen 1.5.2-2