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 254 of file algo.hpp.


Member Typedef Documentation

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

Definition at line 256 of file algo.hpp.

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

Definition at line 257 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 259 of file algo.hpp.


Member Function Documentation

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 263 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.

Definition at line 271 of file algo.hpp.


The documentation for this struct was generated from the following file:
Generated on Wed Jun 4 21:44:20 2008 for libs11n by  doxygen 1.5.3