NSVD Reader  0.0.1
nodamushi::svd::normalized::nullable< T > Struct Template Reference

a data container like optional type. More...

#include <nullable.hpp>

Public Member Functions

 nullable ()
 
 nullable (T v)
 
 nullable (T v, bool e)
 
template<bool attribute, bool required, char... name>
 nullable (const ::nodamushi::svd::value< T, attribute, required, name... > &v)
 
 nullable (const nullable &)=default
 
 nullable (nullable &&)=default
 
nullableoperator= (const nullable &)=default
 
nullableoperator= (nullable &&)=default
 
 operator bool () const noexcept
 
bool empty () const noexcept
 
nullableoperator= (T v)
 set value More...
 
nullableclear ()
 clear value More...
 
bool operator== (T v) const noexcept
 
bool operator!= (T v) const noexcept
 
get (T defaultValue) const noexcept
 
template<T FUNC>
get () const
 
template<typename SRC , T FUNC>
get (const SRC *src) const
 

Detailed Description

template<typename T>
struct nodamushi::svd::normalized::nullable< T >

a data container like optional type.

Parameters
Tdata type.T muslt be a fundamental type or a enum type.

Definition at line 21 of file nullable.hpp.

Constructor & Destructor Documentation

◆ nullable() [1/6]

template<typename T>
nodamushi::svd::normalized::nullable< T >::nullable ( )
inline

Definition at line 27 of file nullable.hpp.

◆ nullable() [2/6]

template<typename T>
nodamushi::svd::normalized::nullable< T >::nullable ( v)
inline

Definition at line 28 of file nullable.hpp.

◆ nullable() [3/6]

template<typename T>
nodamushi::svd::normalized::nullable< T >::nullable ( v,
bool  e 
)
inline

Definition at line 29 of file nullable.hpp.

◆ nullable() [4/6]

template<typename T>
template<bool attribute, bool required, char... name>
nodamushi::svd::normalized::nullable< T >::nullable ( const ::nodamushi::svd::value< T, attribute, required, name... > &  v)
inline

Definition at line 32 of file nullable.hpp.

◆ nullable() [5/6]

template<typename T>
nodamushi::svd::normalized::nullable< T >::nullable ( const nullable< T > &  )
default

◆ nullable() [6/6]

template<typename T>
nodamushi::svd::normalized::nullable< T >::nullable ( nullable< T > &&  )
default

Member Function Documentation

◆ clear()

template<typename T>
nullable& nodamushi::svd::normalized::nullable< T >::clear ( )
inline

clear value

Definition at line 53 of file nullable.hpp.

◆ empty()

template<typename T>
bool nodamushi::svd::normalized::nullable< T >::empty ( ) const
inlinenoexcept

Definition at line 42 of file nullable.hpp.

◆ get() [1/3]

template<typename T>
T nodamushi::svd::normalized::nullable< T >::get ( defaultValue) const
inlinenoexcept

Definition at line 70 of file nullable.hpp.

◆ get() [2/3]

template<typename T>
template<T FUNC>
T nodamushi::svd::normalized::nullable< T >::get ( ) const
inline

Definition at line 73 of file nullable.hpp.

◆ get() [3/3]

template<typename T>
template<typename SRC , T FUNC>
T nodamushi::svd::normalized::nullable< T >::get ( const SRC *  src) const
inline

Definition at line 76 of file nullable.hpp.

◆ operator bool()

template<typename T>
nodamushi::svd::normalized::nullable< T >::operator bool ( ) const
inlinenoexcept

Definition at line 41 of file nullable.hpp.

◆ operator!=()

template<typename T>
bool nodamushi::svd::normalized::nullable< T >::operator!= ( v) const
inlinenoexcept

Definition at line 65 of file nullable.hpp.

◆ operator=() [1/3]

template<typename T>
nullable& nodamushi::svd::normalized::nullable< T >::operator= ( const nullable< T > &  )
default

◆ operator=() [2/3]

template<typename T>
nullable& nodamushi::svd::normalized::nullable< T >::operator= ( nullable< T > &&  )
default

◆ operator=() [3/3]

template<typename T>
nullable& nodamushi::svd::normalized::nullable< T >::operator= ( v)
inline

set value

Definition at line 45 of file nullable.hpp.

◆ operator==()

template<typename T>
bool nodamushi::svd::normalized::nullable< T >::operator== ( v) const
inlinenoexcept

Definition at line 60 of file nullable.hpp.


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