theKernel 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
MkTypeC_Class_Define_C_API

MkTypeS - low level definition, access and cast … More...

+ Collaboration diagram for MkTypeC_Class_Define_C_API:

MkTypeC - type definition

typedef struct MkTypeS MkTypeCR
 instance-struct-reference same as struct MkTypeS, useable in a class-macro as: class##R
 
typedef const struct MkTypeS MkTypeCNR
 const instance-struct-reference same as const struct MkTypeS, useable in a class-macro as: class##R
 
#define MkTypeSTT   (&MK_RT_REF._MkTypeC_TT)
 instance-type as MkTypeS-class-type
 
#define MkTypeC_TT   (&MK_RT_REF._MkTypeC_TT)
 class as MkTypeS-class-type, useable in a class-macro as: class##_TT
 
#define MkTypeC_type   MK_TYP
 same as MkTypeS but useable in a class-macro as: class##_type
 
#define MkTypeCT_X(instance)
 cast from an instance into the MkTypeS-class-type …
 
#define MkTypeCTT_X(instance)
 cast from an instance into the MkTypeS-class-type …
 
#define MkTypeCT_TT(typ)
 cast from an MkTypeS-class-type into an MkTypeS-class-type …
 
#define MkTypeC_NS   MK
 map class to namespace …
 
#define MkTypeCTT   MkTypeCTT
 class as MkTypeS-class-type for MkTypeC in the Target-Programming-Language (TPL)
 
#define MkTypeCT   ( (struct MkTypeS *) MkTypeCTT )
 class as MkTypeS-class-type for MkTypeC in the Target-Programming-Language (TPL)
 

MkTypeC - signature check

static bool MkTypCheck (MK_MNGN mng)
 check MkTypeS -> MkObjectS::signature
 
static bool MkTypCheckO (MK_OBJN obj)
 check MkTypeS -> MkObjectS::signature
 
#define MkTypeC_Check(mng)
 

MkTypeC - signature define

#define MkTypeC_SIGNATURE   (MkObjectC_SIGNATURE ^ (11u<<10))
 
#define MkTypeC_MASK   (((1u<<22)-1)<<10)
 

MkTypeC - cast to superclass

#define MkTypeC_X2typ(x)
 
#define MkTypeC_X2obj(x)
 

Detailed Description

MkTypeS - low level definition, access and cast …

Macro Definition Documentation

◆ MkTypeC_Check

#define MkTypeC_Check ( mng)
Value:
static bool MkTypCheck(MK_MNGN mng)
check MkTypeS -> MkObjectS::signature …

Definition at line 4075 of file LibMkKernel_mk.h.

◆ MkTypeC_MASK

#define MkTypeC_MASK   (((1u<<22)-1)<<10)

Definition at line 4009 of file LibMkKernel_mk.h.

◆ MkTypeC_NS

#define MkTypeC_NS   MK

map class to namespace …

Definition at line 4043 of file LibMkKernel_mk.h.

◆ MkTypeC_SIGNATURE

#define MkTypeC_SIGNATURE   (MkObjectC_SIGNATURE ^ (11u<<10))

Definition at line 4008 of file LibMkKernel_mk.h.

◆ MkTypeC_TT

#define MkTypeC_TT   (&MK_RT_REF._MkTypeC_TT)

class as MkTypeS-class-type, useable in a class-macro as: class##_TT

Definition at line 4033 of file LibMkKernel_mk.h.

◆ MkTypeC_type

#define MkTypeC_type   MK_TYP

same as MkTypeS but useable in a class-macro as: class##_type

Definition at line 4035 of file LibMkKernel_mk.h.

◆ MkTypeC_X2obj

#define MkTypeC_X2obj ( x)
Value:
#define MkOBJ(x)
cast a known-object into an MkObjectS pointer

Definition at line 4018 of file LibMkKernel_mk.h.

◆ MkTypeC_X2typ

#define MkTypeC_X2typ ( x)
Value:
(x)

Definition at line 4017 of file LibMkKernel_mk.h.

◆ MkTypeCT

#define MkTypeCT   ( (struct MkTypeS *) MkTypeCTT )

class as MkTypeS-class-type for MkTypeC in the Target-Programming-Language (TPL)

Definition at line 4047 of file LibMkKernel_mk.h.

◆ MkTypeCT_TT

#define MkTypeCT_TT ( typ)
Value:
( (struct MkTypeS *) (typ) )
MkTypeS - class known as typ or type is used as class-base for a Managed-Object-Technology (MOT) type...

cast from an MkTypeS-class-type into an MkTypeS-class-type …

Definition at line 4041 of file LibMkKernel_mk.h.

◆ MkTypeCT_X

#define MkTypeCT_X ( instance)
Value:
( (struct MkTypeS *) (MkOBJ_R(instance).type) )
#define MkOBJ_R(x)
cast a known-object into an MkObjectS reference

cast from an instance into the MkTypeS-class-type …

Definition at line 4037 of file LibMkKernel_mk.h.

◆ MkTypeCTT

#define MkTypeCTT   MkTypeCTT

class as MkTypeS-class-type for MkTypeC in the Target-Programming-Language (TPL)

Definition at line 4045 of file LibMkKernel_mk.h.

◆ MkTypeCTT_X

#define MkTypeCTT_X ( instance)
Value:
(MkOBJ_R(instance).type)

cast from an instance into the MkTypeS-class-type …

Definition at line 4039 of file LibMkKernel_mk.h.

◆ MkTypeSTT

#define MkTypeSTT   (&MK_RT_REF._MkTypeC_TT)

instance-type as MkTypeS-class-type

Definition at line 4031 of file LibMkKernel_mk.h.

Typedef Documentation

◆ MkTypeCNR

typedef const struct MkTypeS MkTypeCNR

const instance-struct-reference same as const struct MkTypeS, useable in a class-macro as: class##R

Definition at line 4029 of file LibMkKernel_mk.h.

◆ MkTypeCR

typedef struct MkTypeS MkTypeCR

instance-struct-reference same as struct MkTypeS, useable in a class-macro as: class##R

Definition at line 4027 of file LibMkKernel_mk.h.

Function Documentation

◆ MkTypCheck()

static bool MkTypCheck ( MK_MNGN mng)
inlinestatic

check MkTypeS -> MkObjectS::signature

Returns
TRUE on valid typ and FALSE an invalid typ

Definition at line 4062 of file LibMkKernel_mk.h.

4062 {
4063 return MkSanitizeCheck(MkTypeC,mng);
4064 }
#define MkSanitizeCheck(_root, _m)
+ Here is the caller graph for this function:

◆ MkTypCheckO()

static bool MkTypCheckO ( MK_OBJN obj)
inlinestatic

check MkTypeS -> MkObjectS::signature

Returns
TRUE on valid typ and FALSE an invalid typ

Definition at line 4070 of file LibMkKernel_mk.h.

4070 {
4071 return MkSanitizeCheckO(MkTypeC,obj);
4072 }
#define MkSanitizeCheckO(_root, _o)