#include <arcCacheBase.h>
Public Member Functions | |
ArcCacheBase (long minValue=MINLONG, long maxCost=MAXLONG, const Strategy &strat=Strategy::defaultStrategy) | |
ArcCacheBase (long minValue, long maxCost, StrategySelector *stratSel) | |
Protected Member Functions | |
virtual ArcCacheItem & | addLock (ArcCacheItem &item, bool rdonly)=0 |
virtual void | rmLock (ArcCacheItem &item)=0 |
iopc::ArcCacheBase::ArcCacheBase | ( | long | minValue = MINLONG , |
|
long | maxCost = MAXLONG , |
|||
const Strategy & | strat = Strategy::defaultStrategy | |||
) | [inline] |
Initialize cache with the same strategies for all object.
minValue | Minimal value of objects obliged to stay in the cache. | |
maxCost | Maximal total cost of stored objects. | |
strat | Default strategy. |
iopc::ArcCacheBase::ArcCacheBase | ( | long | minValue, | |
long | maxCost, | |||
StrategySelector * | stratSel | |||
) | [inline] |
Initialize cache with strategies passed by selector.
minValue | Minimal value of objects obliged to stay in the cache. | |
maxCost | Maximal total cost of stored objects. | |
strat | strategy selector. |
virtual ArcCacheItem& iopc::ArcCacheBase::addLock | ( | ArcCacheItem & | item, | |
bool | rdonly | |||
) | [protected, pure virtual] |
Adds a lock to an item containing an object
item | The item the lock should be added to. | |
rdonly | Type of the lock. |
Implemented in iopc::ArcCache< MapType >, and iopc::ArcCacheST< MapType >.
virtual void iopc::ArcCacheBase::rmLock | ( | ArcCacheItem & | item | ) | [protected, pure virtual] |
Removes one lock of an item representing an object
item | The item the lock should be removed from. |
Implemented in iopc::ArcCache< MapType >, and iopc::ArcCacheST< MapType >.