Public Member Functions | List of all members
iproc::TILockedProducer< Key, CacheObject > Class Template Referenceabstract

Template interface for providers of cached data. More...

#include <TILockedProducer.h>

Inheritance diagram for iproc::TILockedProducer< Key, CacheObject >:
istd::IPolymorphic iproc::TFileCachedProducerCompBase< Key, CacheObject > iproc::TMemCachedProducerComp< Key, CacheObject > iproc::TMorphLockedProducerBase< Key, CacheObject, SourceObject >

Public Member Functions

virtual const CacheObject * ProduceLockedObject (const Key &key)=0
 Begin of accessing to cached element. More...
 
virtual void UnlockObject (const CacheObject *objectPtr)=0
 End of accessing to cached element. More...
 

Detailed Description

template<class Key, class CacheObject>
class iproc::TILockedProducer< Key, CacheObject >

Template interface for providers of cached data.

Cached data are accessible in transaction blocks between lock and unlock operation. This data are accessed using abstract key object. Please note that Key class must implement standard STL operators needed to use it as QMap key.

Definition at line 22 of file TILockedProducer.h.

Member Function Documentation

template<class Key , class CacheObject >
virtual const CacheObject* iproc::TILockedProducer< Key, CacheObject >::ProduceLockedObject ( const Key &  key)
pure virtual

Begin of accessing to cached element.

Returns
cached object, if it was possible to produce it for specified key.

Implemented in iproc::TFileCachedProducerCompBase< Key, CacheObject >, iproc::TMemCachedProducerComp< Key, CacheObject >, and iproc::TMorphLockedProducerBase< Key, CacheObject, SourceObject >.

template<class Key , class CacheObject >
virtual void iproc::TILockedProducer< Key, CacheObject >::UnlockObject ( const CacheObject *  objectPtr)
pure virtual

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy