6#ifndef _ZFI_ZFCoreArray_h_
7#define _ZFI_ZFCoreArray_h_
16template<typename T_Element, bool isPOD = zftIsPOD<T_Element>::Value>
19 static void objCreate(
21 ,
ZF_IN T_Element *pEnd
28 static void objCreate(
30 ,
ZF_IN T_Element *pEnd
31 ,
ZF_IN const T_Element *src
41 ,
ZF_IN const T_Element *src
46 static void objDestroy(
48 ,
ZF_IN T_Element *pEnd
56template<
typename T_Element>
59 static void objCreate(
61 ,
ZF_IN T_Element *pEnd
64 static void objCreate(
66 ,
ZF_IN T_Element *pEnd
67 ,
ZF_IN const T_Element *src
69 zfmemcpy(p, src, (pEnd - p) *
sizeof(T_Element));
73 ,
ZF_IN const T_Element *src
76 zfmemmove(dst, src, count *
sizeof(T_Element));
78 static void objDestroy(
80 ,
ZF_IN T_Element *pEnd
85template<
typename T_Element>
93 _ZFP_ZFCoreArrayPrivate(
void)
100 ~_ZFP_ZFCoreArrayPrivate(
void) {
101 _ZFP_ZFCoreArrayW<T_Element>::objDestroy(this->buf, this->buf + this->count);
225 return this->
count() != 0;
267 ,
ZF_IN const void *e
291template<typename T_Element>
321 if(d->refCount == 0) {
338 _ZFP_ZFCoreArrayPrivate<T_Element> *dTmp = d;
345 if(dTmp->refCount == 0) {
377 _ZFP_ZFCoreArrayPrivate<T_Element> *dTmp = d;
388 _ZFP_ZFCoreArrayW<T_Element>::objDestroy(d->buf, d->buf + d->count);
392 _capacityRequire(ref.count());
393 _ZFP_ZFCoreArrayW<T_Element>::objCreate(d->buf, d->buf + ref.count(), ref.arrayBuf());
394 d->count = (
zfuint)ref.count();
418 if(this->
count() != ref.count()) {
456 ret += token.tokenLeft;
459 ret += token.tokenSeparator;
461 ret += token.tokenValueLeft;
462 if(infoGetter !=
zfnull) {
468 ret += token.tokenValueRight;
470 if(count < this->
count()) {
472 ret += token.tokenSeparator;
474 ret += token.tokenEtc;
476 ret += token.tokenRight;
492 _capacityRequire(newCapacity);
504 return (
zfindex)(d ? d->capacity : 0);
512 _capacityRequire(this->
count() + 1);
513 _ZFP_ZFCoreArrayW<T_Element>::objCreate(d->buf + d->count, d->buf + d->count + 1, &e);
520 ZF_IN T_Element
const &e
524 index = this->
count();
529 _capacityRequire(this->
count() + 1);
530 _ZFP_ZFCoreArrayW<T_Element>::objCreate(d->buf + d->count, d->buf + d->count + 1);
531 T_Element *pos = d->buf + index;
532 _ZFP_ZFCoreArrayW<T_Element>::objMove(pos + 1, pos, this->
count() - index);
540 ZF_IN const T_Element *src
546 if(d ==
zfnull || src < d->buf || src >= d->buf + d->capacity) {
547 _capacityRequire(this->count() +
count);
548 _ZFP_ZFCoreArrayW<T_Element>::objCreate(d->buf + d->count, d->buf + d->count +
count, src);
564 this->
addFrom(ref.arrayBuf(), ref.count());
572 ZF_IN T_Element
const &e
576 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
588 ZF_IN T_Element
const &e
592 for(T_Element *p = d->buf + d->count - 1; p >= d->buf; --p) {
603 template<
typename T_Another>
605 ZF_IN T_Another
const &e
609 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
620 template<
typename T_Another>
622 ZF_IN T_Another
const &e
626 for(T_Element *p = d->buf + d->count - 1; p >= d->buf; --p) {
639 ZF_IN T_Element
const &e
643 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
655 template<
typename T_Another>
657 ZF_IN T_Another
const &e
661 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
674 ZF_IN T_Element
const &e
678 for(T_Element *p = d->buf + d->count - 1; p >= d->buf; --p) {
690 template<
typename T_Another>
692 ZF_IN T_Another
const &e
696 for(T_Element *p = d->buf + d->count - 1; p >= d->buf; --p) {
709 ZF_IN T_Element
const &e
714 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
727 template<
typename T_Another>
729 ZF_IN T_Another
const &e
734 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
748 _ZFP_ZFCoreArrayW<T_Element>::objMove(d->buf + index, d->buf + index + 1, this->count() - index - 1);
749 _ZFP_ZFCoreArrayW<T_Element>::objDestroy(d->buf + d->count - 1, d->buf + d->count);
758 if(
count > this->count() - index) {
759 count = this->count() - index;
761 _ZFP_ZFCoreArrayW<T_Element>::objMove(d->buf + index, d->buf + index +
count, this->count() - (index +
count));
762 _ZFP_ZFCoreArrayW<T_Element>::objDestroy(d->buf + d->count -
count, d->buf + d->count);
769 T_Element t = this->
get(index);
799 toIndexOrIndexMax = this->
count() - 1;
804 if(fromIndex == toIndexOrIndexMax) {
807 T_Element t = d->buf[fromIndex];
808 if(fromIndex < toIndexOrIndexMax) {
809 _ZFP_ZFCoreArrayW<T_Element>::objMove(d->buf + fromIndex, d->buf + fromIndex + 1, toIndexOrIndexMax - fromIndex);
812 _ZFP_ZFCoreArrayW<T_Element>::objMove(d->buf + toIndexOrIndexMax + 1, d->buf + toIndexOrIndexMax, fromIndex - toIndexOrIndexMax);
814 d->buf[toIndexOrIndexMax] = t;
823 ,
ZF_IN T_Element
const &e
835 return d->buf[index];
842 return d->buf[index];
849 return d->buf[index];
856 return d->buf[index];
870 return *(d->buf + d->count - 1);
891 ZF_IN T_Element
const &e
920 if(!this->
isEmpty() && start + 1 < this->count() &&
count > 1) {
924 , (
count > this->count() - start) ? (this->count() - 1) : (start +
count - 1)
937 if(!this->
isEmpty() && start + 1 < this->count() &&
count > 1) {
941 , (
count > this->count() - start) ? (this->count() - 1) : (start +
count - 1)
962 ) {this->
add(*(
const T_Element *)e, index);}
968 ,
ZF_IN const void *e
969 ) {this->
set(index, *(
const T_Element *)e);}
974 _ZFP_ZFCoreArrayPrivate<T_Element> *d;
980 _capacityOptimize(capacity);
981 if(capacity > this->capacity()) {
982 _capacityDoChange(capacity);
988 _ZFP_ZFCoreArrayW<T_Element>::objDestroy(d->buf, d->buf + d->count);
997 d =
zfpoolNew(_ZFP_ZFCoreArrayPrivate<T_Element>);
1000 T_Element *oldBuf = d->buf;
1001 zfuint oldCount = d->count;
1003 T_Element *newBuf = (T_Element *)
zfpoolMalloc(capacity *
sizeof(T_Element));
1004 _ZFP_ZFCoreArrayW<T_Element>::objCreate(newBuf, newBuf + oldCount, oldBuf);
1007 d->capacity = (
zfuint)capacity;
1008 d->count = oldCount;
1010 _ZFP_ZFCoreArrayW<T_Element>::objDestroy(oldBuf, oldBuf + oldCount);
1017template<typename T_Element>
1020 inline _ZFP_ZFCoreArrayCreate<T_Element> &add(
ZF_IN T_Element
const &v) {
1028#define _ZFP_ZFCoreArrayCreate_action_expand(value) .add(value)
1029#define _ZFP_ZFCoreArrayCreate_action(CreatorType, values, ...) \
1030 CreatorType() ZFM_FIX_PARAM(_ZFP_ZFCoreArrayCreate_action_expand, ZFM_EMPTY, values, ##__VA_ARGS__) .v
1039#define ZFCoreArrayCreate(ElementType, values, ...) _ZFP_ZFCoreArrayCreate_action(_ZFP_ZFCoreArrayCreate<ElementType>, values, ##__VA_ARGS__)
common comparer for ZFFramework
#define ZFComparerDefault
default comparer for common types, see ZFComparer
Definition ZFComparer.h:262
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
common log messages for ZFFramework
#define ZFCoreAssertIndexRange(index, range)
log that likes "[file function (line)] index i out of range [0, n)"
Definition ZFCoreLog_CommonLog.h:116
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#define zfclassLikePOD
shows the class is not a POD type, but you may use it like a POD except memset it to 0
Definition ZFCoreTypeDef_ClassType.h:41
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfnewPlacement(buf, Type,...)
placement new defined for future use, see zfnew for more info
Definition ZFCoreTypeDef_ClassType.h:122
#define zfpurevirtual
dummy macro shows that a method is pure virtual method
Definition ZFCoreTypeDef_ClassType.h:68
#define zfoverride
dummy macro shows that method override parent's method
Definition ZFCoreTypeDef_ClassType.h:58
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:196
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:200
void * zfmemmove(void *dst, const void *src, zfindex size)
wrapper to memmove
Definition ZFCoreTypeDef_ClassType.h:158
#define zfdeletePlacement(instance)
placement delete (instance->~Type()) defined for future use, see zfnew for more info
Definition ZFCoreTypeDef_ClassType.h:125
#define zfclassNotPOD
shows the class is not a POD type, you should not memset it or declare it in stack or copy value by c...
Definition ZFCoreTypeDef_ClassType.h:48
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:212
T_Element * zfmemmoveObject(T_Element *dst, const T_Element *src, zfindex count)
memmove for common object type, object must support operator =
Definition ZFCoreTypeDef_ClassType.h:168
void * zfmemcpy(void *dst, const void *src, zfindex size)
wrapper to memcpy
Definition ZFCoreTypeDef_ClassType.h:156
#define zfnullT
type for zfnull, can be used for function overload
Definition ZFCoreTypeDef_CoreType.h:85
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zftrue
bool true type
Definition ZFCoreTypeDef_CoreType.h:107
#define zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
#define zffalse
bool false type
Definition ZFCoreTypeDef_CoreType.h:111
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
_ZFT_t_zfuint zfuint
same as unsigned int, see zfindex
Definition ZFCoreTypeDef_CoreType.h:169
#define ZFOUTPUT_TYPE(T_Type, outputAction)
declare your custom type conversion to string, convenient for debug
Definition ZFCoreTypeDef_OtherType.h:221
#define ZFOUTPUT_TYPE_TEMPLATE(T_typenameList, T_Type, outputAction)
see ZFOUTPUT_TYPE
Definition ZFCoreTypeDef_OtherType.h:262
ZFCompareResult
compare result of two ZFObjects
Definition ZFCoreTypeDef_OtherType.h:28
@ ZFCompareUncomparable
Definition ZFCoreTypeDef_OtherType.h:29
@ ZFCompareEqual
Definition ZFCoreTypeDef_OtherType.h:31
void zftToStringT(zfstring &s, T_Type const &v)
util function to obtain object info
Definition ZFCoreTypeDef_OtherType.h:182
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
math utilities for ZFFramework
zfbool zfmSortReversely(T_Holder &holder, zfindex left, zfindex right, T_Comparer const &comparer)
sort with custom comparer in range [left, right], holder must support operator []
Definition ZFCoreUtilMath.h:205
zfbool zfmSort(T_Holder &holder, zfindex left, zfindex right, T_Comparer const &comparer)
sort with custom comparer in range [left, right], holder must support operator []
Definition ZFCoreUtilMath.h:179
#define zfpoolDelete(obj)
see zfnew
Definition ZFMemPool.h:81
#define zfpoolFree(p)
see zfnew
Definition ZFMemPool.h:100
#define zfpoolNew(T_Type,...)
see zfnew
Definition ZFMemPool.h:80
#define zfpoolMalloc(size)
see zfnew
Definition ZFMemPool.h:98
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define ZFTokenForContainerDefault()
see ZFTokenForContainer, modifyable, ZFTokenForContainerTrim by default
Definition ZFToken.h:107
ZFCompareResult(* Comparer)(T_Comparable const &e0, T_Comparable2 const &e1)
see ZFComparer
Definition ZFCoreTypeDef_OtherType.h:130
dummy base for ZFCoreArray
Definition ZFCoreArray.h:110
virtual void objectInfoOfContentT(zfstring &ret, zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault) const =0
return content info
virtual zfstring objectInfo(void) const
return object info
Definition ZFCoreArray.h:133
virtual ZFCoreArrayBase * refNew(void) const =0
new reference
virtual void refDelete(void)
delete reference
Definition ZFCoreArray.h:120
virtual zfindex genericFind(const void *e)=0
generic version
virtual void objectInfoT(zfstring &ret) const
see objectInfo
Definition ZFCoreArray.h:129
virtual void genericCopyFrom(const ZFCoreArrayBase &ref)=0
generic version
virtual void capacityTrim(void)=0
trim current capacity
virtual void genericAdd(const void *e, zfindex index)=0
generic version
virtual void removeFirst(void)
remove first, assert fail if out of range
Definition ZFCoreArray.h:193
virtual void * refImpl(void) const =0
get the impl
virtual void sort(zfindex start=0, zfindex count=((zfindex) -1))=0
sort
virtual void capacity(zfindex newCapacity)=0
change capacity to hold at least newCapacity
virtual void genericSwap(ZFCoreArrayBase &ref)=0
generic version
virtual void genericAdd(const void *e)
generic version
Definition ZFCoreArray.h:254
virtual void sortReversely(zfindex start=0, zfindex count=((zfindex) -1))=0
sort reversely
virtual const void * genericGet(zfindex index) const =0
generic version
virtual zfindex genericRemoveElementAll(const void *e)=0
generic version
virtual void remove(zfindex index)=0
remove element at index with count, assert fail if out of range
virtual void removeLast(void)
remove last, assert fail if out of range
Definition ZFCoreArray.h:199
virtual zfindex genericFindReversely(const void *e)=0
generic version
virtual void genericAddFrom(const ZFCoreArrayBase &ref)=0
generic version
virtual void move(zfindex fromIndex, zfindex toIndexOrIndexMax)=0
move element
virtual zfindex count(void) const =0
element count of this array
virtual zfstring objectInfoOfContent(zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault) const
return content info
Definition ZFCoreArray.h:146
virtual void remove(zfindex index, zfindex count)=0
remove element at index with count, assert fail if out of range
virtual zfbool isEmpty(void) const
true if empty
Definition ZFCoreArray.h:224
virtual void genericSet(zfindex index, const void *e)=0
generic version
virtual void removeAll(void)
remove all content
Definition ZFCoreArray.h:205
virtual zfindex capacity(void) const =0
get capacity
light weight array
Definition ZFCoreArray.h:292
virtual void capacityTrim(void)
trim current capacity
Definition ZFCoreArray.h:495
ZFCoreArray(void)
main constructor
Definition ZFCoreArray.h:303
virtual void capacity(zfindex newCapacity)
change capacity to hold at least newCapacity
Definition ZFCoreArray.h:491
virtual void genericAddFrom(const ZFCoreArrayBase &ref)
generic version
Definition ZFCoreArray.h:964
virtual zfbool isEmpty(void) const
true if empty
Definition ZFCoreArray.h:888
T_Element const & getLast(void) const
try to get first element, assert fail if empty
Definition ZFCoreArray.h:868
virtual void genericAdd(const void *e, zfindex index)
generic version
Definition ZFCoreArray.h:959
zfindex removeElementAll(T_Another const &e, typename ZFComparer< T_Element, T_Another >::Comparer comparer)
remove all matched element, return number of removed element
Definition ZFCoreArray.h:728
T_Element & get(zfindex index)
get element's reference at index
Definition ZFCoreArray.h:833
zfindex objectRetainCount(void) const
get retain count
Definition ZFCoreArray.h:401
virtual void objectInfoOfContentT(zfstring &ret, zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault) const
return content info
Definition ZFCoreArray.h:431
void add(T_Element const &e)
add element
Definition ZFCoreArray.h:511
zfbool removeElementReversely(T_Element const &e, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault)
remove last matched element, return whether the element removed
Definition ZFCoreArray.h:673
virtual zfstring objectInfoOfContent(zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault) const
return content info
Definition ZFCoreArray.h:439
void sortReversely(zfindex start, zfindex count, typename ZFComparer< T_Element >::Comparer comparer)
sort element
Definition ZFCoreArray.h:932
virtual zfbool isContain(T_Element const &e, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault) const
true if contains element
Definition ZFCoreArray.h:890
zfbool removeElementReversely(T_Another const &e, typename ZFComparer< T_Element, T_Another >::Comparer comparer)
remove last matched element, return whether the element removed
Definition ZFCoreArray.h:691
virtual void genericCopyFrom(const ZFCoreArrayBase &ref)
generic version
Definition ZFCoreArray.h:951
void add(T_Element const &e, zfindex index)
add element at index
Definition ZFCoreArray.h:519
zfindex findReversely(T_Another const &e, typename ZFComparer< T_Element, T_Another >::Comparer comparer) const
find element reversely
Definition ZFCoreArray.h:621
virtual void remove(zfindex index)
remove element at index with count, assert fail if out of range
Definition ZFCoreArray.h:746
T_Element const & get(zfindex index) const
get element's const reference at index
Definition ZFCoreArray.h:840
virtual zfindex genericFindReversely(const void *e)
generic version
Definition ZFCoreArray.h:955
zfindex find(T_Element const &e, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault) const
find element
Definition ZFCoreArray.h:571
void addFrom(const ZFCoreArray< T_Element > &ref)
add from another array
Definition ZFCoreArray.h:562
zfstring objectInfoOfContent(zfindex maxCount, const ZFTokenForContainer &token, typename ZFCoreInfoGetter< T_Element >::InfoGetter infoGetter) const
return content info
Definition ZFCoreArray.h:479
zfbool removeElement(T_Another const &e, typename ZFComparer< T_Element, T_Another >::Comparer comparer)
remove first matched element, return whether the element removed
Definition ZFCoreArray.h:656
T_Element removeAndGet(zfindex index)
remove and return the removed value
Definition ZFCoreArray.h:768
T_Element removeLastAndGet(void)
remove last and return the removed value, or assert fail if empty
Definition ZFCoreArray.h:786
virtual zfindex capacity(void) const
get capacity
Definition ZFCoreArray.h:503
T_Element const & getFirst(void) const
try to get first element, assert fail if empty
Definition ZFCoreArray.h:861
virtual const void * genericGet(zfindex index) const
generic version
Definition ZFCoreArray.h:971
virtual void move(zfindex fromIndex, zfindex toIndexOrIndexMax)
move element
Definition ZFCoreArray.h:793
ZFCoreArray(const ZFCoreArray< T_Element > &ref)
construct from another array
Definition ZFCoreArray.h:311
ZFCompareResult objectCompareValue(const ZFCoreArray< T_Element > &ref, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault) const
compare by content
Definition ZFCoreArray.h:411
void set(zfindex index, T_Element const &e)
set element at index, or assert fail if index out of range
Definition ZFCoreArray.h:821
T_Element removeFirstAndGet(void)
remove first and return the removed value, or assert fail if empty
Definition ZFCoreArray.h:777
zfindex removeElementAll(T_Element const &e, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault)
remove all matched element, return number of removed element
Definition ZFCoreArray.h:708
void swap(ZFCoreArray< T_Element > &ref)
swap internal data
Definition ZFCoreArray.h:376
virtual void genericSet(zfindex index, const void *e)
generic version
Definition ZFCoreArray.h:966
void objectInfoOfContentT(zfstring &ret, zfindex maxCount, const ZFTokenForContainer &token, typename ZFCoreInfoGetter< T_Element >::InfoGetter infoGetter) const
see objectInfoOfContent
Definition ZFCoreArray.h:449
virtual void remove(zfindex index, zfindex count)
remove element at index with count, assert fail if out of range
Definition ZFCoreArray.h:753
void sort(zfindex start, zfindex count, typename ZFComparer< T_Element >::Comparer comparer)
sort element
Definition ZFCoreArray.h:915
virtual zfindex genericFind(const void *e)
generic version
Definition ZFCoreArray.h:953
void addFrom(const T_Element *src, zfindex count)
add elements, src can be part of this array's buffer
Definition ZFCoreArray.h:539
T_Element * arrayBuf(void)
directly access the array
Definition ZFCoreArray.h:879
zfbool removeElement(T_Element const &e, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault)
remove first matched element, return whether the element removed
Definition ZFCoreArray.h:638
void copyFrom(const ZFCoreArray< T_Element > &ref)
copy all settings and contents from another array
Definition ZFCoreArray.h:385
const T_Element * arrayBuf(void) const
see arrayBuf
Definition ZFCoreArray.h:883
zfindex findReversely(T_Element const &e, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault) const
find element reversely
Definition ZFCoreArray.h:587
virtual void genericSwap(ZFCoreArrayBase &ref)
generic version
Definition ZFCoreArray.h:949
ZFCoreArray(const zft_zfnullT &dummy)
dummy constructor
Definition ZFCoreArray.h:307
virtual void sort(zfindex start=0, zfindex count=((zfindex) -1))
sort
Definition ZFCoreArray.h:899
virtual ZFCoreArrayBase * refNew(void) const
new reference
Definition ZFCoreArray.h:331
ZFCompareResult objectCompare(const ZFCoreArray< T_Element > &ref) const
compare by instance
Definition ZFCoreArray.h:405
virtual zfindex count(void) const
element count of this array
Definition ZFCoreArray.h:886
virtual void sortReversely(zfindex start=0, zfindex count=((zfindex) -1))
sort reversely
Definition ZFCoreArray.h:906
T_Element ValueType
value type
Definition ZFCoreArray.h:297
virtual void * refImpl(void) const
get the impl
Definition ZFCoreArray.h:333
zfindex find(T_Another const &e, typename ZFComparer< T_Element, T_Another >::Comparer comparer) const
find element
Definition ZFCoreArray.h:604
virtual zfindex genericRemoveElementAll(const void *e)
generic version
Definition ZFCoreArray.h:957
ZFCoreArray< T_Element > & refPrepare(void)
prepare instance to make it able to be shared between each copy
Definition ZFCoreArray.h:329
void(* InfoGetter)(zfstring &ret, T_Type const &v)
proto type for obtain object info, see zftToStringT
Definition ZFCoreTypeDef_OtherType.h:151
util class to hold string tokens
Definition ZFToken.h:17
void ZFCoreCapacityOptimize(zfindex &capacity)
util to optimize capacity
Definition zfstring.h:20