ctrl-utils
Public Types | Public Member Functions | Protected Attributes | List of all members
ctrl_utils::Tree< Key, T >::ChainView< Const > Class Template Reference
Inheritance diagram for ctrl_utils::Tree< Key, T >::ChainView< Const >:

Public Types

using TreeT = std::conditional_t< Const, const Tree< Key, T >, Tree< Key, T > >
 
using ValueT = std::conditional_t< Const, const std::pair< const Key, T >, std::pair< const Key, T > >
 
using iterator_category = std::forward_iterator_tag
 
using value_type = ValueT
 
using difference_type = ptrdiff_t
 
using pointer = value_type *
 
using reference = value_type &
 

Public Member Functions

 iterator (TreeT *tree, const std::optional< Key > &id)
 
iterator & operator++ ()
 
iterator operator++ (int)
 
reference operator* () const
 
pointer operator-> () const
 
bool operator== (const iterator &other) const
 
bool operator!= (const iterator &other) const
 

Protected Attributes

TreeT * tree_
 
std::optional< Key > id_
 

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