Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
bitpit::LevelSetValueCache< key_t, value_t > Class Template Referenceabstract

The class LevelSetCache is the base class for defining caches that store values. More...

#include <levelSetCache.hpp>

Inheritance diagram for bitpit::LevelSetValueCache< key_t, value_t >:
Inheritance graph
[legend]
Collaboration diagram for bitpit::LevelSetValueCache< key_t, value_t >:
Collaboration graph
[legend]

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
 

Detailed Description

template<typename key_t, typename value_t>
class bitpit::LevelSetValueCache< key_t, value_t >

The class LevelSetCache is the base class for defining caches that store values.

Definition at line 154 of file levelSetCache.hpp.

Member Typedef Documentation

◆ Entry

template<typename key_t , typename value_t >
typedef LevelSetValueCacheEntry<value_t> bitpit::LevelSetValueCache< key_t, value_t >::Entry

Definition at line 157 of file levelSetCache.hpp.

Member Function Documentation

◆ findEntry()

template<typename key_t , typename value_t >
virtual Entry bitpit::LevelSetValueCache< key_t, value_t >::findEntry ( const key_t & key) const
pure virtual

◆ insertEntry() [1/2]

template<typename key_t , typename value_t >
virtual Entry bitpit::LevelSetValueCache< key_t, value_t >::insertEntry ( const key_t & key,
const value_t & value )
pure virtual

◆ insertEntry() [2/2]

template<typename key_t , typename value_t >
virtual Entry bitpit::LevelSetValueCache< key_t, value_t >::insertEntry ( const key_t & key,
value_t && value )
pure virtual

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