Uniot Core
0.8.1
Loading...
Searching...
No Matches
uniot::ObjectRegisterRecord Class Reference

#include <ObjectRegisterRecord.h>

Inheritance diagram for uniot::ObjectRegisterRecord:
[legend]

Public Member Functions

 ObjectRegisterRecord (const ObjectRegisterRecord &)=delete
 Deleted copy constructor to prevent copying.
 
void operator= (const ObjectRegisterRecord &)=delete
 Deleted assignment operator to prevent copying.
 
 ObjectRegisterRecord ()
 Constructor that automatically registers this instance.
 
virtual ~ObjectRegisterRecord ()
 Destructor that automatically unregisters this instance.
 
- Public Member Functions inherited from uniot::IWithType
virtual type_id getTypeId () const =0
 Get the runtime type identifier for this object.
 

Static Public Member Functions

static bool exists (ObjectRegisterRecord *record)
 Checks if a record still exists in the registry.
 

Constructor & Destructor Documentation

◆ ObjectRegisterRecord() [1/2]

uniot::ObjectRegisterRecord::ObjectRegisterRecord ( const ObjectRegisterRecord & )
delete

Deleted copy constructor to prevent copying.

◆ ObjectRegisterRecord() [2/2]

uniot::ObjectRegisterRecord::ObjectRegisterRecord ( )
inline

Constructor that automatically registers this instance.

When an instance is created, it is added to a static registry of active ObjectRegisterRecord instances.

◆ ~ObjectRegisterRecord()

virtual uniot::ObjectRegisterRecord::~ObjectRegisterRecord ( )
inlinevirtual

Destructor that automatically unregisters this instance.

When an instance is destroyed, it is removed from the static registry of active ObjectRegisterRecord instances.

Member Function Documentation

◆ exists()

static bool uniot::ObjectRegisterRecord::exists ( ObjectRegisterRecord * record)
inlinestatic

Checks if a record still exists in the registry.

This static method verifies if a pointer to an ObjectRegisterRecord is still valid by checking if it exists in the registry of active instances.

Parameters
recordPointer to the record to check
Return values
trueRecord exists in the registry
falseRecord does not exist in the registry

◆ operator=()

void uniot::ObjectRegisterRecord::operator= ( const ObjectRegisterRecord & )
delete

Deleted assignment operator to prevent copying.


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