ADTF
Loading...
Searching...
No Matches
adtf::ucom::ant::iobject_ptr< const T > Class Template Referenceabstract

Base object pointer to realize binary compatible reference counting in interface methods. More...

#include <object_ptr_intf.h>

Inherits adtf::ucom::ant::iobject_ptr_base< T >, and adtf::ucom::ant::iobject_ptr_base< const T >.

Public Types

typedef const IObject object_type
 Provided for single point of const correct type access.
 
typedef IObject object_type
 Provided for single point of const correct type access.
 
- Public Types inherited from adtf::ucom::ant::iobject_ptr_base< T >
typedef T element_type
 Contained type to manage an object of.
 
- Public Types inherited from adtf::ucom::ant::iobject_ptr_base< const T >
typedef T element_type
 Contained type to manage an object of.
 

Public Member Functions

virtual operator const iobject_ptr< const T > & () const=0
 Enable implicit conversion to const value type for pointer-like behavior.
 
- Public Member Functions inherited from adtf::ucom::ant::iobject_ptr_base< T >
virtual T * Get () const =0
 Get raw pointer to shared object.
 
virtual tResult Reset (const iobject_ptr< T > &i_oOther)=0
 Reset this object_ptr<> with the content of another iobject_ptr<>
 
virtual T * operator-> () const =0
 Operator-> overload to treat object_ptr<> types like real pointers.
 
virtual detail::iobject_ptr_ref< size_t > * GetObjPtrRef () const =0
 
T & operator* () const noexcept
 Operator* to dereference the stored pointer.
 
- Public Member Functions inherited from adtf::ucom::ant::iobject_ptr_base< const T >
virtual T * Get () const=0
 Get raw pointer to shared object.
 
virtual tResult Reset (const iobject_ptr< T > &i_oOther)=0
 Reset this object_ptr<> with the content of another iobject_ptr<>
 
virtual T * operator-> () const=0
 Operator-> overload to treat object_ptr<> types like real pointers.
 
virtual detail::iobject_ptr_ref< size_t > * GetObjPtrRef () const=0
 
T & operator* () const noexcept
 Operator* to dereference the stored pointer.
 

Protected Member Functions

 ~iobject_ptr ()=default
 Destructor.
 
 ~iobject_ptr ()=default
 Destructor.
 
- Protected Member Functions inherited from adtf::ucom::ant::iobject_ptr_base< T >
 ~iobject_ptr_base ()=default
 Destructor.
 
- Protected Member Functions inherited from adtf::ucom::ant::iobject_ptr_base< const T >
 ~iobject_ptr_base ()=default
 Destructor.
 

Detailed Description

template<typename T>
class adtf::ucom::ant::iobject_ptr< const T >

Base object pointer to realize binary compatible reference counting in interface methods.

Specialization for const T types. Those do not need to offer an implicit conversion operator to iobject_ptr<const T>

Template Parameters
TType of the managed resource. Must be derived from IObject

Member Function Documentation

◆ operator const iobject_ptr< const T > &()

virtual adtf::ucom::ant::iobject_ptr< T >::operator const iobject_ptr< const T > & ( ) const
pure virtual

Enable implicit conversion to const value type for pointer-like behavior.

Returns
Reference to iobject_ptr containing const value type

The documentation for this class was generated from the following file: