libosmscout 0.1
|
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 |
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.
|
virtualdefault |
|
pure virtual |
Referenced by osmscout::Cache< K, V, IK >::GetMemory().