ADTF  3.18.3
builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/core/reference_counted_object_intf.h
Go to the documentation of this file.
1 
8 #ifndef _A_UTILS_BASE_REFERENCE_COUNTED_OBJECT_INTF_INCLUDED_H_
9 #define _A_UTILS_BASE_REFERENCE_COUNTED_OBJECT_INTF_INCLUDED_H_
10 
11 namespace A_UTILS_NS
12 {
13 
14 namespace detail
15 {
16 
21 template <typename Interface>
23 {
24  public:
25  virtual tVoid AddReference() const = 0;
26  virtual tVoid RemoveReference() const = 0;
27 
28  virtual const Interface& GetObject() const = 0;
29  virtual Interface& GetObject() = 0;
30 
31  protected:
32  ~ireference_counted_object() = default;
33 };//template <typename Interface> class ireference_counted_object
34 
35 }//ns detail
36 }//ns A_UTILS_NS
37 
38 #endif // _A_UTILS_BASE_REFERENCE_COUNTED_OBJECT_INTF_INCLUDED_H_
void tVoid
The tVoid is always the definition for the void (non-type).
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
Definition: d_ptr.h:11