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

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

+ Collaboration diagram for MqFactoryC_Class_Define_C_API:

MqFactoryC - type definition

typedef struct MqFactoryS MqFactoryCR
 instance-struct-reference same as struct MqFactoryS, useable in a class-macro as: class##R
 
typedef const struct MqFactoryS MqFactoryCNR
 const instance-struct-reference same as const struct MqFactoryS, useable in a class-macro as: class##R
 
#define MqFactoryC_T   (&MQ_RT_REF._MqFactoryC_T)
 class as MkSuperTypeS-class-type, useable in a class-macro as: class##_T
 
#define MqFactoryC_TT   (MkTYP(MqFactoryC_T))
 class as MkTypeS-class-type, useable in a class-macro as: class##_TT
 
#define MqFactoryST   MqFactoryC_T
 instance-type as MkSuperTypeS-class-type …
 
#define MqFactorySTT   (MkTYP(MqFactoryST))
 instance-type as MkTypeS-class-type (cast from MqFactoryST into MkTypeS) …
 
#define MqFactoryC_type   MQ_FCT
 same as MqFactoryS but useable in a class-macro as: class##_type
 
#define MqFactoryCT_X(instance)
 cast from an instance into the MkSuperTypeS-class-type …
 
#define MqFactoryCTT_X(instance)
 cast from an instance into the MkTypeS-class-type …
 
#define MqFactoryCT_TT(typ)
 cast from an MkTypeS-class-type into an MkSuperTypeS-class-type …
 
#define MqFactoryC_NS   MQ
 map class to namespace …
 
#define MqFactoryCTT   MqFactoryCTT
 class as MkTypeS-class-type for MqFactoryC in the Target-Programming-Language (TPL)
 
#define MqFactoryCT   ( (struct MkSuperTypeS *) MqFactoryCTT )
 class as MkSuperTypeS-class-type for MqFactoryC in the Target-Programming-Language (TPL)
 

MqFactoryC - signature check

static bool MqFctCheck (MK_MNGN mng)
 check MqFactoryS -> MkObjectS::signature
 
static bool MqFctCheckO (MK_OBJN obj)
 check MqFactoryS -> MkObjectS::signature
 
#define MqFactoryC_Check(mng)
 

MqFactoryC - cast from a defined or a undefined instance

static MQ_FCT MqFct (MK_MNG mng)
 cast a unknown-object into an MqFactoryS pointer or NULL if not possible
 
static MQ_FCTN MqFctN (MK_MNGN mng)
 (const) cast a unknown-object into an MqFactoryS pointer or NULL if not possible
 
#define MqFctRaise(_fct)
 raise an error if class-instance is not valid
 
#define MqFCT_R(x)
 cast a known-object into an MqFactoryS reference
 
#define MqFCT(x)
 cast a known-object into an MqFactoryS pointer
 

MqFactoryC - MqFactoryC_Class_Define_C_API - function

MQ_FCT MqFctP (MK_MNG mng)
 Non-inline replacement for MqFct
 
MK_BOOL MqFctCheckP (MK_MNGN mng)
 Non-inline replacement for MqFctCheck
 
MK_BOOL MqFctCheckOP (MK_OBJN obj)
 Non-inline replacement for MqFctCheckO
 
MQ_FCTN MqFctNP (MK_MNGN mng)
 Non-inline replacement for MqFctN
 

MqFactoryC - signature define

#define MqFactoryC_SIGNATURE   (MkObjectC_SIGNATURE ^ (13u<<10))
 
#define MqFactoryC_MASK   (((1u<<22)-1)<<10)
 

MqFactoryC - cast to superclass

#define MqFactoryC_X2fct(x)
 
#define MqFactoryC_X2obj(x)
 

Detailed Description

MqFactoryC - low level definition, access and cast …

Macro Definition Documentation

◆ MqFactoryC_Check

#define MqFactoryC_Check ( mng)
Value:
static bool MqFctCheck(MK_MNGN mng)
check MqFactoryS -> MkObjectS::signature …

Definition at line 3226 of file LibMqMsgque_mq.h.

◆ MqFactoryC_MASK

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

Definition at line 3156 of file LibMqMsgque_mq.h.

◆ MqFactoryC_NS

#define MqFactoryC_NS   MQ

map class to namespace …

Definition at line 3194 of file LibMqMsgque_mq.h.

◆ MqFactoryC_SIGNATURE

#define MqFactoryC_SIGNATURE   (MkObjectC_SIGNATURE ^ (13u<<10))

Definition at line 3155 of file LibMqMsgque_mq.h.

◆ MqFactoryC_T

#define MqFactoryC_T   (&MQ_RT_REF._MqFactoryC_T)

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

Definition at line 3178 of file LibMqMsgque_mq.h.

◆ MqFactoryC_TT

#define MqFactoryC_TT   (MkTYP(MqFactoryC_T))

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

