#include <coherence/net/cache/UnitCalculator.hpp>
Inherits Object.
Used with LocalCache.
Public Types | |
| typedef spec::Handle | Handle |
| UnitCalculator Handle definition. | |
| typedef spec::View | View |
| UnitCalculator View definition. | |
| typedef spec::Holder | Holder |
| UnitCalculator Holder definition. | |
Public Member Functions | |
| virtual size32_t | calculateUnits (Object::View vKey, Object::View vValue) const =0 |
| Calculate a cache cost for the specified cache entry key and value. | |
Static Public Attributes | |
| static const size32_t | npos |
| The largest possible value of type size32_t. | |
| virtual size32_t calculateUnits | ( | Object::View | vKey, | |
| Object::View | vValue | |||
| ) | const [pure virtual] |