cgma
ImmediateRef< T > Class Template Reference

#include <dataref.hpp>

Inheritance diagram for ImmediateRef< T >:
DataRef< T >

List of all members.

Public Member Functions

 ImmediateRef (const T &p)
virtual const T & getData () const
T & getData ()
virtual ImmediateRef< T > * clone ()

Protected Attributes

data

Detailed Description

template<class T>
class ImmediateRef< T >

Definition at line 29 of file dataref.hpp.


Constructor & Destructor Documentation

template<class T>
ImmediateRef< T >::ImmediateRef ( const T &  p) [inline]

Definition at line 35 of file dataref.hpp.

                             :
    data(p) 
  {}

Member Function Documentation

template<class T>
virtual ImmediateRef<T>* ImmediateRef< T >::clone ( ) [inline, virtual]

Implements DataRef< T >.

Definition at line 46 of file dataref.hpp.

                                   {
    return new ImmediateRef<T>( *this );
  }
template<class T>
virtual const T& ImmediateRef< T >::getData ( ) const [inline, virtual]

Implements DataRef< T >.

Definition at line 39 of file dataref.hpp.

                                   { 
    return data;
  }
template<class T>
T& ImmediateRef< T >::getData ( ) [inline]

Definition at line 44 of file dataref.hpp.

{ return data; } 

Member Data Documentation

template<class T>
T ImmediateRef< T >::data [protected]

Definition at line 32 of file dataref.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines