theLink 10.0
Loading...
Searching...
No Matches
MqRuntimeC_Class_Define_C_API

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

+ Collaboration diagram for MqRuntimeC_Class_Define_C_API:

MqRuntimeC - type definition

typedef struct MqRuntimeS MqRuntimeCR
 instance-struct-reference same as struct MqRuntimeS, useable in a class-macro as: class##R
 
typedef const struct MqRuntimeS MqRuntimeCNR
 const instance-struct-reference same as const struct MqRuntimeS, useable in a class-macro as: class##R
 
#define MqRuntimeC_T   (&MQ_RT_REF._MqRuntimeC_T)
 class as MkTypeDefS-class-type, useable in a class-macro as: class##_T
 
#define MqRuntimeC_TT   (MkTYP(MqRuntimeC_T))
 class as MkTypeS-class-type, useable in a class-macro as: class##_TT
 
#define MqRuntimeST   MqRuntimeC_T
 instance-type as MkTypeDefS-class-type …
 
#define MqRuntimeSTT   (MkTYP(MqRuntimeST))
 instance-type as MkTypeS-class-type (cast from MqRuntimeST into MkTypeS) …
 
#define MqRuntimeC_type   MQ_RT
 same as MqRuntimeS but useable in a class-macro as: class##_type
 
#define MqRuntimeCT_X(instance)
 cast from an instance into the MkTypeDefS-class-type …
 
#define MqRuntimeCTT_X(instance)
 cast from an instance into the MkTypeS-class-type …
 
#define MqRuntimeCT_TT(typ)
 cast from an MkTypeS-class-type into an MkTypeDefS-class-type …
 
#define MqRuntimeC_NS   MQ
 map class to namespace …
 
#define MqRuntimeCTT   MqRuntimeCTT
 class as MkTypeS-class-type for MqRuntimeC in the Target-Programming-Language (TPL)
 
#define MqRuntimeCT   ( (struct MkTypeDefS *) MqRuntimeCTT )
 class as MkTypeDefS-class-type for MqRuntimeC in the Target-Programming-Language (TPL)
 

MqRuntimeC - signature check

static bool MqRtCheck (MK_MNGN mng)
 check MqRuntimeS -> MkObjectS::signature
 
static bool MqRtCheckO (MK_OBJN obj)
 check MqRuntimeS -> MkObjectS::signature
 
#define MqRuntimeC_Check(mng)
 

MqRuntimeC - cast from a defined or a undefined instance

static MQ_RT MqRt (MK_MNG mng)
 cast a unknown-object into an MqRuntimeS pointer or NULL if not possible
 
static MQ_RTN MqRtN (MK_MNGN mng)
 (const) cast a unknown-object into an MqRuntimeS pointer or NULL if not possible
 
#define MqRtRaise(_rt)
 raise an error if class-instance is not valid
 

MqRuntimeC - signature define

#define MqRuntimeC_SIGNATURE   (MkRtExtC_SIGNATURE ^ (1u<<3))
 
#define MqRuntimeC_MASK   (((1u<<29)-1)<<3)
 

MqRuntimeC - cast to superclass

#define MqRuntimeC_X2rt(x)
 
#define MqRuntimeC_X2rtext(x)
 
#define MqRuntimeC_X2ext(x)
 
#define MqRuntimeC_X2obj(x)
 

Detailed Description

MqRuntimeS - low level definition, access and cast …

Macro Definition Documentation

◆ MqRtRaise

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

raise an error if class-instance is not valid

Definition at line 9344 of file LibMqMsgque_mq.h.

9344 #define MqRtRaise(_rt) if (!_MkCheckX(MqRuntimeC,_rt)) { \
9345 MkErrorSetC_1E("'MqRuntimeC' hdl is NULL"); \
9346 goto error ; \
9347 }

◆ MqRuntimeC_Check

#define MqRuntimeC_Check ( mng)
Value:
static bool MqRtCheck(MK_MNGN mng)
check MqRuntimeS -> MkObjectS::signature …

Definition at line 9319 of file LibMqMsgque_mq.h.

◆ MqRuntimeC_MASK

#define MqRuntimeC_MASK   (((1u<<29)-1)<<3)

Definition at line 9247 of file LibMqMsgque_mq.h.

◆ MqRuntimeC_NS

#define MqRuntimeC_NS   MQ

map class to namespace …

Definition at line 9287 of file LibMqMsgque_mq.h.

◆ MqRuntimeC_SIGNATURE

