![]() |
Spicy
|
#include <node.h>
Public Member Functions | |
SetIterator (BaseIterator i) | |
SetIterator (const SetIterator &other)=default | |
SetIterator (SetIterator &&other)=default | |
const Node & | node () const |
SetIterator & | operator= (const SetIterator &other)=default |
SetIterator & | operator= (SetIterator &&other)=default |
const T & | operator* () const |
const T * | operator-> () const |
bool | operator== (const SetIterator &other) const |
bool | operator!= (const SetIterator &other) const |
SetIterator | operator++ (int) |
SetIterator & | operator++ () |
SetIterator & | operator+= (difference_type i) |
SetIterator & | operator-= (difference_type i) |
difference_type | operator- (const SetIterator &other) const |
SetIterator | operator- (difference_type i) const |
SetIterator | operator+ (difference_type i) const |
A constant iterator over a set of nodes (node::Set
). The content of the set is sorted by the order that nodes were added. Internally, this wraps around a iterator over a vector of node references, and is adapted from https://www.artificialworlds.net/blog/2017/05/12/c-iterator-wrapperadaptor-example.