The class LevelSetCache is the base class for defining caches that store values. More...
#include <levelSetCache.hpp>
Public Types | |
typedef LevelSetValueCacheEntry< value_t > | Entry |
Public Member Functions | |
virtual Entry | findEntry (const key_t &key) const =0 |
virtual Entry | insertEntry (const key_t &key, const value_t &value)=0 |
virtual Entry | insertEntry (const key_t &key, value_t &&value)=0 |
Public Member Functions inherited from bitpit::LevelSetCache< key_t > | |
virtual void | clear ()=0 |
virtual std::unique_ptr< LevelSetCache< key_t > > | clone () const =0 |
virtual bool | contains (const key_t &key) const =0 |
virtual void | dump (std::ostream &stream)=0 |
virtual std::size_t | erase (const key_t &key)=0 |
template<typename Keys > | |
std::size_t | erase (const Keys &keys) |
virtual std::size_t | getEntryBinarySize () const =0 |
virtual bool | isVolatile () const =0 |
virtual void | readBuffer (const std::vector< key_t > &keys, RecvBuffer &buffer)=0 |
virtual void | reserve (std::size_t n)=0 |
virtual void | restore (std::istream &stream)=0 |
virtual void | shrink_to_fit ()=0 |
virtual void | writeBuffer (const std::vector< key_t > &keys, SendBuffer &buffer) const =0 |
The class LevelSetCache is the base class for defining caches that store values.
Definition at line 154 of file levelSetCache.hpp.
typedef LevelSetValueCacheEntry<value_t> bitpit::LevelSetValueCache< key_t, value_t >::Entry |
Definition at line 157 of file levelSetCache.hpp.
|
pure virtual |
Implemented in bitpit::LevelSetContainerBaseCache< key_t, container_t, value_t, reference_t, const_reference_t >, bitpit::LevelSetContainerBaseCache< key_t, PiercedStorage< value_t, key_t >, PiercedStorage< value_t, key_t >::value_type, PiercedStorage< value_t, key_t >::reference, PiercedStorage< value_t, key_t >::const_reference >, bitpit::LevelSetContainerBaseCache< key_t, PiercedVector< value_t, key_t >, PiercedVector< value_t, key_t >::value_type, PiercedVector< value_t, key_t >::reference, PiercedVector< value_t, key_t >::const_reference >, bitpit::LevelSetContainerBaseCache< key_t, std::unordered_map< key_t, value_t >, std::unordered_map< key_t, value_t >::mapped_type >, and bitpit::LevelSetContainerBaseCache< key_t, std::vector< value_t >, std::vector< value_t >::value_type, std::vector< value_t >::reference, std::vector< value_t >::const_reference >.
|
pure virtual |
Implemented in bitpit::LevelSetContainerBaseCache< key_t, container_t, value_t, reference_t, const_reference_t >, bitpit::LevelSetContainerBaseCache< key_t, PiercedStorage< value_t, key_t >, PiercedStorage< value_t, key_t >::value_type, PiercedStorage< value_t, key_t >::reference, PiercedStorage< value_t, key_t >::const_reference >, bitpit::LevelSetContainerBaseCache< key_t, PiercedVector< value_t, key_t >, PiercedVector< value_t, key_t >::value_type, PiercedVector< value_t, key_t >::reference, PiercedVector< value_t, key_t >::const_reference >, bitpit::LevelSetContainerBaseCache< key_t, std::unordered_map< key_t, value_t >, std::unordered_map< key_t, value_t >::mapped_type >, and bitpit::LevelSetContainerBaseCache< key_t, std::vector< value_t >, std::vector< value_t >::value_type, std::vector< value_t >::reference, std::vector< value_t >::const_reference >.
|
pure virtual |
Implemented in bitpit::LevelSetContainerBaseCache< key_t, container_t, value_t, reference_t, const_reference_t >, bitpit::LevelSetContainerBaseCache< key_t, PiercedStorage< value_t, key_t >, PiercedStorage< value_t, key_t >::value_type, PiercedStorage< value_t, key_t >::reference, PiercedStorage< value_t, key_t >::const_reference >, bitpit::LevelSetContainerBaseCache< key_t, PiercedVector< value_t, key_t >, PiercedVector< value_t, key_t >::value_type, PiercedVector< value_t, key_t >::reference, PiercedVector< value_t, key_t >::const_reference >, bitpit::LevelSetContainerBaseCache< key_t, std::unordered_map< key_t, value_t >, std::unordered_map< key_t, value_t >::mapped_type >, and bitpit::LevelSetContainerBaseCache< key_t, std::vector< value_t >, std::vector< value_t >::value_type, std::vector< value_t >::reference, std::vector< value_t >::const_reference >.