theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_CC_API

MkBufferListC - the class known as bfl or buffer-list is used to create and manage a list of MkBufferCMore...

+ Collaboration diagram for MkBufferListC_CC_API:

Topics

 MkBufferListC_TOR_CC_API
 MkBufferListC - various functions to create and destroy a MkBufferListS
 
 MkBufferListC_Append_CC_API
 MkBufferListC - various functions to 'append' to a MkBufferListS
 
 MkBufferListC_Check_CC_API
 MkBufferListC - various functions to 'check' a MkBufferListS
 
 MkBufferListC_Index_CC_API
 MkBufferListC - various functions to access a MkBufferListS by index
 
 MkBufferListC_Log_CC_API
 MkBufferListC - various functions to 'log' a MkBufferListS
 
 MkBufferListC_Misc_CC_API
 MkBufferListC - various functions to work on a MkBufferListS
 
 MkBufferListC_Introspection_CC_API
 
 MkBufferListC_Class_CC_API
 MkBufferListC - define the class …
 

Classes

struct  ccmkkernel::MkBufferListC_A
 The CLASS used to store a list of MkBufferS items into a flat array… → C-API: libmkkernel::MkBufferListS More...
 
class  ccmkkernel::MkBufferListC
 The CLASS used to store a list of MkBufferS items into a flat array… → C-API: libmkkernel::MkBufferListS More...
 

Functions

 ccmkkernel::MkBufferListC::MkBufferListC (MK_BFL hdl)
 
static MkBufferListCccmkkernel::MkBufferListC::MkBufferListC_ObjNew (MK_RT_ARGS MK_BFL hdl)
 return MkBufferListC from LibMsgqueObject
 
MK_BFL ccmkkernel::MkBufferListC::getBFL () const
 return the LibMsgqueObject from current MkBufferListC instance
 
MK_BFL ccmkkernel::MkBufferListC::getBFL__null_allow () const
 return the LibMsgqueObject from current MkBufferListC instance
 
MK_BFLN ccmkkernel::MkBufferListC::getBFLN () const
 (const) return the LibMsgqueObject from current MkBufferListC instance
 
MK_BFLN ccmkkernel::MkBufferListC::getBFLN__null_allow () const
 (const) return the LibMsgqueObject from current MkBufferListC instance
 
static MK_BFL ccmkkernel::MkBufferListC::getBFL (MkBufferListC *clsHdl)
 return LibMsgqueObject from current MkBufferListC pointer
 
static MK_BFL ccmkkernel::MkBufferListC::getBFL__null_allow (MkBufferListC *clsHdl)
 return LibMsgqueObject from current MkBufferListC pointer
 
static MK_BFLN ccmkkernel::MkBufferListC::getBFLN (const MkBufferListC *clsHdl)
 (const) return LibMsgqueObject from current MkBufferListC pointer
 
static MK_BFLN ccmkkernel::MkBufferListC::getBFLN__null_allow (const MkBufferListC *clsHdl)
 (const) return LibMsgqueObject from current MkBufferListC pointer
 
static MK_BFL ccmkkernel::MkBufferListC::getBFL (const MkBufferListC &clsHdl)
 return LibMsgqueObject from current MkBufferListC reference
 
static MK_BFL ccmkkernel::MkBufferListC::getBFL__null_allow (const MkBufferListC &clsHdl)
 return LibMsgqueObject from current MkBufferListC reference
 
static MK_BFLN ccmkkernel::MkBufferListC::getBFLN (const MkBufferListC &clsHdl)
 (const) return LibMsgqueObject from current MkBufferListC reference
 
static MK_BFLN ccmkkernel::MkBufferListC::getBFLN__null_allow (const MkBufferListC &clsHdl)
 (const) return LibMsgqueObject from current MkBufferListC reference
 
bool ccmkkernel::MkBufferListC::Check () const
 check if pointer is still valid
 
 ccmkkernel::MkBufferListC::MkBufferListC (int argc, MK_STRN argv[])
 
 ccmkkernel::MkBufferListC::MkBufferListC (MK_STRN arg0,...)
 
 ccmkkernel::MkBufferListC::MkBufferListC (const std::vector< std::string > &)
 
 ccmkkernel::MkBufferListC::MkBufferListC (const MkBufferListC *hdl)
 
 ccmkkernel::MkBufferListC::MkBufferListC (const MkBufferListC &ref)
 
MkBufferListCccmkkernel::MkBufferListC::operator= (const MkBufferListC &bfl)
 
MkBufferListCccmkkernel::MkBufferListC::operator= (const MkBufferListC *bfl)
 
 ccmkkernel::MkBufferListC::operator MkBufferListC * ()
 

Variables

static thread_local MkBufferListC ccmkkernel::MkBufferListC::MK_NULL_REF = {(MK_OBJ)0}
 

Detailed Description

MkBufferListC - the class known as bfl or buffer-list is used to create and manage a list of MkBufferC

The MkBufferListC is used to store a list of MkBufferC data into an array. In contrast to the MkBufferStreamC, each individual item can be accessed directly with the MkBufferListC.

MkBufferListC* CLASS

The CLASS used to store a list of MkBufferS items into a flat array…

C-Kernel-Details

The CLASS MkBufferListS is used to store a list of MkBufferS into an MkBufferListS::data array. To access an MkBufferS item use:

‍0 <= index < MkBufferListS::cursize

A new MkBufferListS is always preallocated with the predefined ILS-storage (MkBufferListS::bls), but can switch to a MALLOC-storage if the storage requirements of the user exceed the predefined ILS-storage-size (MkBufferListS_bls_size).

‍A MkBufferListS never run out of storage.

See also
MkBufferC, MkBufferStreamC

MkBufferListC* CTOR / DTOR

command alias
[constructor,static] MkBufferListC* MkBufferListC::Create(MK_NUM size = 0) ccmkkernel::MkBufferListC(MK_NUM num = 0)
[destructor] bfl.Delete() delete bfl

Function Documentation

◆ Check()

bool ccmkkernel::MkBufferListC::Check ( ) const
inline

check if pointer is still valid

Definition at line 159 of file MkBufferListC_cc.hh.

159 {
160 return (hdl && MkBflCheck(hdl));
161 };
static bool MkBflCheck(MK_MNGN mng)
check MkBufferListS -> libmkkernel::MkObjectS::signature …

◆ getBFL() [1/3]

MK_BFL ccmkkernel::MkBufferListC::getBFL ( ) const
inline

return the LibMsgqueObject from current MkBufferListC instance

Definition at line 91 of file MkBufferListC_cc.hh.

91 {
92 MK_BFL ret = reinterpret_cast<MK_BFL>(hdl);
93 if (unlikely(ret == NULL)) InstHdlIsNullError();
94 return ret;
95 };
#define InstHdlIsNullError()
struct MkBufferListS * MK_BFL
class-shortcut for struct MkBufferListS *, all shortcut using the XX_YYY syntax (only for public API)...
#define unlikely(x)

◆ getBFL() [2/3]

static MK_BFL ccmkkernel::MkBufferListC::getBFL ( const MkBufferListC & clsHdl)
inlinestatic

return LibMsgqueObject from current MkBufferListC reference

Definition at line 139 of file MkBufferListC_cc.hh.

139 {
140 return clsHdl.getBFL();
141 };

◆ getBFL() [3/3]

static MK_BFL ccmkkernel::MkBufferListC::getBFL ( MkBufferListC * clsHdl)
inlinestatic

return LibMsgqueObject from current MkBufferListC pointer

Definition at line 115 of file MkBufferListC_cc.hh.

115 {
116 MK_BFL ret = clsHdl ? reinterpret_cast<MK_BFL>(clsHdl->hdl) : NULL;
117 if (unlikely(ret == NULL)) ClassHdlIsNullError(MkBufferListC);
118 return ret;
119 };
#define ClassHdlIsNullError(cls)

◆ getBFL__null_allow() [1/3]

MK_BFL ccmkkernel::MkBufferListC::getBFL__null_allow ( ) const
inline

return the LibMsgqueObject from current MkBufferListC instance

Definition at line 98 of file MkBufferListC_cc.hh.

98 {
99 return reinterpret_cast<MK_BFL>(hdl);
100 };
+ Here is the caller graph for this function:

◆ getBFL__null_allow() [2/3]

static MK_BFL ccmkkernel::MkBufferListC::getBFL__null_allow ( const MkBufferListC & clsHdl)
inlinestatic

return LibMsgqueObject from current MkBufferListC reference

Definition at line 144 of file MkBufferListC_cc.hh.

144 {
145 return clsHdl.getBFL__null_allow();
146 };

◆ getBFL__null_allow() [3/3]

static MK_BFL ccmkkernel::MkBufferListC::getBFL__null_allow ( MkBufferListC * clsHdl)
inlinestatic

return LibMsgqueObject from current MkBufferListC pointer

Definition at line 122 of file MkBufferListC_cc.hh.

122 {
123 return clsHdl ? reinterpret_cast<MK_BFL>(clsHdl->hdl) : NULL;
124 };

◆ getBFLN() [1/3]

MK_BFLN ccmkkernel::MkBufferListC::getBFLN ( ) const
inline

(const) return the LibMsgqueObject from current MkBufferListC instance

Definition at line 103 of file MkBufferListC_cc.hh.

103 {
104 MK_BFLN ret = reinterpret_cast<MK_BFLN>(hdl);
105 if (unlikely(ret == NULL)) InstHdlIsNullError();
106 return ret;
107 };
const struct MkBufferListS * MK_BFLN
class-shortcut for const struct MkBufferListS *, all const shortcut using the XX_YYYC syntax (only fo...
+ Here is the caller graph for this function:

◆ getBFLN() [2/3]

static MK_BFLN ccmkkernel::MkBufferListC::getBFLN ( const MkBufferListC & clsHdl)
inlinestatic

(const) return LibMsgqueObject from current MkBufferListC reference

Definition at line 149 of file MkBufferListC_cc.hh.

149 {
150 return clsHdl.getBFLN();
151 };

◆ getBFLN() [3/3]

static MK_BFLN ccmkkernel::MkBufferListC::getBFLN ( const MkBufferListC * clsHdl)
inlinestatic

(const) return LibMsgqueObject from current MkBufferListC pointer

Definition at line 127 of file MkBufferListC_cc.hh.

127 {
128 MK_BFLN ret = clsHdl ? reinterpret_cast<MK_BFLN>(clsHdl->hdl) : NULL;
129 if (unlikely(ret == NULL)) ClassHdlIsNullError(MkBufferListC);
130 return ret;
131 };

◆ getBFLN__null_allow() [1/3]

MK_BFLN ccmkkernel::MkBufferListC::getBFLN__null_allow ( ) const
inline

(const) return the LibMsgqueObject from current MkBufferListC instance

Definition at line 110 of file MkBufferListC_cc.hh.

110 {
111 return reinterpret_cast<MK_BFLN>(hdl);
112 };
+ Here is the caller graph for this function:

◆ getBFLN__null_allow() [2/3]

static MK_BFLN ccmkkernel::MkBufferListC::getBFLN__null_allow ( const MkBufferListC & clsHdl)
inlinestatic

(const) return LibMsgqueObject from current MkBufferListC reference

Definition at line 154 of file MkBufferListC_cc.hh.

154 {
155 return clsHdl.getBFLN__null_allow();
156 };

◆ getBFLN__null_allow() [3/3]

static MK_BFLN ccmkkernel::MkBufferListC::getBFLN__null_allow ( const MkBufferListC * clsHdl)
inlinestatic

(const) return LibMsgqueObject from current MkBufferListC pointer

Definition at line 134 of file MkBufferListC_cc.hh.

134 {
135 return clsHdl ? reinterpret_cast<MK_BFLN>(clsHdl->hdl) : NULL;
136 };

◆ MkBufferListC() [1/6]

ccmkkernel::MkBufferListC::MkBufferListC ( const MkBufferListC & ref)
inline

Definition at line 38 of file MkBufferListC_inline_cc.hh.

38 {
39 MkRtSetup_O(copy.hdl);
41 }
void atomInit(MK_OBJ obj)
#define MkObjDup(...)
#define MkRtSetup_O(o)

◆ MkBufferListC() [2/6]

ccmkkernel::MkBufferListC::MkBufferListC ( const MkBufferListC * hdl)
inline

Definition at line 32 of file MkBufferListC_inline_cc.hh.

32 {
33 if (copy == NULL) throw MkReferenceNullExceptionC("MkBufferListC");
34 MkRtSetup_O(copy->hdl);
35 MkObjectC::atomInit(MkObjDup(copy->hdl));
36 }

◆ MkBufferListC() [3/6]

ccmkkernel::MkBufferListC::MkBufferListC ( const std::vector< std::string > & vals)
inline

Definition at line 71 of file MkBufferListC_inline_cc.hh.

71 {
73 auto bfl = MkBufferListCreate((MK_NUM)vals.size());
74 for(const std::string& str : vals) {
75 MkBufferListAppendStringR(bfl,MkStringCreate((MK_NUM)str.size(),str.c_str()));
76 }
77 MkBufferListC_Init(bfl);
78 }
#define MkBufferListAppendStringR(...)
#define MkBufferListCreate(...)
static MkStringR MkStringCreate(MK_NUM len, MK_STRN str)
create a str from ptr and len ...
int32_t MK_NUM
array size data-type ('num' items in array …
#define MkRtSetup_NULL

◆ MkBufferListC() [4/6]

ccmkkernel::MkBufferListC::MkBufferListC ( int argc,
MK_STRN argv[] )
inline

Definition at line 58 of file MkBufferListC_inline_cc.hh.

58 {
60 MkBufferListC_Init(MkBufferListCreateVC(argc,argv));
61 }
#define MkBufferListCreateVC(...)

◆ MkBufferListC() [5/6]

ccmkkernel::MkBufferListC::MkBufferListC ( MK_BFL hdl)
inline

Definition at line 82 of file MkBufferListC_cc.hh.

◆ MkBufferListC() [6/6]

ccmkkernel::MkBufferListC::MkBufferListC ( MK_STRN arg0,
... )
inline

Definition at line 63 of file MkBufferListC_inline_cc.hh.

63 {
65 va_list ap;
66 va_start(ap, arg0);
67 MkBufferListC_Init(MkBufferListCreateVAL(arg0,ap));
68 va_end (ap);
69 }
#define MkBufferListCreateVAL(...)

◆ MkBufferListC_ObjNew()

static MkBufferListC * ccmkkernel::MkBufferListC::MkBufferListC_ObjNew ( MK_RT_ARGS MK_BFL hdl)
inlinestatic

return MkBufferListC from LibMsgqueObject

Definition at line 86 of file MkBufferListC_cc.hh.

86 {
87 return (hdl ? static_cast<MkBufferListC*>(MkObjectC::atomObjNew(MK_RT_CALL MkBufferListC_X2obj(hdl))) : &MK_NULL_REF);
88 }
static thread_local MkBufferListC MK_NULL_REF
static MK_PTR atomObjNew(MK_RT_ARGS MK_OBJ obj)
#define MK_RT_CALL
+ Here is the caller graph for this function:

◆ operator MkBufferListC *()

ccmkkernel::MkBufferListC::operator MkBufferListC * ( )
inline

Definition at line 176 of file MkBufferListC_cc.hh.

176{ return this; };

◆ operator=() [1/2]

MkBufferListC & ccmkkernel::MkBufferListC::operator= ( const MkBufferListC & bfl)
inline

Definition at line 43 of file MkBufferListC_inline_cc.hh.

43 {
44 MkRtSetup_O(copy.hdl);
45 MkObjCopy(hdl,copy.hdl);
46 return *this;
47 }
#define MkObjCopy(...)

◆ operator=() [2/2]

MkBufferListC & ccmkkernel::MkBufferListC::operator= ( const MkBufferListC * bfl)
inline

Definition at line 49 of file MkBufferListC_inline_cc.hh.

49 {
50 if (copy == NULL) throw MkReferenceNullExceptionC("MkBufferListC");
51 MkRtSetup_O(copy->hdl);
52 MkObjCopy(hdl,copy->hdl);
53 return *this;
54 }

Variable Documentation

◆ MK_NULL_REF

thread_local MkBufferListC ccmkkernel::MkBufferListC::MK_NULL_REF = {(MK_OBJ)0}
static

Definition at line 43 of file MkBufferListC_cc.hh.