libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
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

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

Member Function Documentation

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: