theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_Class_Define_C_API

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

+ Collaboration diagram for MkBufferListC_Class_Define_C_API:

MkBufferListC - type definition

typedef struct MkBufferListS libmkkernel::MkBufferListCR
 instance-struct-reference same as struct MkBufferListS, useable in a class-macro as: class##R
 
typedef const struct MkBufferListS libmkkernel::MkBufferListCNR
 const instance-struct-reference same as const struct MkBufferListS, useable in a class-macro as: class##R
 
#define MkBufferListC_T   (&MK_RT_REF._MkBufferListC_T)
 class as MkTypeDefS-class-type, useable in a class-macro as: class##_T
 
#define MkBufferListC_TT   (MkTYP(MkBufferListC_T))
 class as MkTypeS-class-type, useable in a class-macro as: class##_TT
 
#define MkBufferListST   MkBufferListC_T
 instance-type as MkTypeDefS-class-type …
 
#define MkBufferListSTT   (MkTYP(MkBufferListST))
 instance-type as MkTypeS-class-type (cast from MkBufferListST into MkTypeS) …
 
#define MkBufferListC_type   MK_BFL
 same as MkBufferListS but useable in a class-macro as: class##_type
 
#define MkBufferListCT_X(instance)
 cast from an instance into the MkTypeDefS-class-type …
 
#define MkBufferListCTT_X(instance)
 cast from an instance into the MkTypeS-class-type …
 
#define MkBufferListCT_TT(typ)
 cast from an MkTypeS-class-type into an MkTypeDefS-class-type …
 
#define MkBufferListC_NS   MK
 map class to namespace …
 
#define MkBufferListCTT   MkBufferListCTT
 class as MkTypeS-class-type for MkBufferListC in the Target-Programming-Language (TPL)
 
#define MkBufferListCT   ( (struct MkTypeDefS *) MkBufferListCTT )
 class as MkTypeDefS-class-type for MkBufferListC in the Target-Programming-Language (TPL)
 

MkBufferListC - signature check

static bool libmkkernel::MkBflCheck (MK_MNGN mng)
 check MkBufferListS -> libmkkernel::MkObjectS::signature
 
static bool libmkkernel::MkBflCheckO (MK_OBJN obj)
 check MkBufferListS -> libmkkernel::MkObjectS::signature
 
#define MkBufferListC_Check(mng)
 

MkBufferListC - cast from a defined or a undefined instance

static MK_BFL libmkkernel::MkBfl (MK_MNG mng)
 cast a unknown-object into an MkBufferListS pointer or NULL if not possible
 
static MK_BFLN libmkkernel::MkBflN (MK_MNGN mng)
 (const) cast a unknown-object into an MkBufferListS pointer or NULL if not possible
 
#define MkBflRaise(_bfl)
 raise an error if class-instance is not valid
 
#define MkBFL_R(x)
 cast a known-object into an MkBufferListS reference
 
#define MkBFL(x)
 cast a known-object into an MkBufferListS pointer
 

MkBufferListC - signature define

#define MkBufferListC_SIGNATURE   (MkObjectC_SIGNATURE ^ (2u<<10))
 
#define MkBufferListC_MASK   (((1u<<22)-1)<<10)
 

MkBufferListC - cast to superclass

#define MkBufferListC_X2bfl(x)
 
#define MkBufferListC_X2obj(x)
 

Detailed Description

MkBufferListC - low level definition, access and cast …

Macro Definition Documentation

◆ MkBFL

#define MkBFL ( x)
Value:
(&MkBFL_R(x))
#define MkBFL_R(x)
cast a known-object into an MkBufferListS reference

cast a known-object into an MkBufferListS pointer

Definition at line 206 of file MkBufferListC_def_mk.h.

◆ MkBFL_R

#define MkBFL_R ( x)
Value:
(*(x)).super.bfl

cast a known-object into an MkBufferListS reference

Definition at line 204 of file MkBufferListC_def_mk.h.

◆ MkBflRaise

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

raise an error if class-instance is not valid

Definition at line 198 of file MkBufferListC_def_mk.h.

198 #define MkBflRaise(_bfl) if (!_MkCheckX(MkBufferListC,_bfl)) { \
199 MkErrorSetC_1E("'MkBufferListC' hdl is NULL"); \
200 goto error ; \
201 }

◆ MkBufferListC_Check

#define MkBufferListC_Check ( mng)
Value:
MkBflCheck(mng)

Definition at line 173 of file MkBufferListC_def_mk.h.

◆ MkBufferListC_MASK

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

Definition at line 103 of file MkBufferListC_def_mk.h.

