theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Class_Define_C_API

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

+ Collaboration diagram for MqContextC_Class_Define_C_API:

MqContextC - type definition

typedef struct MqContextS libmqmsgque::MqContextCR
 instance-struct-reference same as struct MqContextS, useable in a class-macro as: class##R
 
typedef const struct MqContextS libmqmsgque::MqContextCNR
 const instance-struct-reference same as const struct MqContextS, useable in a class-macro as: class##R
 
#define MqContextC_T   (&MQ_RT_REF._MqContextC_T)
 class as MqTypeCtxS-class-type, useable in a class-macro as: class##_T
 
#define MqContextC_TT   (MkTYP(MqContextC_T))
 class as MkTypeS-class-type, useable in a class-macro as: class##_TT
 
#define MqContextST   MqContextC_T
 instance-type as MqTypeCtxS-class-type …
 
#define MqContextSTT   (MkTYP(MqContextST))
 instance-type as MkTypeS-class-type (cast from MqContextST into MkTypeS) …
 
#define MqContextC_type   MQ_CTX
 same as MqContextS but useable in a class-macro as: class##_type
 
#define MqContextCT_X(instance)
 cast from an instance into the MqTypeCtxS-class-type …
 
#define MqContextCTT_X(instance)
 cast from an instance into the MkTypeS-class-type …
 
#define MqContextCT_TT(typ)
 cast from an MkTypeS-class-type into an MqTypeCtxS-class-type …
 
#define MqContextC_NS   MQ
 map class to namespace …
 
#define MqContextCTT   MqContextCTT
 class as MkTypeS-class-type for MqContextC in the Target-Programming-Language (TPL)
 
#define MqContextCT   ( (struct MqTypeCtxS *) MqContextCTT )
 class as MqTypeCtxS-class-type for MqContextC in the Target-Programming-Language (TPL)
 

MqContextC - signature check

static bool libmqmsgque::MqCtxCheck (MK_MNGN mng)
 check MqContextS -> libmkkernel::MkObjectS::signature
 
static bool libmqmsgque::MqCtxCheckO (MK_OBJN obj)
 check MqContextS -> libmkkernel::MkObjectS::signature
 
#define MqContextC_Check(mng)
 

MqContextC - cast from a defined or a undefined instance

static MQ_CTX libmqmsgque::MqCtx (MK_MNG mng)
 cast a unknown-object into an MqContextS pointer or NULL if not possible
 
static MQ_CTXN libmqmsgque::MqCtxN (MK_MNGN mng)
 (const) cast a unknown-object into an MqContextS pointer or NULL if not possible
 
#define MqCtxRaise(_ctx)
 raise an error if class-instance is not valid
 
#define MqCTX_R(x)
 cast a known-object into an MqContextS reference
 
#define MqCTX(x)
 cast a known-object into an MqContextS pointer
 

MqContextC - signature define

#define MqContextC_SIGNATURE   (MkObjectC_SIGNATURE ^ (13u<<10))
 
#define MqContextC_MASK   (((1u<<22)-1)<<10)
 

MqContextC - cast to superclass

#define MqContextC_X2ctx(x)
 
#define MqContextC_X2obj(x)
 

Detailed Description

MqContextC - low level definition, access and cast …

Macro Definition Documentation

◆ MqContextC_Check

#define MqContextC_Check ( mng)
Value:
MqCtxCheck(mng)

Definition at line 4215 of file LibMqMsgque_mq.h.

◆ MqContextC_MASK

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

Definition at line 4145 of file LibMqMsgque_mq.h.

◆ MqContextC_NS

#define MqContextC_NS   MQ

map class to namespace …

Definition at line 4183 of file LibMqMsgque_mq.h.

◆ MqContextC_SIGNATURE

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

Definition at line 4144 of file LibMqMsgque_mq.h.

◆ MqContextC_T

#define MqContextC_T   (&MQ_RT_REF._MqContextC_T)

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

Definition at line 4167 of file LibMqMsgque_mq.h.

◆ MqContextC_TT

#define MqContextC_TT   (MkTYP(MqContextC_T))

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

Definition at line 4169 of file LibMqMsgque_mq.h.

◆ MqContextC_type

#define MqContextC_type   MQ_CTX

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

Definition at line 4175 of file LibMqMsgque_mq.h.

◆ MqContextC_X2ctx

#define MqContextC_X2ctx ( x)
Value:
(x)

Definition at line 4153 of file LibMqMsgque_mq.h.

