Spicy
Public Types | Public Member Functions | List of all members
hilti::node::SetIterator< T > Class Template Reference

#include <node.h>

Public Types

using value_type = T
 
using difference_type = typename BaseIterator::difference_type
 
using pointer = typename BaseIterator::pointer
 
using reference = typename BaseIterator::reference
 
using iterator_category = typename BaseIterator::iterator_category
 

Public Member Functions

 SetIterator (BaseIterator i)
 
 SetIterator (const SetIterator &other)=default
 
 SetIterator (SetIterator &&other)=default
 
const Nodenode () const
 
SetIteratoroperator= (const SetIterator &other)=default
 
SetIteratoroperator= (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)
 
SetIteratoroperator++ ()
 
SetIteratoroperator+= (difference_type i)
 
SetIteratoroperator-= (difference_type i)
 
difference_type operator- (const SetIterator &other) const
 
SetIterator operator- (difference_type i) const
 
SetIterator operator+ (difference_type i) const
 

Detailed Description

template<typename T>
class hilti::node::SetIterator< T >

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.


The documentation for this class was generated from the following file: