|
NSVD Reader
0.0.1
|
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 | |
| nullable & | operator= (const nullable &)=default |
| nullable & | operator= (nullable &&)=default |
| operator bool () const noexcept | |
| bool | empty () const noexcept |
| nullable & | operator= (T v) |
| set value More... | |
| nullable & | clear () |
| clear value More... | |
| bool | operator== (T v) const noexcept |
| bool | operator!= (T v) const noexcept |
| T | get (T defaultValue) const noexcept |
| template<T FUNC> | |
| T | get () const |
| template<typename SRC , T FUNC> | |
| T | get (const SRC *src) const |
a data container like optional type.
| T | data type.T muslt be a fundamental type or a enum type. |
Definition at line 21 of file nullable.hpp.
|
inline |
Definition at line 27 of file nullable.hpp.
|
inline |
Definition at line 28 of file nullable.hpp.
|
inline |
Definition at line 29 of file nullable.hpp.
|
inline |
Definition at line 32 of file nullable.hpp.
|
default |
|
default |
|
inline |
clear value
Definition at line 53 of file nullable.hpp.
|
inlinenoexcept |
Definition at line 42 of file nullable.hpp.
|
inlinenoexcept |
Definition at line 70 of file nullable.hpp.
|
inline |
Definition at line 73 of file nullable.hpp.
|
inline |
Definition at line 76 of file nullable.hpp.
|
inlinenoexcept |
Definition at line 41 of file nullable.hpp.
|
inlinenoexcept |
Definition at line 65 of file nullable.hpp.
|
default |
|
default |
|
inline |
set value
Definition at line 45 of file nullable.hpp.
|
inlinenoexcept |
Definition at line 60 of file nullable.hpp.