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

Bidirectional iterator over keys.

Dereferencing this iterator will return a reference to a const key. Keys cannot be altered while they are a member of this container.

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

#include <Sawyer/Map.h>

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

Public Member Functions

 ConstKeyIterator (const ConstKeyIterator &other)
 Copy constructor.
 
 ConstKeyIterator (const NodeIterator &other)
 Copy constructor.
 
 ConstKeyIterator (const ConstNodeIterator &other)
 Copy constructor.
 
ConstKeyIteratoroperator= (const ConstKeyIterator &other)
 Assignment.
 
const Keyoperator* () const
 Dereference iterator to return the interval of the storage node.
 
const Keyoperator-> () const
 Returns a pointer to the interval of the storage node.
 

Constructor & Destructor Documentation

◆ ConstKeyIterator() [1/4]

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

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

◆ ConstKeyIterator() [2/4]

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

Copy constructor.

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

◆ ConstKeyIterator() [3/4]

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

Copy constructor.

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

◆ ConstKeyIterator() [4/4]

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

Copy constructor.

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

Assignment.

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

Dereference iterator to return the interval of the storage node.

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

Returns a pointer to the interval of the storage node.

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


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