theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_Misc_CC_API

MkBufferListC - various functions to work on a MkBufferListSMore...

+ Collaboration diagram for MkBufferListC_Misc_CC_API:

Functions

static MkBufferListCccmkkernel::MkBufferListC::FileGlob (MK_STRN pattern_match)
  C++: [constructor,static] MkBufferListC* MkBufferListC::FileGlob(MK_STRN pattern_match) C-API
create a new MkBufferListC using the result from a filesystem glob operation …
 
static MkBufferListCccmkkernel::MkBufferListC::FileGlob (const std::string &pattern_match)
  C++: [constructor,static] MkBufferListC* MkBufferListC::FileGlob(MK_STRN pattern_match) C-API
create a new MkBufferListC using the result from a filesystem glob operation …
 
MkBufferListCccmkkernel::MkBufferListC::PositionMerge (MkBufferListC *source, MK_NUM position)
  C++: MkBufferListC* bfl.PositionMerge(MkBufferListC* source, MK_NUM position) C-API
merge a MkBufferListS list into an MkBufferListS object on position
 
MkBufferListCccmkkernel::MkBufferListC::PositionMerge (const MkBufferListC &source, MK_NUM position)
  C++: MkBufferListC* bfl.PositionMerge(MkBufferListC* source, MK_NUM position) C-API
merge a MkBufferListS list into an MkBufferListS object on position
 
MkBufferListCccmkkernel::MkBufferListC::Reset ()
  C++: MkBufferListC* bfl.Reset() C-API
reset a MkBufferListC object …
 
MkBufferListCccmkkernel::MkBufferListC::Sort ()
  C++: MkBufferListC* bfl.Sort() C-API
sort a MkBufferListC
 
MkBufferCccmkkernel::MkBufferListC::ToBuffer () const
  C++: MkBufferC* bfl.ToBuffer() C-API
Export a bfl into an MkBufferC using an MkBufferStreamC
 
MK_I32 ccmkkernel::MkBufferListC::Cmp (const MkBufferListC *bfl2) const
  C++: MK_I32 bfl.Cmp(const MkBufferListC* bfl2) C-API
compare two buffer-list
 
MK_I32 ccmkkernel::MkBufferListC::Cmp (const MkBufferListC &bfl2) const
  C++: MK_I32 bfl.Cmp(const MkBufferListC* bfl2) C-API
compare two buffer-list
 
void ccmkkernel::MkBufferListC::Copy (const MkBufferListC *src) const
  C++: bfl.Copy(const MkBufferListC* src) C-API
copy all internal data from src to tgt
 
void ccmkkernel::MkBufferListC::Copy (const MkBufferListC &src) const
  C++: bfl.Copy(const MkBufferListC* src) C-API
copy all internal data from src to tgt
 
void ccmkkernel::MkBufferListC::Move (MkBufferListC *from)
  C++: to.Move(MkBufferListC* from) C-API
move all internal data from from to the end of to
 
void ccmkkernel::MkBufferListC::Move (const MkBufferListC &from)
  C++: to.Move(MkBufferListC* from) C-API
move all internal data from from to the end of to
 
void ccmkkernel::MkBufferListC::Reserve (MK_NUM num)
  C++: bfl.Reserve(MK_NUM num) C-API
reserve num items in a MkBufferListC object …
 
MK_NUM ccmkkernel::MkBufferListC::SearchC (MK_STRN str, MK_NUM len=-1, MK_NUM startindex=0) const
  C++: MK_NUM bfl.SearchC(MK_STRN str, MK_NUM len = -1, MK_NUM startindex = 0) C-API
search libmkkernel::MK_STR item from a MkBufferListS object starting at startindex
 
MK_NUM ccmkkernel::MkBufferListC::SearchC (const std::string &str, MK_NUM len=-1, MK_NUM startindex=0) const
  C++: MK_NUM bfl.SearchC(MK_STRN str, MK_NUM len = -1, MK_NUM startindex = 0) C-API
search libmkkernel::MK_STR item from a MkBufferListS object starting at startindex
 
