ADTF
Loading...
Searching...
No Matches
object_pool_intf.h
Go to the documentation of this file.
1
7
8#ifndef _ADTF_UCOM_ANT_OBJECT_POOL_INTERFACE_INCLUDES_HEADER_
9#define _ADTF_UCOM_ANT_OBJECT_POOL_INTERFACE_INCLUDES_HEADER_
10
11namespace adtf
12{
13namespace ucom
14{
15namespace ant
16{
17
23class DOEXPORT IObjectPool : public IObject
24{
25public:
30 ADTF_IID(IObjectPool, "object_pool.ant.ucom.adtf.iid");
31
32public:
42 virtual tResult ReleaseObject(const iobject_ptr<IObject>& i_pRelease) = 0;
43
49 virtual size_t GetCacheSize() const = 0;
50
55 virtual size_t GetUseCount() const = 0;
56
69 virtual tResult ResizeCache(size_t i_nSize) = 0;
70
71protected:
73 ~IObjectPool() = default;
74};//class IObjectPool
75
76}//namespace ant
77
80
81}//namespace ucom
82}//namespace adtf
83
84#endif //_ADTF_UCOM_ANT_OBJECT_POOL_INTERFACE_INCLUDES_HEADER_
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition object_pool_intf.h:24
virtual size_t GetUseCount() const =0
Get amount of objects currently in use.
virtual tResult ReleaseObject(const iobject_ptr< IObject > &i_pRelease)=0
virtual size_t GetCacheSize() const =0
Get entire size of the cache which is also the amount of preallocated objects.
virtual tResult ResizeCache(size_t i_nSize)=0
Resize the cache.
ADTF_IID(IObjectPool, "object_pool.ant.ucom.adtf.iid")
~IObjectPool()=default
Protected destructor --> Only the final implementation can be destroyed!
Definition object_intf.h:33
Base object pointer to realize binary compatible reference counting in interface methods.
Definition object_ptr_intf.h:112
Namespace for all functionality of the ADTF UCOM SDK provided since v3.0.
Definition test_runtime.h:14
Namespace for the ADTF uCOM SDK.
Definition adtf_system.h:324
ant::IObjectPool IObjectPool
Alias always bringing the latest version of ant::IObjectPool into scope.
Definition object_pool_intf.h:79
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14