libmkkernel 9.0
Loading...
Searching...
No Matches
Data Fields
MkObjectS Struct Reference

object header … More...

#include <kernel_mk.h>

+ Collaboration diagram for MkObjectS:

Data Fields

MK_SIG signature
 should be the SIGNATURE
 
MK_INT refCount
 is THIS object in use?
 
MK_PTR self
 link between the managed object and the object in the target-programming-language
 
MK_TYP type
 link to the object type
 
MK_PTR env
 link to the object "runtime", set by selfCreate …
 
bool selfCreated
 if the self was created by selfCreate than it is an INTERNAL object …
 
MK_INT selfRefCount
 Delete the MkObjectS::self at the same MkObjectS::refCount as was created …
 
MK_RT objRt
 link to the kernel-runtime the instance was created in …
 
MK_RTEXT objRtExt
 link to the kernel-runtime-extension the instance was created in …
 
struct MkObjectProtectS obj_protect
 the protect is used to "protect" data set by pAllocCreate if the new object is later initialized with a type specific object-initialization …
 

Detailed Description

object header …

Definition at line 4442 of file kernel_mk.h.

Field Documentation

◆ env

MK_PTR MkObjectS::env

link to the object "runtime", set by selfCreate …

The runtime is the "Tcl_Interp" in tcl or the "JNIEnv" in java...

Definition at line 4454 of file kernel_mk.h.

◆ obj_protect

struct MkObjectProtectS MkObjectS::obj_protect

the protect is used to "protect" data set by pAllocCreate if the new object is later initialized with a type specific object-initialization …

Definition at line 4481 of file kernel_mk.h.

◆ objRt

MK_RT MkObjectS::objRt

link to the kernel-runtime the instance was created in …

Definition at line 4474 of file kernel_mk.h.

◆ objRtExt

MK_RTEXT MkObjectS::objRtExt

link to the kernel-runtime-extension the instance was created in …

Definition at line 4477 of file kernel_mk.h.

◆ refCount

MK_INT MkObjectS::refCount

is THIS object in use?

Definition at line 4446 of file kernel_mk.h.

◆ self

MK_PTR MkObjectS::self

link between the managed object and the object in the target-programming-language

Definition at line 4448 of file kernel_mk.h.

◆ selfCreated

bool MkObjectS::selfCreated

if the self was created by selfCreate than it is an INTERNAL object …

Attention
this is important if selfCreate/selfDelete using refCount.

Definition at line 4459 of file kernel_mk.h.

◆ selfRefCount

MK_INT MkObjectS::selfRefCount

Delete the MkObjectS::self at the same MkObjectS::refCount as was created …

‍example: MqReadU return an internal MkBufferC with refCount=1

This feature is used to call the SelfDelete from RefDecr even if MkObjectS::refCount > 0 and the MkTypeS::destructor is NOT called. Usually the SelfDelete is called ONLY at the MkTypeS::destructor.

Definition at line 4470 of file kernel_mk.h.

◆ signature

MK_SIG MkObjectS::signature

should be the SIGNATURE

Definition at line 4444 of file kernel_mk.h.

◆ type

MK_TYP MkObjectS::type

link to the object type

Definition at line 4450 of file kernel_mk.h.


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