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

s11n::reference_base_f< T > Struct Template Reference

Holds a [const] reference to an object. More...

#include <functional.hpp>

Inheritance diagram for s11n::reference_base_f< T >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef T type

Public Member Functions

 reference_base_f (type &_ref)
 operator T () const
 Returns a copy of the object this one refers to.
typeoperator() () const
 Returns a [const] reference to the object this one refers to.

Public Attributes

typevalue

Detailed Description

template<typename T>
struct s11n::reference_base_f< T >

Holds a [const] reference to an object.

For use in template metaprogramming. Don't use this type directly: it is intended to be subclassed by reference_f<> types.

T must not be pointer-qualified. Const is fine.

Added in 1.1.3.

Note to self: what happens if it is a pointer type?

Definition at line 23 of file functional.hpp.


Member Typedef Documentation

template<typename T>
typedef T s11n::reference_base_f< T >::type
 

Reimplemented in s11n::reference_f< T >, s11n::reference_f< T const >, s11n::reference_f< T * >, s11n::reference_f< T const * >, s11n::reference_f< DeserializableT >, s11n::reference_f< NodeType const >, s11n::reference_f< SerializableT const >, s11n::reference_f< SerT >, s11n::reference_f< SerT const >, s11n::reference_f< type >, and s11n::reference_f< NodeType >.

Definition at line 25 of file functional.hpp.


Constructor & Destructor Documentation

template<typename T>
s11n::reference_base_f< T >::reference_base_f type _ref  )  [inline, explicit]
 

Definition at line 27 of file functional.hpp.


Member Function Documentation

template<typename T>
s11n::reference_base_f< T >::operator T  )  const [inline]
 

Returns a copy of the object this one refers to.

Definition at line 33 of file functional.hpp.

template<typename T>
type& s11n::reference_base_f< T >::operator()  )  const [inline]
 

Returns a [const] reference to the object this one refers to.

Definition at line 42 of file functional.hpp.


Member Data Documentation

template<typename T>
type& s11n::reference_base_f< T >::value
 

Definition at line 26 of file functional.hpp.

Referenced by s11n::reference_base_f< type >::operator type (), s11n::reference_base_f< NodeType >::operator()(), and s11n::reference_f< NodeType >::operator=().


The documentation for this struct was generated from the following file:
Generated on Sun Dec 25 20:28:32 2005 for libs11n-1.2.3 by  doxygen 1.4.4