NorMIT-nav  2023.01.05-dev+develop.0da12
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

◆ OptionalValue() [1/2]

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

Definition at line 29 of file cxOptionalValue.h.

◆ OptionalValue() [2/2]

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

Definition at line 30 of file cxOptionalValue.h.

Member Function Documentation

◆ get()

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

Definition at line 31 of file cxOptionalValue.h.

◆ isValid()

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

Definition at line 33 of file cxOptionalValue.h.

◆ reset()

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

Definition at line 34 of file cxOptionalValue.h.

◆ set()

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: