MkBufferC - the abstract class known as buf or buffer is used to create and manage dynamic, generic, mixed typed data. … More...
Topics | |
MkBufferC_TOR_CC_API | |
MkBufferC - various functions to create, initialize and destroy a MkBufferC … | |
MkBufferC_Get_CC_API | |
MkBufferC - various functions to get buffer-data … | |
MkBufferC_Set_CC_API | |
MkBufferC - various functions to set buffer-data … | |
MkBufferC_Info_CC_API | |
MkBufferC - various functions to get information out of buffer-data … | |
MkBufferC_Access_CC_API | |
MkBufferC - various functions to access buffer-data … | |
MkBufferC_Misc_CC_API | |
MkBufferC - various functions to work on buffer-data … | |
MkBufferC_Introspection_CC_API | |
MkBufferC_Class_CC_API | |
MkBufferC - define the class … | |
Classes | |
struct | ccmkkernel::MkBufferC_A |
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE … → C-API: libmkkernel::MkBufferS More... | |
class | ccmkkernel::MkBufferC |
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE … → C-API: libmkkernel::MkBufferS More... | |
Functions | |
ccmkkernel::MkBufferC::MkBufferC (MK_BUF hdl) | |
static MkBufferC * | ccmkkernel::MkBufferC::MkBufferC_ObjNew (MK_RT_ARGS MK_BUF hdl) |
return MkBufferC from LibMsgqueObject | |
MK_BUF | ccmkkernel::MkBufferC::getBUF () const |
return the LibMsgqueObject from current MkBufferC instance | |
MK_BUF | ccmkkernel::MkBufferC::getBUF__null_allow () const |
return the LibMsgqueObject from current MkBufferC instance | |
MK_BUFN | ccmkkernel::MkBufferC::getBUFN () const |
(const) return the LibMsgqueObject from current MkBufferC instance | |
MK_BUFN | ccmkkernel::MkBufferC::getBUFN__null_allow () const |
(const) return the LibMsgqueObject from current MkBufferC instance | |
static MK_BUF | ccmkkernel::MkBufferC::getBUF (MkBufferC *clsHdl) |
return LibMsgqueObject from current MkBufferC pointer | |
static MK_BUF | ccmkkernel::MkBufferC::getBUF__null_allow (MkBufferC *clsHdl) |
return LibMsgqueObject from current MkBufferC pointer | |
static MK_BUFN | ccmkkernel::MkBufferC::getBUFN (const MkBufferC *clsHdl) |
(const) return LibMsgqueObject from current MkBufferC pointer | |
static MK_BUFN | ccmkkernel::MkBufferC::getBUFN__null_allow (const MkBufferC *clsHdl) |
(const) return LibMsgqueObject from current MkBufferC pointer | |
static MK_BUF | ccmkkernel::MkBufferC::getBUF (const MkBufferC &clsHdl) |
return LibMsgqueObject from current MkBufferC reference | |
static MK_BUF | ccmkkernel::MkBufferC::getBUF__null_allow (const MkBufferC &clsHdl) |
return LibMsgqueObject from current MkBufferC reference | |
static MK_BUFN | ccmkkernel::MkBufferC::getBUFN (const MkBufferC &clsHdl) |
(const) return LibMsgqueObject from current MkBufferC reference | |
static MK_BUFN | ccmkkernel::MkBufferC::getBUFN__null_allow (const MkBufferC &clsHdl) |
(const) return LibMsgqueObject from current MkBufferC reference | |
bool | ccmkkernel::MkBufferC::Check () const |
check if pointer is still valid | |
ccmkkernel::MkBufferC::MkBufferC (const MkBufferC *hdl) | |
ccmkkernel::MkBufferC::MkBufferC (const MkBufferC &ref) | |
MkBufferC & | ccmkkernel::MkBufferC::operator= (const MkBufferC &buf) |
MkBufferC & | ccmkkernel::MkBufferC::operator= (const MkBufferC *buf) |
Variables | |
static thread_local MkBufferC | ccmkkernel::MkBufferC::MK_NULL_REF = {(MK_OBJ)0} |
MkBufferC - the abstract class known as buf or buffer is used to create and manage dynamic, generic, mixed typed data. …
The MkBufferC is used to store PRIMITIVE TYPE data. If ccmkkernel is working on data… ccmkkernel is working on an MkBufferC object or on a list of MkBufferC objects called MkBufferListC.
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …
C-Kernel-Details
The ABSTRACT-CLASS MkBufferS is used to store MkTypeE data in an MkBufferS::storage …
A new MkBufferS is always preallocated with the predefined ILS-storage (MkBufferS::ils_data), but can switch to a MALLOC-storage if the storage requirements of the user exceed the predefined MkBufferS::ilsS::size.
A MkBufferS never run out of storage.
The basic goal of the ILS-storage technology is to minimize the usage of MALLOC, this mean that the MkBufferS::ilsS::size should be large enought to be sufficient for the user needs.
The following conditions must always be met for the ILS memory:
MkBufferSPtr->ils_data - MkBufferSPtr
.The ABSTRACT-CLASS MkBufferS is missing the ILS-storage, the FINAL-CLASSES are:
command | synonmym |
---|---|
[constructor,static] MkBufferC* MkBufferC::Create(MK_NUM size = 0) | ccmkkernel::MkBufferC(MK_SIZE size = 0) |
[destructor] buf.Delete() | delete buf |
Example from server.cc
→ read a buffer-object and convert single-char-type-identifer to string.
void BUF2 () { SendSTART(); for (int i=0; i<3; i++) { // using a reference or a pointer to avoid a "copy", ReadBUF never return NULL const MkBufferC& buf = *ReadBUF(); // GetType3 is "const", return the type as "string" SendSTR(buf.GetType3()); SendBUF(buf); } SendRETURN(); }
|
inline |
check if pointer is still valid
Definition at line 154 of file MkBufferC_cc.hh.
|
inline |
return the LibMsgqueObject from current MkBufferC instance
Definition at line 86 of file MkBufferC_cc.hh.
return LibMsgqueObject from current MkBufferC reference
Definition at line 134 of file MkBufferC_cc.hh.
return LibMsgqueObject from current MkBufferC pointer
Definition at line 110 of file MkBufferC_cc.hh.
|
inline |
return the LibMsgqueObject from current MkBufferC instance
Definition at line 93 of file MkBufferC_cc.hh.
return LibMsgqueObject from current MkBufferC reference
Definition at line 139 of file MkBufferC_cc.hh.
return LibMsgqueObject from current MkBufferC pointer
Definition at line 117 of file MkBufferC_cc.hh.
|
inline |
(const) return the LibMsgqueObject from current MkBufferC instance
Definition at line 98 of file MkBufferC_cc.hh.
(const) return LibMsgqueObject from current MkBufferC reference
Definition at line 144 of file MkBufferC_cc.hh.
(const) return LibMsgqueObject from current MkBufferC pointer
Definition at line 122 of file MkBufferC_cc.hh.
|
inline |
(const) return the LibMsgqueObject from current MkBufferC instance
Definition at line 105 of file MkBufferC_cc.hh.
(const) return LibMsgqueObject from current MkBufferC reference
Definition at line 149 of file MkBufferC_cc.hh.
(const) return LibMsgqueObject from current MkBufferC pointer
Definition at line 129 of file MkBufferC_cc.hh.
|
inline |
Definition at line 30 of file MkBufferC_inline_cc.hh.
|
inline |
Definition at line 24 of file MkBufferC_inline_cc.hh.
|
inline |
Definition at line 77 of file MkBufferC_cc.hh.
|
inlinestatic |
return MkBufferC from LibMsgqueObject
Definition at line 81 of file MkBufferC_cc.hh.
Definition at line 35 of file MkBufferC_inline_cc.hh.
Definition at line 41 of file MkBufferC_inline_cc.hh.
Definition at line 38 of file MkBufferC_cc.hh.