theKernel 10.0
Loading...
Searching...
No Matches
MkTypeS Struct Reference

MkTypeS - class known as typ or type is used as class-base for a Managed-Object-Technology (MOT) type … More...

#include <LibMkKernel_mk.h>

+ Collaboration diagram for MkTypeS:

Data Fields

union { 
 
   struct MkObjectS   obj 
 
super 
 
MK_STRB type_name [MkTypeS_name_size]
 public name of the type like TclMqContextC
 
MK_SIG objsig
 type-instance: signature as unsinged integer (32bit)
 
MK_SIG objmask
 type-instance: mask to filter out the valid part of the signatur
 
bool noSelf
 do NOT use the self feature -> used by MqFactoryS
 
MK_TYP type_base
 base type
 
size_t objsize
 the size of the new object created with this type, used in malloc
 
size_t typsize
 the size of the this type self, used in MkTypeDup2
 
MK_I32 type_id
 default "0" but "MkFactoryTypeAdd" need more
 
MkTypeInitF type_init
 initializer for new type
 
MkToStringF toString
 get the string representation
 
MkLogF log
 "log" object data to MkLogFileC (default: stderr)
 
MkConstructorF constructor
 create an object
 
MkDestructorF destructor
 delete an object
 
MkDupF dup
 "dup" constructor
 
MkDup2F dup2
 "dup" constructor with "ident" initialisation
 
MkMergeF merge
 "merge" constructor
 
MkCopyF copy
 "copy"
 
MkResetF reset
 "reset" the object to the "initial" state
 
MkSelfCreateF selfCreate
 "create" the "self" pointer
 
MkSelfDeleteF selfDelete
 "delete" the "self" pointer
 
MkSelfUnlinkF selfUnlink
 "unlink" the "self" pointer from META-Kernel
 
MkLogFormatF fLogFormat
 format the log message of an object, used in "sLogVL_O"
 
MK_I32 delCbCnt
 number of callback registered for this type
 
struct MkAllocDefS objalloc
 define the storage-allocator function
 
MK_OBJ instancesR
 
MK_TYP type_class
 point to the instancesR linked list of the class-type
 

Detailed Description

MkTypeS - class known as typ or type is used as class-base for a Managed-Object-Technology (MOT) type …

See also
MkTypeC_C_API

Definition at line 3945 of file LibMkKernel_mk.h.

Field Documentation

◆ constructor

MkConstructorF MkTypeS::constructor

create an object

Definition at line 3970 of file LibMkKernel_mk.h.

◆ copy

MkCopyF MkTypeS::copy

"copy"

Definition at line 3975 of file LibMkKernel_mk.h.

◆ delCbCnt

MK_I32 MkTypeS::delCbCnt

number of callback registered for this type

Definition at line 3982 of file LibMkKernel_mk.h.

◆ destructor

MkDestructorF MkTypeS::destructor

delete an object

Definition at line 3971 of file LibMkKernel_mk.h.

◆ dup

MkDupF MkTypeS::dup

"dup" constructor

Definition at line 3972 of file LibMkKernel_mk.h.

◆ dup2

MkDup2F MkTypeS::dup2

"dup" constructor with "ident" initialisation

Definition at line 3973 of file LibMkKernel_mk.h.

◆ fLogFormat

MkLogFormatF MkTypeS::fLogFormat

format the log message of an object, used in "sLogVL_O"

Definition at line 3980 of file LibMkKernel_mk.h.

◆ instancesR

MK_OBJ MkTypeS::instancesR

linked list of instances belong to type (only used for class-type)

Definition at line 3985 of file LibMkKernel_mk.h.

◆ log

MkLogF MkTypeS::log

"log" object data to MkLogFileC (default: stderr)

Definition at line 3969 of file LibMkKernel_mk.h.

◆ merge

MkMergeF MkTypeS::merge

"merge" constructor

Definition at line 3974 of file LibMkKernel_mk.h.

◆ noSelf

bool MkTypeS::noSelf

do NOT use the self feature -> used by MqFactoryS

Definition at line 3959 of file LibMkKernel_mk.h.

◆ obj

struct MkObjectS MkTypeS::obj

Definition at line 3949 of file LibMkKernel_mk.h.

◆ objalloc

struct MkAllocDefS MkTypeS::objalloc

define the storage-allocator function

The alloc_data is used as storage for the allocator-data and is set at definition. The alloc_createF and alloc_deleteF function is a pointer, MK_NULL or 0x1

  • pointer -> use this pointer as external memory allocator
  • NULL -> use default MkSysCalloc MkSysFree
  • 0x1 -> use the MkTypeAllocpAllocCreatepAllocMemGet to use predefined storage with input from alloc_data attribute
Attention
, The alloc_createF HAVE TO set the MkObjectS::obj_protectisLocal to the value true (default: false) if the memory is static and must not be freed.

Definition at line 3984 of file LibMkKernel_mk.h.

◆ objmask

MK_SIG MkTypeS::objmask

type-instance: mask to filter out the valid part of the signatur

Definition at line 3958 of file LibMkKernel_mk.h.

◆ objsig

MK_SIG MkTypeS::objsig

type-instance: signature as unsinged integer (32bit)

Definition at line 3957 of file LibMkKernel_mk.h.

◆ objsize

size_t MkTypeS::objsize

the size of the new object created with this type, used in malloc

Definition at line 3961 of file LibMkKernel_mk.h.

◆ reset

MkResetF MkTypeS::reset

"reset" the object to the "initial" state

Definition at line 3976 of file LibMkKernel_mk.h.

◆ selfCreate

MkSelfCreateF MkTypeS::selfCreate

"create" the "self" pointer

Definition at line 3977 of file LibMkKernel_mk.h.

◆ selfDelete

MkSelfDeleteF MkTypeS::selfDelete

"delete" the "self" pointer

Definition at line 3978 of file LibMkKernel_mk.h.

◆ selfUnlink

MkSelfUnlinkF MkTypeS::selfUnlink

"unlink" the "self" pointer from META-Kernel

Definition at line 3979 of file LibMkKernel_mk.h.

◆ [union]

union { ... } MkTypeS::super

◆ toString

MkToStringF MkTypeS::toString

get the string representation

Definition at line 3968 of file LibMkKernel_mk.h.

◆ type_base

MK_TYP MkTypeS::type_base

base type

Definition at line 3960 of file LibMkKernel_mk.h.

◆ type_class

MK_TYP MkTypeS::type_class

point to the instancesR linked list of the class-type

The type_class and the type_base serve the same purpose; they both point to the parent-type. The difference is that the type_base points to the direct-parent, while the type_class points to the class-parent. An class is a construct that manages type instances and is thus superior in functionality to the simple type.

Definition at line 3992 of file LibMkKernel_mk.h.

◆ type_id

MK_I32 MkTypeS::type_id

default "0" but "MkFactoryTypeAdd" need more

Definition at line 3964 of file LibMkKernel_mk.h.

◆ type_init

MkTypeInitF MkTypeS::type_init

initializer for new type

Definition at line 3965 of file LibMkKernel_mk.h.

◆ type_name

MK_STRB MkTypeS::type_name[MkTypeS_name_size]

public name of the type like TclMqContextC

Definition at line 3956 of file LibMkKernel_mk.h.

◆ typsize

size_t MkTypeS::typsize

the size of the this type self, used in MkTypeDup2

Definition at line 3962 of file LibMkKernel_mk.h.


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