CCF
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
rb::Map< K, V > Class Template Reference

#include <rb_map.h>

Public Types

using KeyType = K
 
using ValueType = V
 
using Snapshot = Snapshot< K, V >
 

Public Member Functions

 Map ()
 
bool empty () const
 
size_t size () const
 
size_t get_serialized_size () const
 
std::optional< V > get (const K &key) const
 
const V * getp (const K &key) const
 
Map put (const K &key, const V &value) const
 
Map remove (const K &key) const
 
template<class F >
bool foreach (F &&f) const
 
std::unique_ptr< Snapshotmake_snapshot () const
 

Member Typedef Documentation

◆ KeyType

template<class K , class V >
using rb::Map< K, V >::KeyType = K

◆ Snapshot

template<class K , class V >
using rb::Map< K, V >::Snapshot = Snapshot<K, V>

◆ ValueType

template<class K , class V >
using rb::Map< K, V >::ValueType = V

Constructor & Destructor Documentation

◆ Map()

template<class K , class V >
rb::Map< K, V >::Map ( )
inline

Member Function Documentation

◆ empty()

template<class K , class V >
bool rb::Map< K, V >::empty ( ) const
inline

◆ foreach()

template<class K , class V >
template<class F >
bool rb::Map< K, V >::foreach ( F &&  f) const
inline

◆ get()

template<class K , class V >
std::optional< V > rb::Map< K, V >::get ( const K &  key) const
inline

◆ get_serialized_size()

template<class K , class V >
size_t rb::Map< K, V >::get_serialized_size ( ) const
inline

◆ getp()

template<class K , class V >
const V * rb::Map< K, V >::getp ( const K &  key) const
inline

◆ make_snapshot()

template<class K , class V >
std::unique_ptr< Snapshot > rb::Map< K, V >::make_snapshot ( ) const
inline

◆ put()

template<class K , class V >
Map rb::Map< K, V >::put ( const K &  key,
const V &  value 
) const
inline

◆ remove()

template<class K , class V >
Map rb::Map< K, V >::remove ( const K &  key) const
inline

◆ size()

template<class K , class V >
size_t rb::Map< K, V >::size ( ) const
inline

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