theKernel 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
libmkkernel::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 libmkkernel::MkTypeS:

Public Attributes

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 3947 of file LibMkKernel_mk.h.

Member Data Documentation

◆ constructor

MkConstructorF libmkkernel::MkTypeS::constructor

create an object

Definition at line 3972 of file LibMkKernel_mk.h.

◆ copy

MkCopyF libmkkernel::MkTypeS::copy

"copy"

Definition at line 3977 of file LibMkKernel_mk.h.

◆ delCbCnt

MK_I32 libmkkernel::MkTypeS::delCbCnt

number of callback registered for this type

Definition at line 3984 of file LibMkKernel_mk.h.

◆ destructor

MkDestructorF libmkkernel::MkTypeS::destructor

delete an object

Definition at line 3973 of file LibMkKernel_mk.h.

◆ dup

MkDupF libmkkernel::MkTypeS::dup

"dup" constructor

Definition at line 3974 of file LibMkKernel_mk.h.

◆ dup2

MkDup2F libmkkernel::MkTypeS::dup2

"dup" constructor with "ident" initialisation

Definition at line 3975 of file LibMkKernel_mk.h.

◆ fLogFormat

MkLogFormatF libmkkernel::MkTypeS::fLogFormat

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

Definition at line 3982 of file LibMkKernel_mk.h.

◆ instancesR

MK_OBJ libmkkernel::MkTypeS::instancesR

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

Definition at line 3987 of file LibMkKernel_mk.h.

◆ log

MkLogF libmkkernel::MkTypeS::log

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

Definition at line 3971 of file LibMkKernel_mk.h.

◆ merge

MkMergeF libmkkernel::MkTypeS::merge

"merge" constructor

Definition at line 3976 of file LibMkKernel_mk.h.

◆ noSelf

bool libmkkernel::MkTypeS::noSelf

do NOT use the self feature -> used by MqFactoryS

Definition at line 3961 of file LibMkKernel_mk.h.

◆ obj

struct MkObjectS libmkkernel::MkTypeS::obj

Definition at line 3951 of file LibMkKernel_mk.h.

◆ objalloc

struct MkAllocDefS libmkkernel::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 3986 of file LibMkKernel_mk.h.

◆ objmask

MK_SIG libmkkernel::MkTypeS::objmask

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

Definition at line 3960 of file LibMkKernel_mk.h.

◆ objsig

MK_SIG libmkkernel::MkTypeS::objsig

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

Definition at line 3959 of file LibMkKernel_mk.h.

◆ objsize

size_t libmkkernel::MkTypeS::objsize

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

Definition at line 3963 of file LibMkKernel_mk.h.

◆ reset

MkResetF libmkkernel::MkTypeS::reset

"reset" the object to the "initial" state

Definition at line 3978 of file LibMkKernel_mk.h.

◆ selfCreate

MkSelfCreateF libmkkernel::MkTypeS::selfCreate

"create" the "self" pointer

Definition at line 3979 of file LibMkKernel_mk.h.

◆ selfDelete

MkSelfDeleteF libmkkernel::MkTypeS::selfDelete

"delete" the "self" pointer

Definition at line 3980 of file LibMkKernel_mk.h.

◆ selfUnlink

MkSelfUnlinkF libmkkernel::MkTypeS::selfUnlink

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

Definition at line 3981 of file LibMkKernel_mk.h.

◆ [union]

union { ... } libmkkernel::MkTypeS::super

◆ toString

MkToStringF libmkkernel::MkTypeS::toString

get the string representation

Definition at line 3970 of file LibMkKernel_mk.h.

◆ type_base

MK_TYP libmkkernel::MkTypeS::type_base

base type

Definition at line 3962 of file LibMkKernel_mk.h.

◆ type_class

MK_TYP libmkkernel::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 3994 of file LibMkKernel_mk.h.

◆ type_id

MK_I32 libmkkernel::MkTypeS::type_id

default "0" but "MkFactoryTypeAdd" need more

Definition at line 3966 of file LibMkKernel_mk.h.

◆ type_init

MkTypeInitF libmkkernel::MkTypeS::type_init

initializer for new type

Definition at line 3967 of file LibMkKernel_mk.h.

◆ type_name

MK_STRB libmkkernel::MkTypeS::type_name[MkTypeS_name_size]

public name of the type like TclMqContextC

Definition at line 3958 of file LibMkKernel_mk.h.

◆ typsize

size_t libmkkernel::MkTypeS::typsize

the size of the this type self, used in MkTypeDup2

Definition at line 3964 of file LibMkKernel_mk.h.


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