theLink 10.0
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 MkTypeDefS-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 MkTypeDefS-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 MkTypeDefS-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 MkTypeDefS-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 MkTypeDefS *) MqFactoryCTT )
 class as MkTypeDefS-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 ^ (12u<<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 3269 of file LibMqMsgque_mq.h.

◆ MqFactoryC_MASK

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

Definition at line 3199 of file LibMqMsgque_mq.h.

◆ MqFactoryC_NS

#define MqFactoryC_NS   MQ

map class to namespace …

Definition at line 3237 of file LibMqMsgque_mq.h.

◆ MqFactoryC_SIGNATURE

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

Definition at line 3198 of file LibMqMsgque_mq.h.

◆ MqFactoryC_T

#define MqFactoryC_T   (&MQ_RT_REF._MqFactoryC_T)

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

Definition at line 3221 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 3223 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 3229 of file LibMqMsgque_mq.h.

◆ MqFactoryC_X2fct

#define MqFactoryC_X2fct ( x)
Value:
(x)

Definition at line 3207 of file LibMqMsgque_mq.h.

◆ MqFactoryC_X2obj

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

Definition at line 3208 of file LibMqMsgque_mq.h.

◆ MqFactoryCT

#define MqFactoryCT   ( (struct MkTypeDefS *) MqFactoryCTT )

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

Definition at line 3241 of file LibMqMsgque_mq.h.

◆ MqFactoryCT_TT

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

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

Definition at line 3235 of file LibMqMsgque_mq.h.

◆ MqFactoryCT_X

#define MqFactoryCT_X ( instance)
Value:
( (struct MkTypeDefS *) (MkOBJ_R(instance).type) )
#define MkOBJ_R(x)

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

Definition at line 3231 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 3239 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 3233 of file LibMqMsgque_mq.h.

◆ MqFactoryST

#define MqFactoryST   MqFactoryC_T

instance-type as MkTypeDefS-class-type …

Definition at line 3225 of file LibMqMsgque_mq.h.

◆ MqFactorySTT

#define MqFactorySTT   (MkTYP(MqFactoryST))

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

Definition at line 3227 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 3302 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 3300 of file LibMqMsgque_mq.h.

◆ MqFctRaise

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

raise an error if class-instance is not valid

Definition at line 3294 of file LibMqMsgque_mq.h.

3294 #define MqFctRaise(_fct) if (!_MkCheckX(MqFactoryC,_fct)) { \
3295 MkErrorSetC_1E("'MqFactoryC' hdl is NULL"); \
3296 goto error ; \
3297 }

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 3219 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 3217 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 3281 of file LibMqMsgque_mq.h.

3281 {
3282 return (MqFctCheck(mng) ? (MQ_FCT)mng : NULL);
3283 }
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 3256 of file LibMqMsgque_mq.h.

3256 {
3257 return MkSanitizeCheck(MqFactoryC,mng);
3258 }
#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 3264 of file LibMqMsgque_mq.h.

3264 {
3265 return MkSanitizeCheckO(MqFactoryC,obj);
3266 }
#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 3289 of file LibMqMsgque_mq.h.

3289 {
3290 return (MqFctCheck(mng) ? (MQ_FCTN)mng : NULL);
3291 }

◆ MqFctNP()

MQ_FCTN MqFctNP ( MK_MNGN mng)

Non-inline replacement for MqFctN

◆ MqFctP()

MQ_FCT MqFctP ( MK_MNG mng)

Non-inline replacement for MqFct