![]() |
LibraryLink Utilities
3.0.1
Modern C++ wrapper over LibraryLink and WSTP
|
Wrapper over DataStoreNode structure from LibraryLink.
#include <DataNode.hpp>
Public Member Functions | |
| DataNode (DataStoreNode dsn) | |
| Create DataNode from raw DataStoreNode structure. More... | |
| DataNode (GenericDataNode gn) | |
| Create DataNode from raw GenericDataNode. More... | |
| T & | value () |
| Get node value. More... | |
| const T & | value () const |
| Get node value. More... | |
| std::string_view | name () const |
| Get node name. More... | |
| bool | hasNext () const |
| Check if this node has a successor. More... | |
| GenericDataNode | next () const |
| Get next node as GenericDataNode (because the next node may not necessarily have value of type T) More... | |
| MArgumentType | type () noexcept |
| Get the actual type of node value. More... | |
| template<std::size_t N> | |
| decltype(auto) | get () |
| Get N-th element of DataNode in a tuple-like way. More... | |
|
explicit |
Create DataNode from raw DataStoreNode structure.
| dsn | - raw node |
|
explicit |
Create DataNode from raw GenericDataNode.
| gn | - generic data node |
Get N-th element of DataNode in a tuple-like way.
This function enables structured bindings to DataNodes.
| N | - index (only 0 and 1 are valid) |
|
inline |
Check if this node has a successor.
|
inline |
Get node name.
|
inline |
Get next node as GenericDataNode (because the next node may not necessarily have value of type T)
|
inlinenoexcept |
Get the actual type of node value.
This is useful when working on a "generic" DataList.
|
inline |
Get node value.
|
inline |
Get node value.