libmkkernel 9.0
Loading...
Searching...
No Matches
Functions
MkObjectC_Introspection_C_API

Get information from the MkTypeS. More...

+ Collaboration diagram for MkObjectC_Introspection_C_API:

Functions

MK_OBJ MkObjectInstances (void)
 get head-instance from linked-list of MkObjectS type …
 
MK_OBJ MkObjectNext (MK_OBJ const obj)
 get next instance from linked-list of MkObjectS type
 
MK_OBJ MkObjectPrev (MK_OBJ const obj)
 get previous instance from linked-list of MkObjectS type
 

Detailed Description

Get information from the MkTypeS.

Get information about all instances created by class

The Introspection API is used to get information about the details of the instance and type implementation. Only the connection between type and instance is currently implemented.

Three methods are used to create an iteration over all avaialable instances of a type.

Example: a simple loop over all instances of class MkBufferC (language C++)

for (auto buf = MkBufferC::Instances(); buf != NULL; buf = buf->Next()) {
SendC(buf->ToString());
}

Function Documentation

◆ MkObjectInstances()

MK_OBJ MkObjectInstances ( void  )
inline

get head-instance from linked-list of MkObjectS type …

The head-instance is the last instance created.

Definition at line 13118 of file kernel_mk.h.

◆ MkObjectNext()

MK_OBJ MkObjectNext ( MK_OBJ const  obj)
inline

get next instance from linked-list of MkObjectS type

Definition at line 13124 of file kernel_mk.h.

◆ MkObjectPrev()

MK_OBJ MkObjectPrev ( MK_OBJ const  obj)
inline

get previous instance from linked-list of MkObjectS type

Definition at line 13129 of file kernel_mk.h.