s11n::pointer_base_f< T > Struct Template Reference

Convenience function to return reference_f<T>(ref). More...

#include <functional.hpp>

Inheritance diagram for s11n::pointer_base_f< T >:

Inheritance graph
[legend]

List of all members.

Public Types

typedef T type
 Same as T, possibly const-qualified.

Public Member Functions

 pointer_base_f (type *_ref)
 pointer_base_f (type &_ref)
typeoperator() () const
 Returns a [const] pointer to the object this one refers to.
typeget () const
 For convention's sake.
typeoperator-> () const
bool empty () const

Public Attributes

typevalue


Detailed Description

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

Convenience function to return reference_f<T>(ref).

Added in 1.1.3. Removed in 1.3.1 (it's unused) Pointer equivalent of reference_base_f.

Added in 1.1.3.

T may be const or not, but should not have a pointer qualification. Specializations of pointer_f take care of getting rid of the extra const/pointer/reference qualifiers.

Definition at line 133 of file functional.hpp.


Member Typedef Documentation

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

Same as T, possibly const-qualified.

Reimplemented in s11n::pointer_f< T >, s11n::pointer_f< T const >, s11n::pointer_f< T * >, and s11n::pointer_f< T const * >.

Definition at line 136 of file functional.hpp.


Constructor & Destructor Documentation

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

Definition at line 138 of file functional.hpp.

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

Definition at line 140 of file functional.hpp.


Member Function Documentation

template<typename T>
type* s11n::pointer_base_f< T >::operator() (  )  const [inline]

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

Definition at line 146 of file functional.hpp.

References s11n::pointer_base_f< T >::value.

template<typename T>
type* s11n::pointer_base_f< T >::get (  )  const [inline]

For convention's sake.

..

Definition at line 152 of file functional.hpp.

References s11n::pointer_base_f< T >::value.

template<typename T>
type* s11n::pointer_base_f< T >::operator-> (  )  const [inline]

Definition at line 157 of file functional.hpp.

References s11n::pointer_base_f< T >::value.

template<typename T>
bool s11n::pointer_base_f< T >::empty (  )  const [inline]

Definition at line 162 of file functional.hpp.

References s11n::pointer_base_f< T >::value.


Member Data Documentation

template<typename T>
type* s11n::pointer_base_f< T >::value

Definition at line 137 of file functional.hpp.

Referenced by s11n::pointer_base_f< T >::empty(), s11n::pointer_base_f< T >::get(), s11n::pointer_base_f< T >::operator()(), and s11n::pointer_base_f< T >::operator->().


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