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

Bidirectional iterator over values.

Dereferencing this iterator will return a reference to the user-defined value of the node. Values may be altered in-place while they are members of a container.

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

#include <Sawyer/Map.h>

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

Public Member Functions

 ValueIterator (const ValueIterator &other)
 Copy constructor.
 
 ValueIterator (const NodeIterator &other)
 Copy constructor.
 
ValueIteratoroperator= (const ValueIterator &other)
 Assignment.
 
Valueoperator* () const
 Dereference iterator to return the value of the storage node.
 
Valueoperator-> () const
 Returns a pointer to the value of the storage node.
 

Constructor & Destructor Documentation

◆ ValueIterator() [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 >::ValueIterator::ValueIterator ( )
inline

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

◆ ValueIterator() [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 >::ValueIterator::ValueIterator ( const ValueIterator other)
inline

Copy constructor.

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

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

Copy constructor.

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

Assignment.

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

Dereference iterator to return the value of the storage node.

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

Returns a pointer to the value of the storage node.

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


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