MK_NUM ccmkkernel::MkBufferListC::Size () const
  C++: MK_NUM bfl.Size() C-API
get the number-of-items in the bfl
 
MkBufferListCccmkkernel::MkBufferListC::ToList () const
  C++: MkBufferListC* bfl.ToList() C-API
get a target-language list representation of the bfl
 

Detailed Description

MkBufferListC - various functions to work on a MkBufferListS

Function Documentation

◆ Cmp() [1/2]

MK_I32 ccmkkernel::MkBufferListC::Cmp ( const MkBufferListC & bfl2) const
inline

C++: MK_I32 bfl.Cmp(const MkBufferListC* bfl2) C-API
compare two buffer-list

Definition at line 778 of file MkBufferListC_inline_cc.hh.

778 {
779 MK_UNUSED auto bfl = getBFLN();
780 const MK_BFLN bfl2_hdl = MkBufferListC::getBFLN(bfl2);
781 MK_I32 __retVal__L = MkBufferListCmp(bfl, bfl2_hdl);
782 return __retVal__L;
783 }
MK_BFLN getBFLN() const
(const) return the LibMsgqueObject from current MkBufferListC instance
const struct MkBufferListS * MK_BFLN
class-shortcut for const struct MkBufferListS *, all const shortcut using the XX_YYYC syntax (only fo...
#define MkBufferListCmp(...)
#define MK_UNUSED
mark unnused variables and functions
signed int MK_I32
4 byte integer data-type

◆ Cmp() [2/2]

MK_I32 ccmkkernel::MkBufferListC::Cmp ( const MkBufferListC * bfl2) const
inline

C++: MK_I32 bfl.Cmp(const MkBufferListC* bfl2) C-API
compare two buffer-list

Definition at line 770 of file MkBufferListC_inline_cc.hh.

770 {
771 MK_UNUSED auto bfl = getBFLN();
772 MK_BFLN bfl2_hdl = MkBufferListC::getBFLN(bfl2);
773 MK_I32 __retVal__L = MkBufferListCmp(bfl, bfl2_hdl);
774 return __retVal__L;
775 }

◆ Copy() [1/2]

void ccmkkernel::MkBufferListC::Copy ( const MkBufferListC & src) const
inline

C++: bfl.Copy(const MkBufferListC* src) C-API
copy all internal data from src to tgt

Definition at line 793 of file MkBufferListC_inline_cc.hh.

793 {
794 MK_UNUSED auto bfl = getBFL();
795 const MK_BFLN src_hdl = MkBufferListC::getBFLN(src);
796 MkBufferListCopy(bfl, src_hdl);
797 }
MK_BFL getBFL() const
return the LibMsgqueObject from current MkBufferListC instance
#define MkBufferListCopy(...)

◆ Copy() [2/2]

void ccmkkernel::MkBufferListC::Copy ( const MkBufferListC * src) const
inline

C++: bfl.Copy(const MkBufferListC* src) C-API
copy all internal data from src to tgt

Definition at line 786 of file MkBufferListC_inline_cc.hh.

786 {
787 MK_UNUSED auto bfl = getBFL();
788 MK_BFLN src_hdl = MkBufferListC::getBFLN(src);
789 MkBufferListCopy(bfl, src_hdl);
790 }

◆ FileGlob() [1/2]

MkBufferListC * ccmkkernel::MkBufferListC::FileGlob ( const std::string & pattern_match)
inlinestatic

C++: [constructor,static] MkBufferListC* MkBufferListC::FileGlob(MK_STRN pattern_match) C-API
create a new MkBufferListC using the result from a filesystem glob operation …

Definition at line 718 of file MkBufferListC_inline_cc.hh.

718 {
720 const MK_STRN pattern_match_hdl = pattern_match.c_str();
721 MK_BFL __retVal__L = MkBufferListFileGlob(pattern_match_hdl);
722 if (__retVal__L == NULL) {
723 throw MkInitError("MkBufferListC::FileGlob");
724 }
725 return MkBufferListC::MkBufferListC_ObjCreate(MK_RT_CALL __retVal__L);
726 }
struct MkBufferListS * MK_BFL
class-shortcut for struct MkBufferListS *, all shortcut using the XX_YYY syntax (only for public API)...
#define MkBufferListFileGlob(...)
const MK_STRB * MK_STRN
constant string pointer data-type
#define MK_RT_CALL
#define MkRtSetup_NULL

◆ FileGlob() [2/2]

MkBufferListC * ccmkkernel::MkBufferListC::FileGlob ( MK_STRN pattern_match)
inlinestatic

C++: [constructor,static] MkBufferListC* MkBufferListC::FileGlob(MK_STRN pattern_match) C-API
create a new MkBufferListC using the result from a filesystem glob operation …

Definition at line 708 of file MkBufferListC_inline_cc.hh.

708 {
710 MK_BFL __retVal__L = MkBufferListFileGlob(pattern_match);
711 if (__retVal__L == NULL) {
712 throw MkInitError("MkBufferListC::FileGlob");
713 }
714 return MkBufferListC::MkBufferListC_ObjCreate(MK_RT_CALL __retVal__L);
715 }

◆ Move() [1/2]

void ccmkkernel::MkBufferListC::Move ( const MkBufferListC & from)
inline

C++: to.Move(MkBufferListC* from) C-API
move all internal data from from to the end of to

Definition at line 807 of file MkBufferListC_inline_cc.hh.

807 {
808 MK_UNUSED auto to = getBFL();
809 const MK_BFL from_hdl = MkBufferListC::getBFL(from);
810 MkBufferListMove(to, from_hdl);
811 }
#define MkBufferListMove(...)

◆ Move() [2/2]

void ccmkkernel::MkBufferListC::Move ( MkBufferListC * from)
inline

C++: to.Move(MkBufferListC* from) C-API
move all internal data from from to the end of to

Definition at line 800 of file MkBufferListC_inline_cc.hh.

800 {
801 MK_UNUSED auto to = getBFL();
802 MK_BFL from_hdl = MkBufferListC::getBFL(from);
803 MkBufferListMove(to, from_hdl);
804 }

◆ PositionMerge() [1/2]

MkBufferListC * ccmkkernel::MkBufferListC::PositionMerge ( const MkBufferListC & source,
MK_NUM position )
inline

C++: MkBufferListC* bfl.PositionMerge(MkBufferListC* source, MK_NUM position) C-API
merge a MkBufferListS list into an MkBufferListS object on position

Definition at line 739 of file MkBufferListC_inline_cc.hh.

739 {
740 MK_UNUSED auto bfl = getBFL();
741 const MK_BFL source_hdl = MkBufferListC::getBFL(source);
742 MK_BFL __retVal__L = MkBufferListPositionMerge(bfl, source_hdl, position);
744 }
static MkBufferListC * MkBufferListC_ObjNew(MK_RT_ARGS MK_BFL hdl)
return MkBufferListC from LibMsgqueObject
#define MkBufferListPositionMerge(...)

◆ PositionMerge() [2/2]

MkBufferListC * ccmkkernel::MkBufferListC::PositionMerge ( MkBufferListC * source,
MK_NUM position )
inline

C++: MkBufferListC* bfl.PositionMerge(MkBufferListC* source, MK_NUM position) C-API
merge a MkBufferListS list into an MkBufferListS object on position

Definition at line 731 of file MkBufferListC_inline_cc.hh.

731 {
732 MK_UNUSED auto bfl = getBFL();
733 MK_BFL source_hdl = MkBufferListC::getBFL(source);
734 MK_BFL __retVal__L = MkBufferListPositionMerge(bfl, source_hdl, position);
736 }

◆ Reserve()

void ccmkkernel::MkBufferListC::Reserve ( MK_NUM num)
inline

C++: bfl.Reserve(MK_NUM num) C-API
reserve num items in a MkBufferListC object …

Definition at line 814 of file MkBufferListC_inline_cc.hh.

814 {
815 MK_UNUSED auto bfl = getBFL();
816 MkBufferListReserve(bfl, num);
817 }
#define MkBufferListReserve(...)

◆ Reset()

MkBufferListC * ccmkkernel::MkBufferListC::Reset ( )
inline

C++: MkBufferListC* bfl.Reset() C-API
reset a MkBufferListC object …

Definition at line 747 of file MkBufferListC_inline_cc.hh.

747 {
748 MK_UNUSED auto bfl = getBFL();
749 MK_BFL __retVal__L = MkBufferListReset(bfl);
751 }
#define MkBufferListReset(...)

◆ SearchC() [1/2]

MK_NUM ccmkkernel::MkBufferListC::SearchC ( const std::string & str,
MK_NUM len = -1,
MK_NUM startindex = 0 ) const
inline

C++: MK_NUM bfl.SearchC(MK_STRN str, MK_NUM len = -1, MK_NUM startindex = 0) C-API
search libmkkernel::MK_STR item from a MkBufferListS object starting at startindex

Definition at line 827 of file MkBufferListC_inline_cc.hh.

827 {
828 MK_UNUSED auto bfl = getBFLN();
829 const MK_STRN str_hdl = str.c_str();
830 MK_NUM __retVal__L = MkBufferListSearchC(bfl, str_hdl, len, startindex);
831 return __retVal__L;
832 }
#define MkBufferListSearchC(...)
int32_t MK_NUM
array size data-type ('num' items in array …

◆ SearchC() [2/2]

MK_NUM ccmkkernel::MkBufferListC::SearchC ( MK_STRN str,
MK_NUM len = -1,
MK_NUM startindex = 0 ) const
inline

C++: MK_NUM bfl.SearchC(MK_STRN str, MK_NUM len = -1, MK_NUM startindex = 0) C-API
search libmkkernel::MK_STR item from a MkBufferListS object starting at startindex

Definition at line 820 of file MkBufferListC_inline_cc.hh.

820 {
821 MK_UNUSED auto bfl = getBFLN();
822 MK_NUM __retVal__L = MkBufferListSearchC(bfl, str, len, startindex);
823 return __retVal__L;
824 }

◆ Size()

MK_NUM ccmkkernel::MkBufferListC::Size ( ) const
inline

C++: MK_NUM bfl.Size() C-API
get the number-of-items in the bfl

Definition at line 835 of file MkBufferListC_inline_cc.hh.

835 {
836 MK_UNUSED auto bfl = getBFLN();
837 MK_NUM __retVal__L = MkBufferListSizeI(bfl);
838 return __retVal__L;
839 }
#define MkBufferListSizeI(bfl)

◆ Sort()

MkBufferListC * ccmkkernel::MkBufferListC::Sort ( )
inline

C++: MkBufferListC* bfl.Sort() C-API
sort a MkBufferListC

Definition at line 754 of file MkBufferListC_inline_cc.hh.

754 {
755 MK_UNUSED auto bfl = getBFL();
756 MK_BFL __retVal__L = MkBufferListSort(bfl);
758 }
#define MkBufferListSort(...)

◆ ToBuffer()

MkBufferC * ccmkkernel::MkBufferListC::ToBuffer ( ) const
inline

C++: MkBufferC* bfl.ToBuffer() C-API
Export a bfl into an MkBufferC using an MkBufferStreamC

Definition at line 761 of file MkBufferListC_inline_cc.hh.

761 {
762 MK_UNUSED auto bfl = getBFLN();
763 MK_BUF __retVal__L = MkBufferListToBuffer(bfl);
764 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
765 }
static MkBufferC * MkBufferC_ObjNew(MK_RT_ARGS MK_BUF hdl)
return MkBufferC from LibMsgqueObject
struct MkBufferS * MK_BUF
class-shortcut for struct MkBufferS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MkBufferListToBuffer(...)

◆ ToList()

MkBufferListC *MK_DECL ccmkkernel::MkBufferListC::ToList ( ) const
inline

C++: MkBufferListC* bfl.ToList() C-API
get a target-language list representation of the bfl

Definition at line 90 of file MkBufferListC_inline_cc.hh.

90 {
91 return (MkBufferListC*) this;
92 }