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

const_object_reference_wrapper is identical in usage to object_reference_wrapper, except that it deals with const objects. 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() (const value_type &t)
 Sets this object's proxied obj to t and 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 >

const_object_reference_wrapper is identical in usage to object_reference_wrapper, except that it deals with const objects.

It is a separate functor to avoid ambiguity and some impossible overloads.

Definition at line 277 of file algo.hpp.


Member Typedef Documentation

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

Definition at line 280 of file algo.hpp.

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

Definition at line 279 of file algo.hpp.


Constructor & Destructor Documentation

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

Definition at line 282 of file algo.hpp.


Member Function Documentation

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

Returns this object's wrapped object.

Definition at line 294 of file algo.hpp.

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

Sets this object's proxied obj to t and returns t.

Definition at line 286 of file algo.hpp.


The documentation for this struct was generated from the following file:
Generated on Sun Dec 18 18:30:28 2005 for libs11n-1.2.2 by  doxygen 1.4.4