CustusX  22.04-rc5
An IGT application
cx::OptionalValue< T > Class Template Reference

#include <cxOptionalValue.h>

Public Member Functions

 OptionalValue ()
 
 OptionalValue (T val)
 
const T & get () const
 
void set (const T &val)
 
bool isValid () const
 
void reset ()
 

Detailed Description

template<class T>
class cx::OptionalValue< T >

Template that holds a value and validity of that value.

Date
2014-03-27
Author
christiana

Definition at line 26 of file cxOptionalValue.h.

Constructor & Destructor Documentation

template<class T>
cx::OptionalValue< T >::OptionalValue ( )
inline

Definition at line 29 of file cxOptionalValue.h.

template<class T>
cx::OptionalValue< T >::OptionalValue ( val)
inlineexplicit

Definition at line 30 of file cxOptionalValue.h.

Member Function Documentation

template<class T>
const T& cx::OptionalValue< T >::get ( ) const
inline

Definition at line 31 of file cxOptionalValue.h.

template<class T>
bool cx::OptionalValue< T >::isValid ( ) const
inline

Definition at line 33 of file cxOptionalValue.h.

template<class T>
void cx::OptionalValue< T >::reset ( )
inline

Definition at line 34 of file cxOptionalValue.h.

template<class T>
void cx::OptionalValue< T >::set ( const T &  val)
inline

Definition at line 32 of file cxOptionalValue.h.


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