![]() |
LibraryLink Utilities
3.0.1
Modern C++ wrapper over LibraryLink and WSTP
|
Simple proxy input iterator that goes over a DataStore and returns node values of requested type when dereferenced.
| T | - data node type, see LLU::NodeType namespace for supported node types |
Inherits LLU::Detail::DataListIteratorPrimitive.
#include <DataList.hpp>
Public Types | |
| using | value_type = T |
| This iterator iterates over node values of type T. More... | |
| using | reference = value_type |
| NodeValueIterator is a proxy iterator and so the reference type is the same as value_type. More... | |
| using | iterator_category = std::input_iterator_tag |
| using | pointer = void * |
| using | difference_type = mint |
Public Member Functions | |
| NodeValueIterator (const NodeIterator< T > &it) | |
| Create NodeValueIterator pointing to the same node as given NodeIterator<T> More... | |
| reference | operator* () const |
| Get value of the currently pointed to node Generic node values will be converted to T if it is their actual type or an exception will be throws otherwise. More... | |
| NodeValueIterator & | operator++ () |
| Pre-increment operator. More... | |
| NodeValueIterator | operator++ (int) |
| Post-increment operator. More... | |
| template<typename U > | |
| U | as () const |
| Get current node value if it actually is of type U. More... | |
Public Attributes | |
| GenericDataNode | node |
| using LLU::NodeValueIterator< T >::reference = value_type |
NodeValueIterator is a proxy iterator and so the reference type is the same as value_type.
| using LLU::NodeValueIterator< T >::value_type = T |
This iterator iterates over node values of type T.
|
inlineexplicit |
Create NodeValueIterator pointing to the same node as given NodeIterator<T>
| it | - NodeIterator<T> from which a new NodeValueIterator will be created |
Get current node value if it actually is of type U.
Only makes sense for nodes of type LLU::NodeType::Any.
| U | - any type from LLU::NodeType namespace |
|
inline |
Get value of the currently pointed to node Generic node values will be converted to T if it is their actual type or an exception will be throws otherwise.
|
inline |
Pre-increment operator.
|
inline |
Post-increment operator.