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

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

+ Collaboration diagram for LcConfigC_Class_Define_C_API:

LcConfigC - type definition

typedef struct LcConfigS LcConfigCR
 instance-struct-reference same as struct LcConfigS, useable in a class-macro as: class##R
 
typedef const struct LcConfigS LcConfigCNR
 const instance-struct-reference same as const struct LcConfigS, useable in a class-macro as: class##R
 
__thread MK_TYP LcConfigC_TT
 class as MkSuperTypeS-class-type …
 
#define LcConfigC_T   ( (struct MkSuperTypeS *) (LcConfigC_TT) )
 class as MkSuperTypeS-class-type (cast from LcConfigC_TT into MkTypeS) …
 
#define LcConfigST   LcConfigC_T
 instance-type as MkSuperTypeS-class-type …
 
#define LcConfigSTT   (MkTYP(LcConfigST))
 instance-type as MkTypeS-class-type (cast from LcConfigST into MkTypeS) …
 
#define LcConfigC_type   LC_CFG
 same as LcConfigS but useable in a class-macro as: class##_type
 
#define LcConfigCT_X(instance)
 cast from an instance into the MkSuperTypeS-class-type …
 
#define LcConfigCTT_X(instance)
 cast from an instance into the MkTypeS-class-type …
 
#define LcConfigCT_TT(typ)
 cast from an MkTypeS-class-type into an MkSuperTypeS-class-type …
 
#define LcConfigC_NS   LC
 map class to namespace …
 
#define LcConfigCTT   LcConfigCTT
 class as MkTypeS-class-type for LcConfigC in the Target-Programming-Language (TPL)
 
#define LcConfigCT   ( (struct MkSuperTypeS *) LcConfigCTT )
 class as MkSuperTypeS-class-type for LcConfigC in the Target-Programming-Language (TPL)
 

LcConfigC - signature check

static bool LcCfgCheck (MK_MNGN mng)
 check LcConfigS -> MkObjectS::signature
 
static bool LcCfgCheckO (MK_OBJN obj)
 check LcConfigS -> MkObjectS::signature
 
#define LcConfigC_Check(mng)
 

LcConfigC - cast from a defined or a undefined instance

static LC_CFG LcCfg (MK_MNG mng)
 cast a unknown-object into an LcConfigS pointer or NULL if not possible
 
static LC_CFGN LcCfgN (MK_MNGN mng)
 (const) cast a unknown-object into an LcConfigS pointer or NULL if not possible
 
#define LcCfgRaise(_cfg)
 raise an error if class-instance is not valid
 
#define LcCFG_R(x)
 cast a known-object into an LcConfigS reference
 
#define LcCFG(x)
 cast a known-object into an LcConfigS pointer
 

LcConfigC - LcConfigC_Class_Define_C_API - function

LC_CFG LcCfgP (MK_MNG mng)
 Non-inline replacement for LcCfg
 
MK_BOOL LcCfgCheckP (MK_MNGN mng)
 Non-inline replacement for LcCfgCheck
 
MK_BOOL LcCfgCheckOP (MK_OBJN obj)
 Non-inline replacement for LcCfgCheckO
 
LC_CFGN LcCfgNP (MK_MNGN mng)
 Non-inline replacement for LcCfgN
 

LcConfigC - signature define

#define LcConfigC_SIGNATURE   (MkObjectC_SIGNATURE ^ (15u<<10))
 
#define LcConfigC_MASK   (((1u<<22)-1)<<10)
 

LcConfigC - cast to superclass

#define LcConfigC_X2cfg(x)
 
#define LcConfigC_X2obj(x)
 

Detailed Description

LcConfigC - low level definition, access and cast …

Macro Definition Documentation

◆ LcCFG

#define LcCFG ( x)
Value:
(&LcCFG_R(x))
#define LcCFG_R(x)
cast a known-object into an LcConfigS reference

cast a known-object into an LcConfigS pointer

Definition at line 222 of file LcConfigC_def_lc.h.

◆ LcCFG_R

#define LcCFG_R ( x)
Value:
(*(x)).super.cfg

cast a known-object into an LcConfigS reference

Definition at line 220 of file LcConfigC_def_lc.h.

◆ LcCfgRaise

#define LcCfgRaise ( _cfg)
Value:
if (!_MkCheckX(LcConfigC,_cfg)) { \
MkErrorSetC_1E("'LcConfigC' hdl is NULL"); \
goto error ; \
}
#define _MkCheckX(cls, x)

raise an error if class-instance is not valid

Definition at line 214 of file LcConfigC_def_lc.h.

214 #define LcCfgRaise(_cfg) if (!_MkCheckX(LcConfigC,_cfg)) { \
215 MkErrorSetC_1E("'LcConfigC' hdl is NULL"); \
216 goto error ; \
217 }

◆ LcConfigC_Check

#define LcConfigC_Check ( mng)
Value:
static bool LcCfgCheck(MK_MNGN mng)
check LcConfigS -> MkObjectS::signature …

Definition at line 189 of file LcConfigC_def_lc.h.

◆ LcConfigC_MASK

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

Definition at line 119 of file LcConfigC_def_lc.h.

◆ LcConfigC_NS

#define LcConfigC_NS   LC

map class to namespace …

