cgma
NullRef< T > Class Template Reference

#include <dataref.hpp>

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

List of all members.

Public Member Functions

 NullRef ()
virtual bool hasData () const
virtual const T & getData () const
virtual NullRef< T > * clone ()

Detailed Description

template<class T>
class NullRef< T >

Definition at line 78 of file dataref.hpp.


Constructor & Destructor Documentation

template<class T>
NullRef< T >::NullRef ( ) [inline]

Definition at line 81 of file dataref.hpp.

            : 
    DataRef<T>()
  {}

Member Function Documentation

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

Implements DataRef< T >.

Definition at line 91 of file dataref.hpp.

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

Implements DataRef< T >.

Definition at line 87 of file dataref.hpp.

                                   {
    throw std::runtime_error("Attempting to pull data from a null reference!");
  }
template<class T>
virtual bool NullRef< T >::hasData ( ) const [inline, virtual]

Reimplemented from DataRef< T >.

Definition at line 85 of file dataref.hpp.

{ return false; }

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