ValueSizer returns the size (in bytes) of an individual cache value.
More...
#include <Cache.h>
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.
◆ ~ValueSizer()
template<class K , class V , class IK = PageId>
◆ 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: