iopc::CacheLock Class Reference
[iopclib-cache]

Locks object in the cache and returns a pointer to it. More...

#include <cacheLock.h>

Inheritance diagram for iopc::CacheLock:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual DatabaseObjectgetObject ()=0
virtual CacheLockaddLock (bool rdonly)=0
 Adds lock to the object.
virtual void rmLock ()=0


Detailed Description

Locks object in the cache and returns a pointer to it.

Locks can be added and removed.


Member Function Documentation

virtual DatabaseObject& iopc::CacheLock::getObject (  )  [pure virtual]

Returns the object.

Implemented in iopc::ArcCacheItem, iopc::LruCacheItem, and iopc::VoidCacheItem.

virtual CacheLock& iopc::CacheLock::addLock ( bool  rdonly  )  [pure virtual]

Adds lock to the object.

Parameters:
rdonly Specifies type of lock to be added.
Returns:
An instance representing new lock.

Implemented in iopc::ArcCacheItem, iopc::LruCacheItem, and iopc::VoidCacheItem.

virtual void iopc::CacheLock::rmLock (  )  [pure virtual]

Removes one lock.

Implemented in iopc::ArcCacheItem, iopc::LruCacheItem, and iopc::VoidCacheItem.


The documentation for this class was generated from the following file:

Generated on Tue Apr 14 16:46:43 2009 for IOPC 2 by  doxygen 1.5.6