RMF
RMF::Nullable< Tr > Class Template Reference

Return a possibly null value. More...

#include <RMF/Nullable.h>

Public Member Functions

 Nullable (const Nullable &o)
 
 Nullable (typename Traits< T >::ReturnType v)
 
Traits< T >::ReturnType get () const
 
bool get_is_null () const
 
const T * get_ptr () const
 
 operator typename Traits< T >::ReturnType () const
 

Detailed Description

template<class Tr>
class RMF::Nullable< Tr >

Return a value as returned by RMF with the additional ability to check if it is the null value. These get converted to plain values or None in python.

Note
they should never be stored.

Definition at line 173 of file infrastructure_macros.h.

Member Function Documentation

template<class Tr>
Traits<T>::ReturnType RMF::Nullable< Tr >::get ( ) const
Precondition
!get_is_null()

Definition at line 48 of file Nullable.h.

template<class Tr>
const T* RMF::Nullable< Tr >::get_ptr ( ) const

For python since it nicely becomes None.

Definition at line 59 of file Nullable.h.

template<class Tr>
RMF::Nullable< Tr >::operator typename Traits< T >::ReturnType ( ) const
Precondition
!get_is_null()

Definition at line 46 of file Nullable.h.


The documentation for this class was generated from the following files: