ROSE 0.11.145.147
Public Member Functions | List of all members
Sawyer::Container::Map< K, T, Cmp, Alloc >::ConstNodeIterator Class Reference

Description

template<class K, class T, class Cmp = std::less<K>, class Alloc = std::allocator<std::pair<const K, T> >>
class Sawyer::Container::Map< K, T, Cmp, Alloc >::ConstNodeIterator

Bidirectional iterator over key/value nodes.

Dereferencing this iterator will return a Node from which both the key and the value can be obtained. Node iterators are implicitly convertible to both key and value iterators.

Definition at line 213 of file Sawyer/Map.h.

#include <Sawyer/Map.h>

Inheritance diagram for Sawyer::Container::Map< K, T, Cmp, Alloc >::ConstNodeIterator:
Inheritance graph
[legend]
Collaboration diagram for Sawyer::Container::Map< K, T, Cmp, Alloc >::ConstNodeIterator:
Collaboration graph
[legend]

Public Member Functions

 ConstNodeIterator (const ConstNodeIterator &other)
 Copy constructor.
 
 ConstNodeIterator (const NodeIterator &other)
 Copy constructor.
 
ConstNodeIteratoroperator= (const ConstNodeIterator &other)
 Assignment.
 
const Nodeoperator* () const
 Dereference iterator to return a storage node.
 
const Nodeoperator-> () const
 Returns a pointer to a storage node.
 

Constructor & Destructor Documentation

◆ ConstNodeIterator() [1/3]

template<class K , class T , class Cmp = std::less<K>, class Alloc = std::allocator<std::pair<const K, T> >>
Sawyer::Container::Map< K, T, Cmp, Alloc >::ConstNodeIterator::ConstNodeIterator ( )
inline

Definition at line 216 of file Sawyer/Map.h.

◆ ConstNodeIterator() [2/3]

template<class K , class T , class Cmp = std::less<K>, class Alloc = std::allocator<std::pair<const K, T> >>
Sawyer::Container::Map< K, T, Cmp, Alloc >::ConstNodeIterator::ConstNodeIterator ( const ConstNodeIterator other)
inline

Copy constructor.

Definition at line 219 of file Sawyer/Map.h.

◆ ConstNodeIterator() [3/3]

template<class K , class T , class Cmp = std::less<K>, class Alloc = std::allocator<std::pair<const K, T> >>
Sawyer::Container::Map< K, T, Cmp, Alloc >::ConstNodeIterator::ConstNodeIterator ( const NodeIterator other)
inline

Copy constructor.

Definition at line 222 of file Sawyer/Map.h.

Member Function Documentation

◆ operator=()

template<class K , class T , class Cmp = std::less<K>, class Alloc = std::allocator<std::pair<const K, T> >>
ConstNodeIterator & Sawyer::Container::Map< K, T, Cmp, Alloc >::ConstNodeIterator::operator= ( const ConstNodeIterator other)
inline

Assignment.

Definition at line 225 of file Sawyer/Map.h.

◆ operator*()

template<class K , class T , class Cmp = std::less<K>, class Alloc = std::allocator<std::pair<const K, T> >>
const Node & Sawyer::Container::Map< K, T, Cmp, Alloc >::ConstNodeIterator::operator* ( ) const
inline

Dereference iterator to return a storage node.

Definition at line 229 of file Sawyer/Map.h.

◆ operator->()

template<class K , class T , class Cmp = std::less<K>, class Alloc = std::allocator<std::pair<const K, T> >>
const Node * Sawyer::Container::Map< K, T, Cmp, Alloc >::ConstNodeIterator::operator-> ( ) const
inline

Returns a pointer to a storage node.

Definition at line 232 of file Sawyer/Map.h.


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