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

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

List of all members.

Public Types

typedef T * value_type
typedef T base_value_type

Public Member Functions

 object_reference_wrapper ()
 object_reference_wrapper (value_type &obj)
base_value_typeoperator() (value_type &t)
 Sets this object's proxied object to t and Returns t.
base_value_typeoperator() () const
 Returns this object's wrapped object.


Detailed Description

template<typename T>
struct s11n::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 130 of file functor.h.


Member Function Documentation

template<typename T>
base_value_type& s11n::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 151 of file functor.h.


The documentation for this struct was generated from the following file:
Generated on Thu Jun 16 16:18:13 2005 for s11n by  doxygen 1.4.3-20050530