LCI v2.0.0-dev
For Asynchronous Multithreaded Communication
Loading...
Searching...
No Matches
lci::option_t< T > Struct Template Reference

#include <lci.hpp>

Public Member Functions

 option_t ()
 
 option_t (T value_)
 
 option_t (T value_, bool is_set_)
 
get_value_or (T default_value) const
 
bool get_set_value (T *value) const
 
get_value () const
 
bool is_set () const
 
 operator T () const
 

Public Attributes

m_value
 
bool m_is_set
 

Constructor & Destructor Documentation

◆ option_t() [1/3]

template<typename T>
lci::option_t< T >::option_t ( )
inline

◆ option_t() [2/3]

template<typename T>
lci::option_t< T >::option_t ( T value_)
inline

◆ option_t() [3/3]

template<typename T>
lci::option_t< T >::option_t ( T value_,
bool is_set_ )
inline

Member Function Documentation

◆ get_set_value()

template<typename T>
bool lci::option_t< T >::get_set_value ( T * value) const
inline

◆ get_value()

template<typename T>
T lci::option_t< T >::get_value ( ) const
inline

◆ get_value_or()

template<typename T>
T lci::option_t< T >::get_value_or ( T default_value) const
inline

◆ is_set()

template<typename T>
bool lci::option_t< T >::is_set ( ) const
inline

◆ operator T()

template<typename T>
lci::option_t< T >::operator T ( ) const
inline

Member Data Documentation

◆ m_is_set

template<typename T>
bool lci::option_t< T >::m_is_set

◆ m_value

template<typename T>
T lci::option_t< T >::m_value

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