![]() |
LibraryLink Utilities
3.0.1
Modern C++ wrapper over LibraryLink and WSTP
|
Basic wrapper over DataStoreNode, provides class-like interface and conversion of the underlying value from MArgument to TypedArgument.
#include <DataStore.hpp>
Public Member Functions | |
| GenericDataNode | next () const noexcept |
| Get GenericDataNode wrapper over the next node. More... | |
| MArgumentType | type () const noexcept |
| Get type of the node value. More... | |
| std::string_view | name () const noexcept |
| Get node name. More... | |
| Argument::TypedArgument | value () const |
| Get value of the node as the variant type. More... | |
| template<typename T > | |
| T | as () const |
| Get node value if it is of type T, otherwise throw an exception. More... | |
| operator bool () const | |
| Bool conversion operator. More... | |
| GenericDataNode * | operator-> () |
| Member of pointer operator, used by DataList iterators. More... | |
Public Attributes | |
| DataStoreNode | node |
| Raw DataStore node. More... | |
| T LLU::GenericDataNode::as |
Get node value if it is of type T, otherwise throw an exception.
| T | - any type from LLU::NodeType namespace |
|
noexcept |
Get node name.
|
noexcept |
Get GenericDataNode wrapper over the next node.
|
explicit |
Bool conversion operator.
|
inline |
Member of pointer operator, used by DataList iterators.
|
noexcept |
Get type of the node value.
| Argument::TypedArgument LLU::GenericDataNode::value | ( | ) | const |
Get value of the node as the variant type.
| DataStoreNode LLU::GenericDataNode::node |
Raw DataStore node.