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

The class LevelSetCache is the base class for defining caches. More...

#include <levelSetCache.hpp>

Inheritance diagram for bitpit::LevelSetCache< key_t >:
Inheritance graph
[legend]

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
 

Detailed Description

template<typename key_t>
class bitpit::LevelSetCache< key_t >

The class LevelSetCache is the base class for defining caches.

Definition at line 52 of file levelSetCache.hpp.

Member Function Documentation

◆ clear()

template<typename key_t >
virtual void bitpit::LevelSetCache< key_t >::clear ( )
pure virtual

◆ clone()

template<typename key_t >
virtual std::unique_ptr< LevelSetCache< key_t > > bitpit::LevelSetCache< key_t >::clone ( ) const
pure virtual

◆ contains()

template<typename key_t >
virtual bool bitpit::LevelSetCache< key_t >::contains ( const key_t & key) const
pure virtual

◆ dump()

template<typename key_t >
virtual void bitpit::LevelSetCache< key_t >::dump ( std::ostream & stream)
pure virtual

◆ erase() [1/2]

template<typename key_t >
virtual std::size_t bitpit::LevelSetCache< key_t >::erase ( const key_t & key)
pure virtual

◆ erase() [2/2]

template<typename key_t >
template<typename Keys >
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.

Parameters
keysare the keys whose entries will be erased
Returns
The number of entries that were actually erased.

Definition at line 104 of file levelSetCache.tpp.

◆ getEntryBinarySize()

template<typename key_t >
virtual std::size_t bitpit::LevelSetCache< key_t >::getEntryBinarySize ( ) const
pure virtual

◆ isVolatile()

template<typename key_t >
virtual bool bitpit::LevelSetCache< key_t >::isVolatile ( ) const
pure virtual

◆ readBuffer()

template<typename key_t >
virtual void bitpit::LevelSetCache< key_t >::readBuffer ( const std::vector< key_t > & keys,
RecvBuffer & buffer )
pure virtual

◆ reserve()

template<typename key_t >
virtual void bitpit::LevelSetCache< key_t >::reserve ( std::size_t n)
pure virtual

◆ restore()

template<typename key_t >
virtual void bitpit::LevelSetCache< key_t >::restore ( std::istream & stream)
pure virtual

◆ shrink_to_fit()

template<typename key_t >
virtual void bitpit::LevelSetCache< key_t >::shrink_to_fit ( )
pure virtual

◆ writeBuffer()

template<typename key_t >
virtual void bitpit::LevelSetCache< key_t >::writeBuffer ( const std::vector< key_t > & keys,
SendBuffer & buffer ) const
pure virtual

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