ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::ThreadedTree< K >::const_iterator Class Reference

the constant iterator in symmetric order, by the threads More...

#include <ADS/tree/ThreadedTree.h>

Public types

using iterator_category = std::bidirectional_iterator_tag
 the category of the iterator, bidirectional
using value_type = K
 the type of the keys
using difference_type = std::ptrdiff_t
 the type of the distances
using reference = const K &
 a constant reference
using pointer = const K *
 a constant pointer

Public member functions

 const_iterator (void)=default
 an iterator on no tree
 const_iterator (const ThreadedTree *t, const Node *x)
 on the node \( x \) of \( t \), the end if \( x \) is the head
reference operator* (void) const
 the key
pointer operator-> (void) const
 the address of the key
const_iterator & operator++ (void)
 to the successor, by successor()
const_iterator & operator-- (void)
 to the predecessor, by predecessor()
const_iterator operator++ (int)
 to the successor, returning the iterator before the step
const_iterator operator-- (int)
 to the predecessor, returning the iterator before the step
bool operator== (const const_iterator &o) const
 equal on the same node

Detailed description

template<std::totally_ordered K>
class ADS::ThreadedTree< K >::const_iterator

the constant iterator in symmetric order, by the threads

Member typedef documentation

◆ difference_type

template<std::totally_ordered K>
using ADS::ThreadedTree< K >::const_iterator::difference_type = std::ptrdiff_t

the type of the distances

◆ iterator_category

template<std::totally_ordered K>
using ADS::ThreadedTree< K >::const_iterator::iterator_category = std::bidirectional_iterator_tag

the category of the iterator, bidirectional

◆ pointer

template<std::totally_ordered K>
using ADS::ThreadedTree< K >::const_iterator::pointer = const K *

a constant pointer

◆ reference

template<std::totally_ordered K>
using ADS::ThreadedTree< K >::const_iterator::reference = const K &

a constant reference

◆ value_type

template<std::totally_ordered K>
using ADS::ThreadedTree< K >::const_iterator::value_type = K

the type of the keys

Constructor and destructor documentation

◆ const_iterator() [1/2]

template<std::totally_ordered K>
ADS::ThreadedTree< K >::const_iterator::const_iterator ( void )
default

an iterator on no tree

◆ const_iterator() [2/2]

template<std::totally_ordered K>
ADS::ThreadedTree< K >::const_iterator::const_iterator ( const ThreadedTree * t,
const Node * x )
inline

on the node \( x \) of \( t \), the end if \( x \) is the head

Member function documentation

◆ operator*()

template<std::totally_ordered K>
reference ADS::ThreadedTree< K >::const_iterator::operator* ( void ) const
inline

the key

◆ operator++() [1/2]

template<std::totally_ordered K>
const_iterator ADS::ThreadedTree< K >::const_iterator::operator++ ( int )
inline

to the successor, returning the iterator before the step

◆ operator++() [2/2]

template<std::totally_ordered K>
const_iterator & ADS::ThreadedTree< K >::const_iterator::operator++ ( void )
inline

to the successor, by successor()

◆ operator--() [1/2]

template<std::totally_ordered K>
const_iterator ADS::ThreadedTree< K >::const_iterator::operator-- ( int )
inline

to the predecessor, returning the iterator before the step

◆ operator--() [2/2]

template<std::totally_ordered K>
const_iterator & ADS::ThreadedTree< K >::const_iterator::operator-- ( void )
inline

to the predecessor, by predecessor()

◆ operator->()

template<std::totally_ordered K>
pointer ADS::ThreadedTree< K >::const_iterator::operator-> ( void ) const
inline

the address of the key

◆ operator==()

template<std::totally_ordered K>
bool ADS::ThreadedTree< K >::const_iterator::operator== ( const const_iterator & o) const
inline

equal on the same node


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