MkBufferListC - the class known as bfl or buffer-list is used to create and manage a list of MkBufferC …
More...
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
◆ Check()
bool ccmkkernel::MkBufferListC::Check |
( |
| ) |
const |
|
inline |
check if pointer is still valid
Definition at line 159 of file MkBufferListC_cc.hh.
159 {
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 {
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)...
◆ getBFL() [2/3]
◆ getBFL() [3/3]
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;
118 return ret;
119 };
#define ClassHdlIsNullError(cls)
◆ getBFL__null_allow() [1/3]
MK_BFL ccmkkernel::MkBufferListC::getBFL__null_allow |
( |
| ) |
const |
|
inline |
◆ getBFL__null_allow() [2/3]
◆ getBFL__null_allow() [3/3]
◆ 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 {
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...
◆ getBFLN() [2/3]
◆ getBFLN() [3/3]
◆ getBFLN__null_allow() [1/3]
MK_BFLN ccmkkernel::MkBufferListC::getBFLN__null_allow |
( |
| ) |
const |
|
inline |
◆ getBFLN__null_allow() [2/3]
◆ getBFLN__null_allow() [3/3]
◆ MkBufferListC() [1/6]
ccmkkernel::MkBufferListC::MkBufferListC |
( |
const MkBufferListC & | ref | ) |
|
|
inline |
◆ MkBufferListC() [2/6]
ccmkkernel::MkBufferListC::MkBufferListC |
( |
const MkBufferListC * | hdl | ) |
|
|
inline |
◆ MkBufferListC() [3/6]
ccmkkernel::MkBufferListC::MkBufferListC |
( |
const std::vector< std::string > & | vals | ) |
|
|
inline |
Definition at line 71 of file MkBufferListC_inline_cc.hh.
71 {
74 for(const std::string& str : vals) {
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 …
◆ MkBufferListC() [4/6]
ccmkkernel::MkBufferListC::MkBufferListC |
( |
int | argc, |
|
|
MK_STRN | argv[] ) |
|
inline |
◆ MkBufferListC() [5/6]
ccmkkernel::MkBufferListC::MkBufferListC |
( |
MK_BFL | hdl | ) |
|
|
inline |
◆ 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);
68 va_end (ap);
69 }
#define MkBufferListCreateVAL(...)
◆ MkBufferListC_ObjNew()
return MkBufferListC from LibMsgqueObject
Definition at line 86 of file MkBufferListC_cc.hh.
86 {
88 }
static thread_local MkBufferListC MK_NULL_REF
static MK_PTR atomObjNew(MK_RT_ARGS MK_OBJ obj)
◆ operator MkBufferListC *()
◆ operator=() [1/2]
◆ operator=() [2/2]
Definition at line 49 of file MkBufferListC_inline_cc.hh.
49 {
50 if (copy == NULL) throw MkReferenceNullExceptionC("MkBufferListC");
53 return *this;
54 }
◆ MK_NULL_REF