cgma
PointerRef< T > Class Template Reference

#include <dataref.hpp>

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

List of all members.

Public Member Functions

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

Protected Attributes

const T * data

Detailed Description

template<class T>
class PointerRef< T >

Definition at line 54 of file dataref.hpp.


Constructor & Destructor Documentation

template<class T>
PointerRef< T >::PointerRef ( const T *  p) [inline]

Definition at line 60 of file dataref.hpp.

                           : 
    data(p)
  {}

Member Function Documentation

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

Implements DataRef< T >.

Definition at line 68 of file dataref.hpp.

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

Implements DataRef< T >.

Definition at line 64 of file dataref.hpp.

                                   {
    return *data;
  }

Member Data Documentation

template<class T>
const T* PointerRef< T >::data [protected]

Definition at line 57 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