gatb.core-API-0.0.0
|
Bag implementation as a cache to a referred Bag instance. More...
#include <BagCache.hpp>
Public Member Functions | |
BagCacheSortedBuffered (Bag< Item > *ref, size_t cacheSize, Item *sharedBuffer, size_t sharedCacheSize, size_t *idxShared, system::ISynchronizer *outsynchro=0, system::ISynchronizer *synchro=0) | |
virtual | ~BagCacheSortedBuffered () |
void | insert (const Item &item) |
void | flush () |
Public Member Functions inherited from BagCache< Item > | |
BagCache () | |
BagCache (Bag< Item > *ref, size_t cacheSize, system::ISynchronizer *synchro=0) | |
virtual | ~BagCache () |
Public Member Functions inherited from Bag< Item > | |
virtual void | insert (const std::vector< Item > &items, size_t length=0) |
virtual void | insert (const Item *items, size_t length) |
Public Member Functions inherited from ISmartPointer | |
virtual | ~ISmartPointer () |
Public Member Functions inherited from SmartPointer | |
void | use () |
void | forget () |
Additional Inherited Members | |
Protected Member Functions inherited from SmartPointer | |
SmartPointer () | |
virtual | ~SmartPointer () |
Bag implementation as a cache to a referred Bag instance.
The cache is sorted before sent to the reference
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inlinevirtual |
Flush the current content. May be useful for implementation that uses a cache.
Reimplemented from BagCache< Item >.
|
inlinevirtual |
Insert an item into the bag.
[in] | item | : the item to be inserted. |
Reimplemented from BagCache< Item >.