CBMC
|
Implementation of map-like interface using a forward list. More...
#include <forward_list_as_map.h>
Public Types | |
using | implementationt = typename std::forward_list< std::pair< keyt, mappedt > > |
using | const_iterator = typename implementationt::const_iterator |
using | iterator = typename implementationt::iterator |
Public Member Functions | |
forward_list_as_mapt () | |
forward_list_as_mapt (std::initializer_list< std::pair< keyt, mappedt >> list) | |
void | erase (const keyt &name) |
const const_iterator | find (const keyt &name) const |
iterator | add (const keyt &name) |
mappedt & | operator[] (const keyt &name) |
mappedt & | add (const keyt &name, mappedt irep) |
mappedt & | emplace (const keyt &name, const mappedt &irep) |
std::size_t | size () const |
Private Member Functions | |
const_iterator | lower_bound (const keyt &id) const |
iterator | mutable_lower_bound (const keyt &id) |
Static Private Member Functions | |
static bool | order (const std::pair< keyt, mappedt > &a, const keyt &b) |
Implementation of map-like interface using a forward list.
Definition at line 21 of file forward_list_as_map.h.
using forward_list_as_mapt< keyt, mappedt >::const_iterator = typename implementationt::const_iterator |
Definition at line 25 of file forward_list_as_map.h.
using forward_list_as_mapt< keyt, mappedt >::implementationt = typename std::forward_list<std::pair<keyt, mappedt> > |
Definition at line 24 of file forward_list_as_map.h.
using forward_list_as_mapt< keyt, mappedt >::iterator = typename implementationt::iterator |
Definition at line 26 of file forward_list_as_map.h.
|
inline |
Definition at line 28 of file forward_list_as_map.h.
|
inline |
Definition at line 32 of file forward_list_as_map.h.
|
inline |
Definition at line 60 of file forward_list_as_map.h.
|
inline |
Definition at line 80 of file forward_list_as_map.h.
|
inline |
Definition at line 97 of file forward_list_as_map.h.
|
inline |
Definition at line 37 of file forward_list_as_map.h.
|
inline |
Definition at line 50 of file forward_list_as_map.h.
|
inlineprivate |
Definition at line 125 of file forward_list_as_map.h.
|
inlineprivate |
Definition at line 130 of file forward_list_as_map.h.
|
inline |
Definition at line 75 of file forward_list_as_map.h.
|
inlinestaticprivate |
Definition at line 120 of file forward_list_as_map.h.
|
inline |
Definition at line 114 of file forward_list_as_map.h.