Definition at line 157 of file LcConfigC_def_lc.h.

◆ LcConfigC_SIGNATURE

#define LcConfigC_SIGNATURE   (MkObjectC_SIGNATURE ^ (15u<<10))

Definition at line 118 of file LcConfigC_def_lc.h.

◆ LcConfigC_T

#define LcConfigC_T   ( (struct MkSuperTypeS *) (LcConfigC_TT) )

class as MkSuperTypeS-class-type (cast from LcConfigC_TT into MkTypeS) …

Definition at line 143 of file LcConfigC_def_lc.h.

◆ LcConfigC_type

#define LcConfigC_type   LC_CFG

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

Definition at line 149 of file LcConfigC_def_lc.h.

◆ LcConfigC_X2cfg

#define LcConfigC_X2cfg ( x)
Value:
(x)

Definition at line 127 of file LcConfigC_def_lc.h.

◆ LcConfigC_X2obj

#define LcConfigC_X2obj ( x)
Value:
#define MkOBJ(x)

Definition at line 128 of file LcConfigC_def_lc.h.

◆ LcConfigCT

#define LcConfigCT   ( (struct MkSuperTypeS *) LcConfigCTT )

class as MkSuperTypeS-class-type for LcConfigC in the Target-Programming-Language (TPL)

Definition at line 161 of file LcConfigC_def_lc.h.

◆ LcConfigCT_TT

#define LcConfigCT_TT ( typ)
Value:
( (struct MkSuperTypeS *) (typ) )
struct MkTypeS typ

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

Definition at line 155 of file LcConfigC_def_lc.h.

◆ LcConfigCT_X

#define LcConfigCT_X ( instance)
Value:
( (struct MkSuperTypeS *) (MkOBJ_R(instance).type) )
#define MkOBJ_R(x)

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

Definition at line 151 of file LcConfigC_def_lc.h.

◆ LcConfigCTT

#define LcConfigCTT   LcConfigCTT

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

Definition at line 159 of file LcConfigC_def_lc.h.

◆ LcConfigCTT_X

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

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

Definition at line 153 of file LcConfigC_def_lc.h.

◆ LcConfigST

#define LcConfigST   LcConfigC_T

instance-type as MkSuperTypeS-class-type …

Definition at line 145 of file LcConfigC_def_lc.h.

◆ LcConfigSTT

#define LcConfigSTT   (MkTYP(LcConfigST))

instance-type as MkTypeS-class-type (cast from LcConfigST into MkTypeS) …

Definition at line 147 of file LcConfigC_def_lc.h.

Typedef Documentation

◆ LcConfigCNR

typedef const struct LcConfigS LcConfigCNR

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

Definition at line 139 of file LcConfigC_def_lc.h.

◆ LcConfigCR

typedef struct LcConfigS LcConfigCR

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

Definition at line 137 of file LcConfigC_def_lc.h.

Function Documentation

◆ LcCfg()

static LC_CFG LcCfg ( MK_MNG mng)
inlinestatic

cast a unknown-object into an LcConfigS pointer or NULL if not possible

Definition at line 201 of file LcConfigC_def_lc.h.

201 {
202 return (LcCfgCheck(mng) ? (LC_CFG)mng : NULL);
203 }
Struct to represent the data from the LcConfigC …
+ Here is the caller graph for this function:

◆ LcCfgCheck()

static bool LcCfgCheck ( MK_MNGN mng)
inlinestatic

check LcConfigS -> MkObjectS::signature

Returns
TRUE on valid cfg and FALSE an invalid cfg

Definition at line 176 of file LcConfigC_def_lc.h.

176 {
177 return MkSanitizeCheck(LcConfigC,mng);
178 }
#define MkSanitizeCheck(_root, _m)
+ Here is the caller graph for this function:

◆ LcCfgCheckO()

static bool LcCfgCheckO ( MK_OBJN obj)
inlinestatic

check LcConfigS -> MkObjectS::signature

Returns
TRUE on valid cfg and FALSE an invalid cfg

Definition at line 184 of file LcConfigC_def_lc.h.

184 {
185 return MkSanitizeCheckO(LcConfigC,obj);
186 }
#define MkSanitizeCheckO(_root, _o)

◆ LcCfgCheckOP()

MK_BOOL LcCfgCheckOP ( MK_OBJN obj)

Non-inline replacement for LcCfgCheckO

◆ LcCfgCheckP()

MK_BOOL LcCfgCheckP ( MK_MNGN mng)

Non-inline replacement for LcCfgCheck

◆ LcCfgN()

static LC_CFGN LcCfgN ( MK_MNGN mng)
inlinestatic

(const) cast a unknown-object into an LcConfigS pointer or NULL if not possible

Definition at line 209 of file LcConfigC_def_lc.h.

209 {
210 return (LcCfgCheck(mng) ? (LC_CFGN)mng : NULL);
211 }

◆ LcCfgNP()

LC_CFGN LcCfgNP ( MK_MNGN mng)

Non-inline replacement for LcCfgN

◆ LcCfgP()

LC_CFG LcCfgP ( MK_MNG mng)

Non-inline replacement for LcCfg

Variable Documentation

◆ LcConfigC_TT

__thread MK_TYP LcConfigC_TT
extern

class as MkSuperTypeS-class-type …