◆ MkBufferListC_NS

#define MkBufferListC_NS   MK

map class to namespace …

Definition at line 141 of file MkBufferListC_def_mk.h.

◆ MkBufferListC_SIGNATURE

#define MkBufferListC_SIGNATURE   (MkObjectC_SIGNATURE ^ (2u<<10))

Definition at line 102 of file MkBufferListC_def_mk.h.

◆ MkBufferListC_T

#define MkBufferListC_T   (&MK_RT_REF._MkBufferListC_T)

class as MkTypeDefS-class-type, useable in a class-macro as: class##_T

Definition at line 125 of file MkBufferListC_def_mk.h.

◆ MkBufferListC_TT

#define MkBufferListC_TT   (MkTYP(MkBufferListC_T))

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

Definition at line 127 of file MkBufferListC_def_mk.h.

◆ MkBufferListC_type

#define MkBufferListC_type   MK_BFL

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

Definition at line 133 of file MkBufferListC_def_mk.h.

◆ MkBufferListC_X2bfl

#define MkBufferListC_X2bfl ( x)
Value:
(x)

Definition at line 111 of file MkBufferListC_def_mk.h.

◆ MkBufferListC_X2obj

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

Definition at line 112 of file MkBufferListC_def_mk.h.

◆ MkBufferListCT

#define MkBufferListCT   ( (struct MkTypeDefS *) MkBufferListCTT )

class as MkTypeDefS-class-type for MkBufferListC in the Target-Programming-Language (TPL)

Definition at line 145 of file MkBufferListC_def_mk.h.

◆ MkBufferListCT_TT

#define MkBufferListCT_TT ( typ)
Value:
( (struct MkTypeDefS *) (typ) )

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

Definition at line 139 of file MkBufferListC_def_mk.h.

◆ MkBufferListCT_X

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

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

Definition at line 135 of file MkBufferListC_def_mk.h.

◆ MkBufferListCTT

#define MkBufferListCTT   MkBufferListCTT

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

Definition at line 143 of file MkBufferListC_def_mk.h.

◆ MkBufferListCTT_X

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

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

Definition at line 137 of file MkBufferListC_def_mk.h.

◆ MkBufferListST

#define MkBufferListST   MkBufferListC_T

instance-type as MkTypeDefS-class-type …

Definition at line 129 of file MkBufferListC_def_mk.h.

◆ MkBufferListSTT

#define MkBufferListSTT   (MkTYP(MkBufferListST))

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

Definition at line 131 of file MkBufferListC_def_mk.h.

Typedef Documentation

◆ MkBufferListCNR

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

Definition at line 123 of file MkBufferListC_def_mk.h.

◆ MkBufferListCR

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

Definition at line 121 of file MkBufferListC_def_mk.h.

Function Documentation

◆ MkBfl()

static MK_BFL libmkkernel::MkBfl ( MK_MNG mng)
inlinestatic

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

Definition at line 185 of file MkBufferListC_def_mk.h.

185 {
186 return (MkBflCheck(mng) ? (MK_BFL)mng : NULL);
187 }
static bool MkBflCheck(MK_MNGN mng)
check MkBufferListS -> libmkkernel::MkObjectS::signature …
+ Here is the caller graph for this function:

◆ MkBflCheck()

static bool libmkkernel::MkBflCheck ( MK_MNGN mng)
inlinestatic

check MkBufferListS -> libmkkernel::MkObjectS::signature

Returns
TRUE on valid bfl and FALSE an invalid bfl

Definition at line 160 of file MkBufferListC_def_mk.h.

160 {
161 return MkSanitizeCheck(MkBufferListC,mng);
162 }
#define MkSanitizeCheck(_root, _m)
+ Here is the caller graph for this function:

◆ MkBflCheckO()

static bool libmkkernel::MkBflCheckO ( MK_OBJN obj)
inlinestatic

check MkBufferListS -> libmkkernel::MkObjectS::signature

Returns
TRUE on valid bfl and FALSE an invalid bfl

Definition at line 168 of file MkBufferListC_def_mk.h.

168 {
169 return MkSanitizeCheckO(MkBufferListC,obj);
170 }
#define MkSanitizeCheckO(_root, _o)
+ Here is the caller graph for this function:

◆ MkBflN()

static MK_BFLN libmkkernel::MkBflN ( MK_MNGN mng)
inlinestatic

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

Definition at line 193 of file MkBufferListC_def_mk.h.

193 {
194 return (MkBflCheck(mng) ? (MK_BFLN)mng : NULL);
195 }