#include <lruCacheItem.h>
Public Types | |
enum | State { ST_BORN, ST_ADULT, ST_DOOMED, ST_ZOMBIE, ST_BUSY } |
Public Member Functions | |
virtual DatabaseObject & | getObject () |
virtual CacheLock & | addLock (bool rdonly) |
Adds lock to the object. | |
virtual void | rmLock () |
virtual void | replaceObject (DatabaseObject *obj) |
void | remove () |
void | addNext (LruCacheItem &item) |
void | addPrev (LruCacheItem &item) |
void | release () |
Public Attributes | |
LruCacheBase * | cache |
PersIdentification | persId |
DatabaseObject * | objectPtr |
State | state |
LruCacheItem * | next |
LruCacheItem * | prev |
TimeStamp | timeStamp |
Enumeration of item states.
ST_BORN | An object without persistent copy. |
ST_ADULT | An object with persistent copy. |
ST_DOOMED | Object scheduled for deletion. |
ST_ZOMBIE | Remnant of an item. |
ST_BUSY | Item being processed. |
DatabaseObject & iopc::LruCacheItem::getObject | ( | ) | [virtual] |
Returns the object.
Implements iopc::CacheLock.
CacheLock & iopc::LruCacheItem::addLock | ( | bool | rdonly | ) | [virtual] |
Adds lock to the object.
rdonly | Specifies type of lock to be added. |
Implements iopc::CacheLock.
void iopc::LruCacheItem::rmLock | ( | ) | [virtual] |
Removes one lock.
Implements iopc::CacheLock.
void iopc::LruCacheItem::replaceObject | ( | DatabaseObject * | obj | ) | [virtual] |
Replaces the object represented by the item.
void iopc::LruCacheItem::remove | ( | ) |
Removes item from list.
void iopc::LruCacheItem::addNext | ( | LruCacheItem & | item | ) |
Appends an item.
void iopc::LruCacheItem::addPrev | ( | LruCacheItem & | item | ) |
Prepends an item.
void iopc::LruCacheItem::release | ( | ) |
Releases the object being represented by the item.
Owner of the item.
ID of the object.
The object being represented by the item.
State of the item.
Next item,
Previous item.
Time of the last access to the item.