|
NSVD Reader
0.0.1
|
This class reperesents SVD(xml) element / attribute. More...
#include <value.hpp>
Public Types | |
| using | this_t = value< T, attribute, required, name... > |
| using | value_type_t = ::nodamushi::svd::vattr_unwrap< T > |
| using | type = typename value_type_t::type |
Public Member Functions | |
| value () | |
| default constructor More... | |
| value (const type &t) | |
| constructor with initial value More... | |
| value (value &&)=default | |
| move constrocutor More... | |
| constexpr bool | is_required () const noexcept |
| constexpr bool | is_attribute () const noexcept |
| std::string | get_name () const noexcept |
| template<typename SVD > | |
| auto | operator= (SVD &src) -> typename std::enable_if< std::is_base_of< svd_reader, SVD >::value, bool >::type |
| set value from SVD reader More... | |
| template<typename SVD > | |
| auto | operator= (SVD &&src) -> typename std::enable_if< std::is_base_of< svd_reader, SVD >::value, bool >::type |
| set value from SVD reader More... | |
| template<typename V > | |
| auto | operator= (const V &value) -> typename std::enable_if<!std::is_base_of< svd_reader, V >::value, this_t & >::type |
| set value. More... | |
| template<typename V > | |
| this_t & | operator= (V &&value) |
| set value. More... | |
| void | clear () noexcept |
| clear this object. After calling this method,this object status will be empty. More... | |
| value & | operator= (value &&)=default |
| move More... | |
| value & | operator= (const value &)=default |
| copy More... | |
| const type & | get () const |
| get value More... | |
| type & | get () |
| get value More... | |
| type & | operator * () |
| get value More... | |
| const type & | operator * () const |
| get value More... | |
| type * | operator-> () |
| -> More... | |
| const type * | operator-> () const |
| -> More... | |
| bool | operator== (const type &t) const noexcept |
| value == t More... | |
| bool | operator!= (const type &t) const noexcept |
| value != t More... | |
| bool | operator== (type &&t) const noexcept |
| value == t More... | |
| bool | operator!= (type &&t) const noexcept |
| value != t More... | |
| bool | operator== (const value &t) const noexcept |
| value == t More... | |
| bool | operator!= (const value &&t) const noexcept |
| value != t More... | |
| type & | get_for_init () noexcept |
| Get value to initialize. After this method is called, empty() method returns false. More... | |
| type & | get (type &defaultValue) noexcept |
| get or else More... | |
| type & | get (type &&defaultValue) noexcept |
| get or else More... | |
| const type & | get (const type &defaultValue) const noexcept |
| get or else More... | |
| bool | empty () const noexcept |
| when this object is empty,return true. More... | |
| operator bool () const noexcept | |
| ! empty() More... | |
| bool | check_require () const noexcept |
| Check not empty if this element/attribute is required. More... | |
Static Public Attributes | |
| static constexpr bool | REQUIRED =required |
| static constexpr bool | ATTRIBUTE =attribute |
This class reperesents SVD(xml) element / attribute.
| T | type of value |
| attribute | true: attribute, false: element |
| required | |
| name | element/attribute name |
| using nodamushi::svd::value< T, attribute, required, name >::this_t = value<T,attribute,required,name...> |
| using nodamushi::svd::value< T, attribute, required, name >::type = typename value_type_t::type |
| using nodamushi::svd::value< T, attribute, required, name >::value_type_t = ::nodamushi::svd::vattr_unwrap<T> |
|
inline |
|
inline |
|
default |
move constrocutor
|
inlinenoexcept |
Check not empty if this element/attribute is required.
|
noexcept |
|
inlinenoexcept |
| const details::value_type_t< T > & nodamushi::svd::value< T, attribute, required, name >::get | ( | ) | const |
| details::value_type_t< T > & nodamushi::svd::value< T, attribute, required, name >::get | ( | ) |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
move
|
default |
copy
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
static |
|
static |