Deki 1.3.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches

Base class for type-erased ObjectRef access (used by engine). More...

#include <ObjectRef.h>

Inherited by ObjectRef< T >.

Public Member Functions

bool IsValid () const
bool IsResolved () const
void Set (DekiObject *obj)
 Set the reference to an object (runtime assignment).
void Set (DekiObject *obj, uint32_t typeId)
 Set the reference to a specific component on an object.

Public Attributes

uint32_t id = 0
uint32_t componentTypeId = 0
DekiObjectresolved = nullptr

Detailed Description

Base class for type-erased ObjectRef access (used by engine).

Member Function Documentation

◆ IsValid()

bool ObjectRefBase::IsValid ( ) const
inline

◆ IsResolved()

bool ObjectRefBase::IsResolved ( ) const
inline

◆ Set() [1/2]

void ObjectRefBase::Set ( DekiObject * obj)
inline

Set the reference to an object (runtime assignment).

Parameters
objThe object to reference, or nullptr to clear

◆ Set() [2/2]

void ObjectRefBase::Set ( DekiObject * obj,
uint32_t typeId )
inline

Set the reference to a specific component on an object.

Parameters
objThe object to reference, or nullptr to clear
typeIdThe component type ID to target

Member Data Documentation

◆ id

uint32_t ObjectRefBase::id = 0

◆ componentTypeId

uint32_t ObjectRefBase::componentTypeId = 0

◆ resolved

DekiObject* ObjectRefBase::resolved = nullptr

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