Definition at line 3180 of file LibMqMsgque_mq.h.

◆ MqFactoryC_type

#define MqFactoryC_type   MQ_FCT

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

Definition at line 3186 of file LibMqMsgque_mq.h.

◆ MqFactoryC_X2fct

#define MqFactoryC_X2fct ( x)
Value:
(x)

Definition at line 3164 of file LibMqMsgque_mq.h.

◆ MqFactoryC_X2obj

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

Definition at line 3165 of file LibMqMsgque_mq.h.

◆ MqFactoryCT

#define MqFactoryCT   ( (struct MkSuperTypeS *) MqFactoryCTT )

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

Definition at line 3198 of file LibMqMsgque_mq.h.

◆ MqFactoryCT_TT

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

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

Definition at line 3192 of file LibMqMsgque_mq.h.

◆ MqFactoryCT_X

#define MqFactoryCT_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 3188 of file LibMqMsgque_mq.h.

◆ MqFactoryCTT

#define MqFactoryCTT   MqFactoryCTT

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

Definition at line 3196 of file LibMqMsgque_mq.h.

◆ MqFactoryCTT_X

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

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

Definition at line 3190 of file LibMqMsgque_mq.h.

◆ MqFactoryST

#define MqFactoryST   MqFactoryC_T

instance-type as MkSuperTypeS-class-type …

Definition at line 3182 of file LibMqMsgque_mq.h.

◆ MqFactorySTT

#define MqFactorySTT   (MkTYP(MqFactoryST))

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

Definition at line 3184 of file LibMqMsgque_mq.h.

◆ MqFCT

#define MqFCT ( x)
Value:
(&MqFCT_R(x))
#define MqFCT_R(x)
cast a known-object into an MqFactoryS reference

cast a known-object into an MqFactoryS pointer

Definition at line 3259 of file LibMqMsgque_mq.h.

◆ MqFCT_R

#define MqFCT_R ( x)
Value:
(*(x)).super.fct

cast a known-object into an MqFactoryS reference

Definition at line 3257 of file LibMqMsgque_mq.h.

◆ MqFctRaise

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

raise an error if class-instance is not valid

Definition at line 3251 of file LibMqMsgque_mq.h.

3251 #define MqFctRaise(_fct) if (!_MkCheckX(MqFactoryC,_fct)) { \
3252 MkErrorSetC_1E("'MqFactoryC' hdl is NULL"); \
3253 goto error ; \
3254 }

Typedef Documentation

◆ MqFactoryCNR

typedef const struct MqFactoryS MqFactoryCNR

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

Definition at line 3176 of file LibMqMsgque_mq.h.

◆ MqFactoryCR

typedef struct MqFactoryS MqFactoryCR

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

Definition at line 3174 of file LibMqMsgque_mq.h.

Function Documentation

◆ MqFct()

static MQ_FCT MqFct ( MK_MNG mng)
inlinestatic

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

Definition at line 3238 of file LibMqMsgque_mq.h.

3238 {
3239 return (MqFctCheck(mng) ? (MQ_FCT)mng : NULL);
3240 }
data used to define a factory
+ Here is the caller graph for this function:

◆ MqFctCheck()

static bool MqFctCheck ( MK_MNGN mng)
inlinestatic

check MqFactoryS -> MkObjectS::signature

Returns
TRUE on valid fct and FALSE an invalid fct

Definition at line 3213 of file LibMqMsgque_mq.h.

3213 {
3214 return MkSanitizeCheck(MqFactoryC,mng);
3215 }
#define MkSanitizeCheck(_root, _m)
+ Here is the caller graph for this function:

◆ MqFctCheckO()

static bool MqFctCheckO ( MK_OBJN obj)
inlinestatic

check MqFactoryS -> MkObjectS::signature

Returns
TRUE on valid fct and FALSE an invalid fct

Definition at line 3221 of file LibMqMsgque_mq.h.

3221 {
3222 return MkSanitizeCheckO(MqFactoryC,obj);
3223 }
#define MkSanitizeCheckO(_root, _o)

◆ MqFctCheckOP()

MK_BOOL MqFctCheckOP ( MK_OBJN obj)

Non-inline replacement for MqFctCheckO

◆ MqFctCheckP()

MK_BOOL MqFctCheckP ( MK_MNGN mng)

Non-inline replacement for MqFctCheck

◆ MqFctN()

static MQ_FCTN MqFctN ( MK_MNGN mng)
inlinestatic

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

Definition at line 3246 of file LibMqMsgque_mq.h.

3246 {
3247 return (MqFctCheck(mng) ? (MQ_FCTN)mng : NULL);
3248 }

◆ MqFctNP()

MQ_FCTN MqFctNP ( MK_MNGN mng)

Non-inline replacement for MqFctN

◆ MqFctP()

MQ_FCT MqFctP ( MK_MNG mng)

Non-inline replacement for MqFct