#include <sdkreferenceobjectptr.h>
Reference Object Pointer template for automatic destruction of unused objects.
Public Member Functions | |
SDKReferenceObjectPtr () | |
SDKReferenceObjectPtr (const SDKReferenceObjectPtr &src) | |
SDKReferenceObjectPtr (const SDKReferenceObjectBasePtr &src) | |
SDKReferenceObjectPtr (int zero) | |
SDKReferenceObjectPtr (const ObjectInterface *src_itf) | |
~SDKReferenceObjectPtr () | |
ObjectInterface * | GetPtr (void) const |
SDKReferenceObjectPtr & | operator= (int zero) |
SDKReferenceObjectPtr & | operator= (const SDKReferenceObjectPtr &src) |
SDKReferenceObjectPtr & | operator= (const SDKReferenceObjectBasePtr &src) |
SDKReferenceObjectPtr & | operator= (ObjectInterface *src_itf) |
operator ObjectInterface * (void) const | |
ObjectInterface * | operator-> (void) const |
Bool | operator== (ObjectInterface *x) const |
Bool | IsNull (void) const |
Additional Inherited Members | |
Protected Attributes inherited from SDKReferenceObjectBasePtr | |
SDKReferenceObject * | itf |
Default constructor.
SDKReferenceObjectPtr | ( | const SDKReferenceObjectPtr< ObjectInterface > & | src | ) |
Copy constructor. Constructs a reference object with reference data from an existing object.
[in] | src | The source reference object containing an interface pointer. |
SDKReferenceObjectPtr | ( | const SDKReferenceObjectBasePtr & | src | ) |
Copy constructor. Constructs a reference object with reference data from an existing object.
[in] | src | The source reference object (of a different type) containing an interface pointer. |
SDKReferenceObjectPtr | ( | int | zero | ) |
Constructs a nullptr interface.
[in] | zero | Pass 0. |
SDKReferenceObjectPtr | ( | const ObjectInterface * | src_itf | ) |
Constructs a reference object with an interface/class pointer.
[in] | src_itf | The interface/class pointer. |
Destructs the reference object, removes reference to the interface.
ObjectInterface* GetPtr | ( | void | ) | const |
Gets the reference pointer.
SDKReferenceObjectPtr& operator= | ( | int | zero | ) |
Removes a references.
[in] | zero | Pass 0. |
*this
SDKReferenceObjectPtr& operator= | ( | const SDKReferenceObjectPtr< ObjectInterface > & | src | ) |
Assigns a reference to an already initialized reference object.
[in] | src | A reference object containing an interface pointer. |
*this
SDKReferenceObjectPtr& operator= | ( | const SDKReferenceObjectBasePtr & | src | ) |
Assigns a reference to an already initialized reference object.
[in] | src | A reference object (of a different type) containing an interface pointer |
*this
SDKReferenceObjectPtr& operator= | ( | ObjectInterface * | src_itf | ) |
Assigns a reference to an already initialized reference object.
[in] | src_itf | An interface pointer. |
*this
operator ObjectInterface * | ( | void | ) | const |
Gets the reference pointer.
ObjectInterface* operator-> | ( | void | ) | const |
Overrides the ->
operator. Makes the SDKReferenceObjectPtr looks like a real pointer.
Bool operator== | ( | ObjectInterface * | x | ) | const |
Compares the reference and the given object pointer.
[in] | x | An object pointer. |
Bool IsNull | ( | void | ) | const |
Checks if an interface has been assigned.