libosmscout 1.1.1
Loading...
Searching...
No Matches
osmscout::Cache< K, V, IK >::ValueSizer Class Referenceabstract

#include <libosmscout/include/osmscout/util/Cache.h>

Public Member Functions

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

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: