Template Class rocksdb_map_adapter

Nested Relationships

Nested Types

Class Documentation

template<typename KeyT, typename MappedT, typename Codec = DefaultCodec<MappedT>>
class rocksdb_map_adapter

Public Types

using key_type = KeyT
using mapped_type = MappedT
using value_type = std::pair<key_type, mapped_type>

Public Functions

inline rocksdb_map_adapter(rocksdb::DB *db, const std::string &prefix)
inline iterator begin() const
inline iterator end() const
inline iterator find(const key_type &key) const
inline size_t erase(const key_type &key)
inline std::pair<iterator, bool> insert(const value_type &value)
class iterator

Public Types

using value_type = std::pair<key_type, mapped_type>
using difference_type = std::ptrdiff_t
using iterator_category = std::forward_iterator_tag
using pointer = value_type*
using reference = value_type&

Public Functions

inline iterator()
inline iterator(rocksdb::DB *db, const std::string &prefix, std::unique_ptr<rocksdb::Iterator> iterator, Codec codec = Codec{})
inline iterator(const iterator &other)
inline iterator &operator=(const iterator &other)
inline value_type operator*() const
inline value_type *operator->() const
inline iterator &operator++()
inline iterator operator++(int)
inline bool operator==(const iterator &other) const
inline bool operator!=(const iterator &other) const