◆ MqContextC_X2obj

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

Definition at line 4154 of file LibMqMsgque_mq.h.

◆ MqContextCT

#define MqContextCT   ( (struct MqTypeCtxS *) MqContextCTT )

class as MqTypeCtxS-class-type for MqContextC in the Target-Programming-Language (TPL)

Definition at line 4187 of file LibMqMsgque_mq.h.

◆ MqContextCT_TT

#define MqContextCT_TT ( typ)
Value:
( (struct MqTypeCtxS *) (typ) )

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

Definition at line 4181 of file LibMqMsgque_mq.h.

◆ MqContextCT_X

#define MqContextCT_X ( instance)
Value:
( (struct MqTypeCtxS *) (MkOBJ_R(instance).type) )
#define MkOBJ_R(x)

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

Definition at line 4177 of file LibMqMsgque_mq.h.

◆ MqContextCTT

#define MqContextCTT   MqContextCTT

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

Definition at line 4185 of file LibMqMsgque_mq.h.

◆ MqContextCTT_X

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

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

Definition at line 4179 of file LibMqMsgque_mq.h.

◆ MqContextST

#define MqContextST   MqContextC_T

instance-type as MqTypeCtxS-class-type …

Definition at line 4171 of file LibMqMsgque_mq.h.

◆ MqContextSTT

#define MqContextSTT   (MkTYP(MqContextST))

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

Definition at line 4173 of file LibMqMsgque_mq.h.

◆ MqCTX

#define MqCTX ( x)
Value:
(&MqCTX_R(x))
#define MqCTX_R(x)
cast a known-object into an MqContextS reference

cast a known-object into an MqContextS pointer

Definition at line 4248 of file LibMqMsgque_mq.h.

◆ MqCTX_R

#define MqCTX_R ( x)
Value:
(*(x)).super.ctx

cast a known-object into an MqContextS reference

Definition at line 4246 of file LibMqMsgque_mq.h.

◆ MqCtxRaise

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

raise an error if class-instance is not valid

Definition at line 4240 of file LibMqMsgque_mq.h.

4240 #define MqCtxRaise(_ctx) if (!_MkCheckX(MqContextC,_ctx)) { \
4241 MkErrorSetC_1E("'MqContextC' hdl is NULL"); \
4242 goto error ; \
4243 }

Typedef Documentation

◆ MqContextCNR

typedef const struct MqContextS libmqmsgque::MqContextCNR

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

Definition at line 4165 of file LibMqMsgque_mq.h.

◆ MqContextCR

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

Definition at line 4163 of file LibMqMsgque_mq.h.

Function Documentation

◆ MqCtx()

static MQ_CTX libmqmsgque::MqCtx ( MK_MNG mng)
inlinestatic

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

Definition at line 4227 of file LibMqMsgque_mq.h.

4227 {
4228 return (MqCtxCheck(mng) ? (MQ_CTX)mng : NULL);
4229 }
static bool MqCtxCheck(MK_MNGN mng)
check MqContextS -> libmkkernel::MkObjectS::signature …
+ Here is the caller graph for this function:

◆ MqCtxCheck()

static bool libmqmsgque::MqCtxCheck ( MK_MNGN mng)
inlinestatic

check MqContextS -> libmkkernel::MkObjectS::signature

Returns
TRUE on valid ctx and FALSE an invalid ctx

Definition at line 4202 of file LibMqMsgque_mq.h.

4202 {
4203 return MkSanitizeCheck(MqContextC,mng);
4204 }
#define MkSanitizeCheck(_root, _m)
+ Here is the caller graph for this function:

◆ MqCtxCheckO()

static bool libmqmsgque::MqCtxCheckO ( MK_OBJN obj)
inlinestatic

check MqContextS -> libmkkernel::MkObjectS::signature

Returns
TRUE on valid ctx and FALSE an invalid ctx

Definition at line 4210 of file LibMqMsgque_mq.h.

4210 {
4211 return MkSanitizeCheckO(MqContextC,obj);
4212 }
#define MkSanitizeCheckO(_root, _o)
+ Here is the caller graph for this function:

◆ MqCtxN()

static MQ_CTXN libmqmsgque::MqCtxN ( MK_MNGN mng)
inlinestatic

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

Definition at line 4235 of file LibMqMsgque_mq.h.

4235 {
4236 return (MqCtxCheck(mng) ? (MQ_CTXN)mng : NULL);
4237 }