Public Member Functions | Private Attributes
msp::Value< T > Class Template Reference

#include <Value.hpp>

List of all members.

Public Member Functions

 operator T () const
 cast to the internal type
 operator T & ()
 cast to the writable refernce of internal type
T & operator() ()
 Gets a reference to the internal data.
operator() () const
 Gets a copy of the data.
Value< T > & operator= (const Value< T > &rhs)
 Copy assignment operator.
Value< T > & operator= (const T rhs)
 Assignment operator for non-Value objects.
bool set () const
 Queries if the data has been set.
bool & set ()
 Gets a reference to the data valid flag.

Private Attributes

std::pair< T, bool > data

Detailed Description

template<class T>
class msp::Value< T >

Definition at line 9 of file Value.hpp.


Member Function Documentation

template<class T>
msp::Value< T >::operator T ( ) const [inline]

cast to the internal type

Definition at line 24 of file Value.hpp.

template<class T>
msp::Value< T >::operator T & ( ) [inline]

cast to the writable refernce of internal type

Definition at line 29 of file Value.hpp.

template<class T>
T& msp::Value< T >::operator() ( ) [inline]

Gets a reference to the internal data.

Returns:
Reference to the data

Definition at line 45 of file Value.hpp.

template<class T>
T msp::Value< T >::operator() ( ) const [inline]

Gets a copy of the data.

Returns:

Definition at line 51 of file Value.hpp.

template<class T>
Value<T>& msp::Value< T >::operator= ( const Value< T > &  rhs) [inline]

Copy assignment operator.

Returns:
Reference to this object

Definition at line 15 of file Value.hpp.

template<class T>
Value<T>& msp::Value< T >::operator= ( const T  rhs) [inline]

Assignment operator for non-Value objects.

Returns:
Reference to this object

Definition at line 35 of file Value.hpp.

template<class T>
bool msp::Value< T >::set ( ) const [inline]

Queries if the data has been set.

Returns:
True if the internal data has been assigned

Definition at line 57 of file Value.hpp.

template<class T>
bool& msp::Value< T >::set ( ) [inline]

Gets a reference to the data valid flag.

Returns:
Reference to the data valid flag

Definition at line 63 of file Value.hpp.


Member Data Documentation

template<class T>
std::pair<T, bool> msp::Value< T >::data [private]

Definition at line 66 of file Value.hpp.


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


msp
Author(s): Christian Rauch
autogenerated on Thu Jun 20 2019 19:40:38