ADTF  3.18.2
ReferenceCountedObjectInterface< Resource >abstract

An internal stable interface to ensure binary compatibility of reference counting. More...

Inheritance diagram for ReferenceCountedObjectInterface< Resource >:
[legend]

Public Member Functions

virtual void addReference () const =0
 Increase the reference count.
 
virtual void removeReference () const =0
 Decrease the reference count.
 
virtual Resource & getObject ()=0
 Get a reference to the handled object. More...
 
virtual const Resource & getObject () const =0
 Get a reference to the handled object - provided for const correctness. More...
 

Protected Member Functions

 ~ReferenceCountedObjectInterface ()
 DTOR.
 

Detailed Description

template<typename Resource>
class a_util::result::detail::ReferenceCountedObjectInterface< Resource >

An internal stable interface to ensure binary compatibility of reference counting.

Warning
This interface must not be changed to ensure binary compatibility!
Template Parameters
ResourceThe resource to handle

Definition at line 29 of file workspace/conan/dev_essential/1.3.3/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/a_util/result/detail/reference_counted_object_intf.h.

Member Function Documentation

◆ getObject() [1/2]

virtual const Resource& getObject ( ) const
pure virtual

Get a reference to the handled object - provided for const correctness.

Returns
Const reference to the handled object

Implemented in UncountedObject< Interface, Implementation >, ReferenceCountedObject< Interface, Implementation >, and ReferenceCountedObject< T, T >.

◆ getObject() [2/2]

virtual Resource& getObject ( )
pure virtual

Get a reference to the handled object.

Returns
Reference to the handled object

Implemented in UncountedObject< Interface, Implementation >, ReferenceCountedObject< Interface, Implementation >, and ReferenceCountedObject< T, T >.