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

Type for stored nodes.

A storage node contains the immutable key and its associated value.

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

#include <Sawyer/Map.h>

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

Public Member Functions

 Node (const std::pair< const Key, Value > &pair)
 
 Node (const Key &key, Value &value)
 
const Keykey () const
 Key part of key/value node.
 
Valuevalue ()
 Value part of key/value node.
 
const Valuevalue () const
 Value part of key/value node.
 

Constructor & Destructor Documentation

◆ Node() [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 >::Node::Node ( const std::pair< const Key, Value > &  pair)
inlineexplicit

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

◆ Node() [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 >::Node::Node ( const Key key,
Value value 
)
inline

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

Member Function Documentation

◆ key()

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 >::Node::key ( ) const
inline

◆ value() [1/2]

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

◆ value() [2/2]

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

Value part of key/value node.

Returns a reference to the value part of a key/value node.

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


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