#define MqRuntimeC_SIGNATURE   (MkRtExtC_SIGNATURE ^ (1u<<3))

Definition at line 9246 of file LibMqMsgque_mq.h.

◆ MqRuntimeC_T

#define MqRuntimeC_T   (&MQ_RT_REF._MqRuntimeC_T)

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

Definition at line 9271 of file LibMqMsgque_mq.h.

◆ MqRuntimeC_TT

#define MqRuntimeC_TT   (MkTYP(MqRuntimeC_T))

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

Definition at line 9273 of file LibMqMsgque_mq.h.

◆ MqRuntimeC_type

#define MqRuntimeC_type   MQ_RT

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

Definition at line 9279 of file LibMqMsgque_mq.h.

◆ MqRuntimeC_X2ext

#define MqRuntimeC_X2ext ( x)
Value:
#define MkEXT(x)

Definition at line 9257 of file LibMqMsgque_mq.h.

◆ MqRuntimeC_X2obj

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

Definition at line 9258 of file LibMqMsgque_mq.h.

◆ MqRuntimeC_X2rt

#define MqRuntimeC_X2rt ( x)
Value:
(x)

Definition at line 9255 of file LibMqMsgque_mq.h.

◆ MqRuntimeC_X2rtext

#define MqRuntimeC_X2rtext ( x)
Value:
#define MkRTEXT(x)

Definition at line 9256 of file LibMqMsgque_mq.h.

◆ MqRuntimeCT

#define MqRuntimeCT   ( (struct MkTypeDefS *) MqRuntimeCTT )

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

Definition at line 9291 of file LibMqMsgque_mq.h.

◆ MqRuntimeCT_TT

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

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

Definition at line 9285 of file LibMqMsgque_mq.h.

◆ MqRuntimeCT_X

#define MqRuntimeCT_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 9281 of file LibMqMsgque_mq.h.

◆ MqRuntimeCTT

#define MqRuntimeCTT   MqRuntimeCTT

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

Definition at line 9289 of file LibMqMsgque_mq.h.

◆ MqRuntimeCTT_X

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

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

Definition at line 9283 of file LibMqMsgque_mq.h.

◆ MqRuntimeST

#define MqRuntimeST   MqRuntimeC_T

instance-type as MkTypeDefS-class-type …

Definition at line 9275 of file LibMqMsgque_mq.h.

◆ MqRuntimeSTT

#define MqRuntimeSTT   (MkTYP(MqRuntimeST))

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

Definition at line 9277 of file LibMqMsgque_mq.h.

Typedef Documentation

◆ MqRuntimeCNR

typedef const struct MqRuntimeS MqRuntimeCNR

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

Definition at line 9269 of file LibMqMsgque_mq.h.

◆ MqRuntimeCR

typedef struct MqRuntimeS MqRuntimeCR

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

Definition at line 9267 of file LibMqMsgque_mq.h.

Function Documentation

◆ MqRt()

static MQ_RT MqRt ( MK_MNG mng)
inlinestatic

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

Definition at line 9331 of file LibMqMsgque_mq.h.

9331 {
9332 return (MqRtCheck(mng) ? (MQ_RT)mng : NULL);
9333 }
Extend the MkRuntimeS wie libmqmsgque specific features …

◆ MqRtCheck()

static bool MqRtCheck ( MK_MNGN mng)
inlinestatic

check MqRuntimeS -> MkObjectS::signature

Returns
TRUE on valid rt and FALSE an invalid rt

Definition at line 9306 of file LibMqMsgque_mq.h.

9306 {
9307 return MkSanitizeCheck(MqRuntimeC,mng);
9308 }
#define MkSanitizeCheck(_root, _m)
+ Here is the caller graph for this function:

◆ MqRtCheckO()

static bool MqRtCheckO ( MK_OBJN obj)
inlinestatic

check MqRuntimeS -> MkObjectS::signature

Returns
TRUE on valid rt and FALSE an invalid rt

Definition at line 9314 of file LibMqMsgque_mq.h.

9314 {
9315 return MkSanitizeCheckO(MqRuntimeC,obj);
9316 }
#define MkSanitizeCheckO(_root, _o)

◆ MqRtN()

static MQ_RTN MqRtN ( MK_MNGN mng)
inlinestatic

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

Definition at line 9339 of file LibMqMsgque_mq.h.

9339 {
9340 return (MqRtCheck(mng) ? (MQ_RTN)mng : NULL);
9341 }