Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

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 <functor.h>

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_type & operator() (const value_type &t)
 Sets this object's proxied obj to t and returns t.
const base_value_type & operator() () 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 164 of file functor.h.


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.

ACHTUNG: this function WILL Cause Grief if it is called on a default-constructed version of this object: you must set this object's wrapped value using the ctor, operator(T), or via copying this object from a properly-initialized one before calling this.

Definition at line 188 of file functor.h.


The documentation for this struct was generated from the following file:
Generated on Tue Oct 26 18:26:00 2004 for s11n by  doxygen 1.3.9.1