Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

s11n::const_object_reference_wrapper< T * > Struct Template Reference

A specialization to wrap pointers to (T *) such that they can be accessed, via this wrapper, using a dot instead of ->. More...

#include <algo.hpp>

List of all members.

Public Types

typedef T * value_type
typedef T base_value_type

Public Member Functions

 const_object_reference_wrapper (const value_type &obj)
const base_value_typeoperator() (value_type &t)
 Returns (*t).
const base_value_typeoperator() () const
 Returns this object's wrapped object.


Detailed Description

template<typename T>
struct s11n::const_object_reference_wrapper< T * >

A specialization to wrap pointers to (T *) such that they can be accessed, via this wrapper, using a dot instead of ->.

Definition at line 305 of file algo.hpp.


Member Typedef Documentation

template<typename T>
typedef T s11n::const_object_reference_wrapper< T * >::base_value_type
 

Definition at line 308 of file algo.hpp.

template<typename T>
typedef T* s11n::const_object_reference_wrapper< T * >::value_type
 

Definition at line 307 of file algo.hpp.


Member Function Documentation

template<typename T>
s11n::const_object_reference_wrapper< T * >::const_object_reference_wrapper const value_type obj  )  [inline, explicit]
 

Definition at line 310 of file algo.hpp.

template<typename T>
const base_value_type& s11n::const_object_reference_wrapper< T * >::operator()  )  const [inline]
 

Returns this object's wrapped object.

It does not check for validity.

Definition at line 318 of file algo.hpp.

template<typename T>
const base_value_type& s11n::const_object_reference_wrapper< T * >::operator() value_type t  )  [inline]
 

Returns (*t).

Definition at line 312 of file algo.hpp.


The documentation for this struct was generated from the following file:
Generated on Sat Dec 10 13:33:59 2005 for libs11n-1.2.1 by  doxygen 1.4.4