17 #ifndef A_UTIL_UTIL_RESULT_DETAIL_REFERENCE_COUNTED_OBJECT_INTERFACE_HEADER_INCLUDED
18 #define A_UTIL_UTIL_RESULT_DETAIL_REFERENCE_COUNTED_OBJECT_INTERFACE_HEADER_INCLUDED
28 template <
typename Resource >
An internal stable interface to ensure binary compatibility of reference counting.
virtual const Resource & getObject() const =0
Get a reference to the handled object - provided for const correctness.
~ReferenceCountedObjectInterface()
DTOR.
virtual Resource & getObject()=0
Get a reference to the handled object.
virtual void removeReference() const =0
Decrease the reference count.
virtual void addReference() const =0
Increase the reference count.
Serves as the root component, with common functionality documented in core functionality.