ROSE  0.11.96.11
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 89 of file Sawyer/Map.h.

#include <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. More...
 
Valuevalue ()
 Value part of key/value node. More...
 
const Valuevalue () const
 Value part of key/value node. More...
 

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


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