Struct IObjectLifetime#
Defined in File core.h
Inheritance Relationships#
Derived Types#
public CObjectLifetimeControl
(Class CObjectLifetimeControl)public sdv::CObjectLifetimeWrapper
(Class CObjectLifetimeWrapper)
Struct Documentation#
-
struct IObjectLifetime#
Lifetime management through reference counting.
Subclassed by CObjectLifetimeControl, sdv::CObjectLifetimeWrapper
Public Functions
-
virtual void Increment() = 0#
Increment the lifetime. Needs to be balanced by a call to Decrement.
-
virtual bool Decrement() = 0#
Decrement the lifetime. If the lifetime reaches zero, the object will be destroyed (through the exposed IObjectDestroy interface).
- Returns:
Returns ‘true’ if the object was destroyed, false if not.
-
virtual uint32_t GetCount() const = 0#
Get the current lifetime count.
Remark
The GetCount function returns a momentary value, which can be changed at any moment.
- Returns:
Returns the current counter value.
-
void Increment()
Increment the lifetime. Needs to be balanced by a call to Decrement.
-
boolean Decrement()
Decrement the lifetime. If the lifetime reaches zero, the object will be destroyed (through the exposed IObjectDestroy interface).
- Returns:
Returns ‘true’ if the object was destroyed, false if not.
-
uint32 GetCount() const
Get the current lifetime count.
Remark
The GetCount function returns a momentary value, which can be changed at any moment.
- Returns:
Returns the current counter value.
Public Static Attributes
-
static ::sdv::interface_id _id = 0x8E5315B6428769CA#
Interface ID.
-
virtual void Increment() = 0#