ROSE 0.11.145.192
Public Member Functions | List of all members
Sawyer::Container::Map< K, T, Cmp, Alloc >::NodeIterator 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 >::NodeIterator

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 187 of file Sawyer/Map.h.

#include <Sawyer/Map.h>

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ NodeIterator() [1/2]

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 >::NodeIterator::NodeIterator ( )
inline

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

◆ NodeIterator() [2/2]

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 >::NodeIterator::NodeIterator ( const NodeIterator other)
inline

Copy constructor.

Definition at line 193 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> >>
NodeIterator & Sawyer::Container::Map< K, T, Cmp, Alloc >::NodeIterator::operator= ( const NodeIterator other)
inline

Assignment.

Definition at line 196 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> >>
Node & Sawyer::Container::Map< K, T, Cmp, Alloc >::NodeIterator::operator* ( ) const
inline

Dereference iterator to return a storage node.

Definition at line 200 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> >>
Node * Sawyer::Container::Map< K, T, Cmp, Alloc >::NodeIterator::operator-> ( ) const
inline

Returns a pointer to a storage node.

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


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