theLink 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - cs - py - rb - jv - cc
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 MqContextCR
 instance-struct-reference same as struct MqContextS, useable in a class-macro as: class##R
 
typedef const struct MqContextS 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 MqCtxTypeS-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 MqCtxTypeS-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 MqCtxTypeS-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 MqCtxTypeS-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 MqCtxTypeS *) MqContextCTT )
 class as MqCtxTypeS-class-type for MqContextC in the Target-Programming-Language (TPL)
 

MqContextC - signature check

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

MqContextC - cast from a defined or a undefined instance

static MQ_CTX MqCtx (MK_MNG mng)
 cast a unknown-object into an MqContextS pointer or NULL if not possible
 
static MQ_CTXN 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 - MqContextC_Class_Define_C_API - function

MQ_CTX MqCtxP (MK_MNG mng)
 Non-inline replacement for MqCtx
 
MK_BOOL MqCtxCheckP (MK_MNGN mng)
 Non-inline replacement for MqCtxCheck
 
MK_BOOL MqCtxCheckOP (MK_OBJN obj)
 Non-inline replacement for MqCtxCheckO
 
MQ_CTXN MqCtxNP (MK_MNGN mng)
 Non-inline replacement for MqCtxN
 

MqContextC - signature define

#define MqContextC_SIGNATURE   (MkObjectC_SIGNATURE ^ (11u<<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:
static bool MqCtxCheck(MK_MNGN mng)
check MqContextS -> MkObjectS::signature …

Definition at line 4160 of file LibMqMsgque_mq.h.

◆ MqContextC_MASK

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

Definition at line 4090 of file LibMqMsgque_mq.h.

◆ MqContextC_NS

#define MqContextC_NS   MQ

map class to namespace …

Definition at line 4128 of file LibMqMsgque_mq.h.

◆ MqContextC_SIGNATURE

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

Definition at line 4089 of file LibMqMsgque_mq.h.

◆ MqContextC_T

#define MqContextC_T   (&MQ_RT_REF._MqContextC_T)

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

Definition at line 4112 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 4114 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 4120 of file LibMqMsgque_mq.h.

◆ MqContextC_X2ctx

#define MqContextC_X2ctx ( x)
Value:
(x)

Definition at line 4098 of file LibMqMsgque_mq.h.

◆ MqContextC_X2obj

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

Definition at line 4099 of file LibMqMsgque_mq.h.

◆ MqContextCT

#define MqContextCT   ( (struct MqCtxTypeS *) MqContextCTT )

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

Definition at line 4132 of file LibMqMsgque_mq.h.

◆ MqContextCT_TT

#define MqContextCT_TT ( typ)
Value:
( (struct MqCtxTypeS *) (typ) )
MqCtxTypeS - the instance-base for the MqContextC …
struct MkTypeS typ

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

Definition at line 4126 of file LibMqMsgque_mq.h.

◆ MqContextCT_X

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

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

Definition at line 4122 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 4130 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 4124 of file LibMqMsgque_mq.h.

◆ MqContextST

#define MqContextST   MqContextC_T

instance-type as MqCtxTypeS-class-type …

Definition at line 4116 of file LibMqMsgque_mq.h.

◆ MqContextSTT

#define MqContextSTT   (MkTYP(MqContextST))

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

Definition at line 4118 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 4193 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 4191 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 4185 of file LibMqMsgque_mq.h.

4185 #define MqCtxRaise(_ctx) if (!_MkCheckX(MqContextC,_ctx)) { \
4186 MkErrorSetC_1E("'MqContextC' hdl is NULL"); \
4187 goto error ; \
4188 }

Typedef Documentation

◆ MqContextCNR

typedef const struct MqContextS MqContextCNR

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

Definition at line 4110 of file LibMqMsgque_mq.h.

◆ MqContextCR

typedef struct MqContextS MqContextCR

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

Definition at line 4108 of file LibMqMsgque_mq.h.

Function Documentation

◆ MqCtx()

static MQ_CTX MqCtx ( MK_MNG mng)
inlinestatic

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

Definition at line 4172 of file LibMqMsgque_mq.h.

4172 {
4173 return (MqCtxCheck(mng) ? (MQ_CTX)mng : NULL);
4174 }
PUBLIC data structure for the libmqmsgque-specific-data
+ Here is the caller graph for this function:

◆ MqCtxCheck()

static bool MqCtxCheck ( MK_MNGN mng)
inlinestatic

check MqContextS -> MkObjectS::signature

Returns
TRUE on valid ctx and FALSE an invalid ctx

Definition at line 4147 of file LibMqMsgque_mq.h.

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

◆ MqCtxCheckO()

static bool MqCtxCheckO ( MK_OBJN obj)
inlinestatic

check MqContextS -> MkObjectS::signature

Returns
TRUE on valid ctx and FALSE an invalid ctx

Definition at line 4155 of file LibMqMsgque_mq.h.

4155 {
4156 return MkSanitizeCheckO(MqContextC,obj);
4157 }
#define MkSanitizeCheckO(_root, _o)

◆ MqCtxCheckOP()

MK_BOOL MqCtxCheckOP ( MK_OBJN obj)

Non-inline replacement for MqCtxCheckO

◆ MqCtxCheckP()

MK_BOOL MqCtxCheckP ( MK_MNGN mng)

Non-inline replacement for MqCtxCheck

◆ MqCtxN()

static MQ_CTXN MqCtxN ( MK_MNGN mng)
inlinestatic

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

Definition at line 4180 of file LibMqMsgque_mq.h.

4180 {
4181 return (MqCtxCheck(mng) ? (MQ_CTXN)mng : NULL);
4182 }

◆ MqCtxNP()

MQ_CTXN MqCtxNP ( MK_MNGN mng)

Non-inline replacement for MqCtxN

◆ MqCtxP()

MQ_CTX MqCtxP ( MK_MNG mng)

Non-inline replacement for MqCtx