TILockedProducer.h
Go to the documentation of this file.
1 #ifndef iproc_TILockedProducer_included
2 #define iproc_TILockedProducer_included
3 
4 
5 // ACF includes
6 #include "istd/IPolymorphic.h"
7 
8 #include "iproc/iproc.h"
9 
10 
11 namespace iproc
12 {
13 
14 
21 template <class Key, class CacheObject>
22 class TILockedProducer: virtual public istd::IPolymorphic
23 {
24 public:
29  virtual const CacheObject* ProduceLockedObject(const Key& key) = 0;
30 
34  virtual void UnlockObject(const CacheObject* objectPtr) = 0;
35 };
36 
37 
38 } // namespace iproc
39 
40 
41 #endif // !iproc_TILockedProducer_included
42 
43 
virtual const CacheObject * ProduceLockedObject(const Key &key)=0
Begin of accessing to cached element.
Template interface for providers of cached data.
virtual void UnlockObject(const CacheObject *objectPtr)=0
End of accessing to cached element.

© 2007-2011 Witold Gantzke and Kirill Lepskiy