LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
swoc::Lexicon< E >::value_iterator Class Reference

#include <Lexicon.h>

Inheritance diagram for swoc::Lexicon< E >::value_iterator:
Inheritance graph
Collaboration diagram for swoc::Lexicon< E >::value_iterator:
Collaboration graph

Public Types

using value_type = typename super_type::value_type
 
using pointer = typename super_type::pointer
 
using reference = typename super_type::reference
 
- Public Types inherited from swoc::Lexicon< E >::base_iterator
using value_type = const Pair
 Iteration value.
 
using pointer = value_type *
 Pointer to iteration value.
 
using reference = value_type &
 Reference to iteration value.
 
using difference_type = ptrdiff_t
 Type of difference between iterators.
 
using iterator_category = std::bidirectional_iterator_tag
 

Public Member Functions

 value_iterator ()=default
 Default constructor.
 
 value_iterator (self_type const &that)=default
 Copy constructor.
 
 value_iterator (self_type &&that)=default
 Move constructor.
 
self_typeoperator= (self_type const &that)=default
 Assignment.
 
self_typeoperator++ ()
 Increment.
 
self_type operator++ (int)
 Increment.
 
self_typeoperator-- ()
 Decrement.
 
self_type operator-- (int)
 Decrement.
 
- Public Member Functions inherited from swoc::Lexicon< E >::base_iterator
 base_iterator ()=default
 Default constructor (invalid iterator)
 
reference operator* () const
 Dereference.
 
pointer operator-> () const
 Dereference.
 
bool operator== (self_type const &that) const
 Equality.
 
bool operator!= (self_type const &that) const
 Inequality.
 

Protected Member Functions

 value_iterator (const Item *item)
 
- Protected Member Functions inherited from swoc::Lexicon< E >::base_iterator
 base_iterator (Item const *item)
 

Protected Attributes

friend Lexicon
 Internal constructor.
 
- Protected Attributes inherited from swoc::Lexicon< E >::base_iterator
const Item_item {nullptr}
 Current location in the container.
 

Detailed Description

template<typename E>
class swoc::Lexicon< E >::value_iterator

Iterator over pairs of values and primary name pairs. The value type is a Pair with the value and name.

Definition at line 288 of file Lexicon.h.

Member Typedef Documentation

◆ pointer

template<typename E>
using swoc::Lexicon< E >::value_iterator::pointer = typename super_type::pointer

Definition at line 294 of file Lexicon.h.

◆ reference

template<typename E>
using swoc::Lexicon< E >::value_iterator::reference = typename super_type::reference

Definition at line 295 of file Lexicon.h.

◆ value_type

template<typename E>
using swoc::Lexicon< E >::value_iterator::value_type = typename super_type::value_type

Definition at line 293 of file Lexicon.h.

Constructor & Destructor Documentation

◆ value_iterator()

template<typename E>
swoc::Lexicon< E >::value_iterator::value_iterator ( const Item * item)
inlineprotected

Definition at line 322 of file Lexicon.h.

Member Function Documentation

◆ operator++() [1/2]

template<typename E>
auto swoc::Lexicon< E >::value_iterator::operator++ ( )

Increment.

Definition at line 758 of file Lexicon.h.

◆ operator++() [2/2]

template<typename E>
auto swoc::Lexicon< E >::value_iterator::operator++ ( int )

Increment.

Definition at line 765 of file Lexicon.h.

◆ operator--() [1/2]

template<typename E>
auto swoc::Lexicon< E >::value_iterator::operator-- ( )

Decrement.

Definition at line 773 of file Lexicon.h.

◆ operator--() [2/2]

template<typename E>
auto swoc::Lexicon< E >::value_iterator::operator-- ( int )

Decrement.

Definition at line 780 of file Lexicon.h.

Member Data Documentation

◆ Lexicon

template<typename E>
friend swoc::Lexicon< E >::value_iterator::Lexicon
protected

Internal constructor.

Definition at line 324 of file Lexicon.h.


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