The class LevelSetCache is the base class for defining caches. More...
#include <levelSetCache.hpp>
Public Member Functions | |
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.
Definition at line 52 of file levelSetCache.hpp.
|
pure virtual |
Implemented in bitpit::LevelSetContainerCache< key_t, std::unordered_map< key_t, value_t > >, bitpit::LevelSetContainerCache< key_t, std::vector< value_t > >, bitpit::LevelSetContainerCache< key_t, PiercedVector< value_t, key_t > >, and bitpit::LevelSetContainerCache< key_t, PiercedStorage< value_t, key_t > >.
|
pure virtual |
Implemented in bitpit::LevelSetContainerCache< key_t, std::unordered_map< key_t, value_t > >, bitpit::LevelSetContainerCache< key_t, std::vector< value_t > >, bitpit::LevelSetContainerCache< key_t, PiercedVector< value_t, key_t > >, and bitpit::LevelSetContainerCache< key_t, PiercedStorage< value_t, key_t > >.
|
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::LevelSetContainerCache< key_t, std::unordered_map< key_t, value_t > >, bitpit::LevelSetContainerCache< key_t, std::vector< value_t > >, bitpit::LevelSetContainerCache< key_t, PiercedVector< value_t, key_t > >, and bitpit::LevelSetContainerCache< key_t, PiercedStorage< value_t, key_t > >.
|
pure virtual |
Implemented in bitpit::LevelSetContainerCache< key_t, std::unordered_map< key_t, value_t > >, bitpit::LevelSetContainerCache< key_t, std::vector< value_t > >, bitpit::LevelSetContainerCache< key_t, PiercedVector< value_t, key_t > >, and bitpit::LevelSetContainerCache< key_t, PiercedStorage< value_t, key_t > >.
std::size_t bitpit::LevelSetCache< key_t >::erase | ( | const Keys & | keys | ) |
Erase the entries associated to the given keys from the specified cache.
Keys not associated with an entry will be skipped without raising any exception.
keys | are the keys whose entries will be erased |
Definition at line 104 of file levelSetCache.tpp.
|
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::LevelSetContainerCache< key_t, std::unordered_map< key_t, value_t > >, bitpit::LevelSetContainerCache< key_t, std::vector< value_t > >, bitpit::LevelSetContainerCache< key_t, PiercedVector< value_t, key_t > >, and bitpit::LevelSetContainerCache< key_t, PiercedStorage< value_t, key_t > >.
|
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::LevelSetContainerCache< key_t, std::unordered_map< key_t, value_t > >, bitpit::LevelSetContainerCache< key_t, std::vector< value_t > >, bitpit::LevelSetContainerCache< key_t, PiercedVector< value_t, key_t > >, and bitpit::LevelSetContainerCache< key_t, PiercedStorage< value_t, key_t > >.
|
pure virtual |
Implemented in bitpit::LevelSetContainerCache< key_t, std::unordered_map< key_t, value_t > >, bitpit::LevelSetContainerCache< key_t, std::vector< value_t > >, bitpit::LevelSetContainerCache< key_t, PiercedVector< value_t, key_t > >, and bitpit::LevelSetContainerCache< key_t, PiercedStorage< value_t, key_t > >.
|
pure virtual |
Implemented in bitpit::LevelSetContainerCache< key_t, std::unordered_map< key_t, value_t > >, bitpit::LevelSetContainerCache< key_t, std::vector< value_t > >, bitpit::LevelSetContainerCache< key_t, PiercedVector< value_t, key_t > >, and bitpit::LevelSetContainerCache< key_t, PiercedStorage< value_t, key_t > >.
|
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 >.