libosmscout  0.1
osmscout::Cache< K, V, IK >::ValueSizer Class Referenceabstract

ValueSizer returns the size (in bytes) of an individual cache value. More...

#include <Cache.h>

Public Member Functions

virtual size_t GetSize (const V &value) const =0
 
virtual ~ValueSizer ()=default
 

Detailed Description

template<class K, class V, class IK = PageId>
class osmscout::Cache< K, V, IK >::ValueSizer

ValueSizer returns the size (in bytes) of an individual cache value.

An implementation of ValueSizer has to be passed in the constructor of the cache to implement the GetSize() method.

Constructor & Destructor Documentation

◆ ~ValueSizer()

template<class K , class V , class IK = PageId>
virtual osmscout::Cache< K, V, IK >::ValueSizer::~ValueSizer ( )
virtualdefault

Member Function Documentation

◆ GetSize()

template<class K , class V , class IK = PageId>
virtual size_t osmscout::Cache< K, V, IK >::ValueSizer::GetSize ( const V &  value) const
pure virtual

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