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);
113 else if(capacity < 64) {
114 capacity = ((capacity / 16) + 1) * 16;
116 else if(capacity < 256) {
117 capacity = ((capacity / 64) + 1) * 64;
120 capacity = ((capacity / 256) + 1) * 256;
131 else if(capacity < 32) {
132 capacity = ((capacity / 8) + 1) * 8;
134 else if(capacity < 128) {
135 capacity = ((capacity / 32) + 1) * 32;
138 capacity = ((capacity / 64) + 1) * 64;
149 else if(capacity < 32) {
150 capacity = ((capacity / 4) + 1) * 4;
153 capacity = ((capacity / 8) + 1) * 8;
277 return this->
count() != 0;
317 ,
ZF_IN const void *e
341template<typename T_Element>
361 if(d->refCount == 0) {
374 _ZFP_ZFCoreArrayPrivate<T_Element> *dTmp = d;
381 if(dTmp->refCount == 0) {
407 _ZFP_ZFCoreArrayPrivate<T_Element> *dTmp = d;
418 _ZFP_ZFCoreArrayW<T_Element>::objDestroy(d->buf, d->buf + d->count);
422 _capacityRequire(ref.count());
423 _ZFP_ZFCoreArrayW<T_Element>::objCreate(d->buf, d->buf + ref.count(), ref.arrayBuf());
424 d->count = (
zfuint)ref.count();
448 if(this->
count() != ref.count()) {
486 ret += token.tokenLeft;
489 ret += token.tokenSeparator;
491 ret += token.tokenValueLeft;
492 if(infoGetter !=
zfnull) {
498 ret += token.tokenValueRight;
500 if(count < this->
count()) {
502 ret += token.tokenSeparator;
504 ret += token.tokenEtc;
506 ret += token.tokenRight;
522 _capacityRequire(newCapacity);
534 return (
zfindex)(d ? d->capacity : 0);
542 _capacityRequire(this->
count() + 1);
543 _ZFP_ZFCoreArrayW<T_Element>::objCreate(d->buf + d->count, d->buf + d->count + 1, &e);
550 ZF_IN T_Element
const &e
554 index = this->
count();
559 _capacityRequire(this->
count() + 1);
560 _ZFP_ZFCoreArrayW<T_Element>::objCreate(d->buf + d->count, d->buf + d->count + 1);
561 T_Element *pos = d->buf + index;
562 _ZFP_ZFCoreArrayW<T_Element>::objMove(pos + 1, pos, this->
count() - index);
570 ZF_IN const T_Element *src
576 if(d ==
zfnull || src < d->buf || src >= d->buf + d->capacity) {
577 _capacityRequire(this->count() +
count);
578 _ZFP_ZFCoreArrayW<T_Element>::objCreate(d->buf + d->count, d->buf + d->count +
count, src);
594 this->
addFrom(ref.arrayBuf(), ref.count());
602 ZF_IN T_Element
const &e
606 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
618 ZF_IN T_Element
const &e
622 for(T_Element *p = d->buf + d->count - 1; p >= d->buf; --p) {
633 template<
typename T_Another>
635 ZF_IN T_Another
const &e
639 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
650 template<
typename T_Another>
652 ZF_IN T_Another
const &e
656 for(T_Element *p = d->buf + d->count - 1; p >= d->buf; --p) {
669 ZF_IN T_Element
const &e
673 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
685 template<
typename T_Another>
687 ZF_IN T_Another
const &e
691 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
704 ZF_IN T_Element
const &e
708 for(T_Element *p = d->buf + d->count - 1; p >= d->buf; --p) {
720 template<
typename T_Another>
722 ZF_IN T_Another
const &e
726 for(T_Element *p = d->buf + d->count - 1; p >= d->buf; --p) {
739 ZF_IN T_Element
const &e
744 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
757 template<
typename T_Another>
759 ZF_IN T_Another
const &e
764 for(T_Element *p = d->buf, *pEnd = d->buf + d->count; p < pEnd; ++p) {
778 _ZFP_ZFCoreArrayW<T_Element>::objMove(d->buf + index, d->buf + index + 1, this->count() - index - 1);
779 _ZFP_ZFCoreArrayW<T_Element>::objDestroy(d->buf + d->count - 1, d->buf + d->count);
788 if(
count > this->count() - index) {
789 count = this->count() - index;
791 _ZFP_ZFCoreArrayW<T_Element>::objMove(d->buf + index, d->buf + index +
count, this->count() - (index +
count));
792 _ZFP_ZFCoreArrayW<T_Element>::objDestroy(d->buf + d->count -
count, d->buf + d->count);
799 T_Element t = this->
get(index);
829 toIndexOrIndexMax = this->
count() - 1;
834 if(fromIndex == toIndexOrIndexMax) {
837 T_Element t = d->buf[fromIndex];
838 if(fromIndex < toIndexOrIndexMax) {
839 _ZFP_ZFCoreArrayW<T_Element>::objMove(d->buf + fromIndex, d->buf + fromIndex + 1, toIndexOrIndexMax - fromIndex);
842 _ZFP_ZFCoreArrayW<T_Element>::objMove(d->buf + toIndexOrIndexMax + 1, d->buf + toIndexOrIndexMax, fromIndex - toIndexOrIndexMax);
844 d->buf[toIndexOrIndexMax] = t;
853 ,
ZF_IN T_Element
const &e
865 return d->buf[index];
872 return d->buf[index];
879 return d->buf[index];
886 return d->buf[index];
900 return *(d->buf + d->count - 1);
921 ZF_IN T_Element
const &e
950 if(!this->
isEmpty() && start + 1 < this->count() &&
count > 1) {
954 (
count > this->count() - start) ? (this->count() - 1) : (start +
count - 1),
966 if(!this->
isEmpty() && start + 1 < this->count() &&
count > 1) {
970 (
count > this->count() - start) ? (this->count() - 1) : (start +
count - 1),
988 ) {this->
add(*(
const T_Element *)e, index);}
994 ,
ZF_IN const void *e
995 ) {this->
set(index, *(
const T_Element *)e);}
1000 _ZFP_ZFCoreArrayPrivate<T_Element> *d;
1003 _ZFP_ZFCoreArrayCapacity<
1004 sizeof(T_Element) <=
sizeof(
void *)
1006 : (
sizeof(T_Element) <= 4 *
sizeof(
void *)
1010 >::capacityOptimize(capacity);
1013 _capacityOptimize(capacity);
1014 if(capacity > this->capacity()) {
1015 _capacityDoChange(capacity);
1021 _ZFP_ZFCoreArrayW<T_Element>::objDestroy(d->buf, d->buf + d->count);
1030 d =
zfpoolNew(_ZFP_ZFCoreArrayPrivate<T_Element>);
1033 T_Element *oldBuf = d->buf;
1034 zfuint oldCount = d->count;
1036 T_Element *newBuf = (T_Element *)
zfmalloc(capacity *
sizeof(T_Element));
1037 _ZFP_ZFCoreArrayW<T_Element>::objCreate(newBuf, newBuf + oldCount, oldBuf);
1040 d->capacity = (
zfuint)capacity;
1041 d->count = oldCount;
1043 _ZFP_ZFCoreArrayW<T_Element>::objDestroy(oldBuf, oldBuf + oldCount);
1050template<typename T_Element>
1053 inline _ZFP_ZFCoreArrayCreate<T_Element> &add(
ZF_IN T_Element
const &v) {
1061#define _ZFP_ZFCoreArrayCreate_action_expand(value) .add(value)
1062#define _ZFP_ZFCoreArrayCreate_action(CreatorType, values, ...) \
1063 CreatorType() ZFM_FIX_PARAM(_ZFP_ZFCoreArrayCreate_action_expand, ZFM_EMPTY, values, ##__VA_ARGS__) .v
1072#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:250
#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
Definition ZFCoreTypeDef_ClassType.h:113
#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 zffree(ptr)
same as free defined for future use, do nothing if ptr is NULL
Definition ZFCoreTypeDef_ClassType.h:104
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:188
void * zfmemmove(void *dst, const void *src, zfindex size)
wrapper to memmove
Definition ZFCoreTypeDef_ClassType.h:146
#define zfdeletePlacement(instance)
placement delete (instance->~Type()) defined for future use
Definition ZFCoreTypeDef_ClassType.h:116
#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:200
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:156
void * zfmemcpy(void *dst, const void *src, zfindex size)
wrapper to memcpy
Definition ZFCoreTypeDef_ClassType.h:144
#define zfmalloc(size)
same as malloc defined for future use
Definition ZFCoreTypeDef_ClassType.h:90
_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, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault)
sort with custom comparer in range [left, right], holder must support operator []
Definition ZFCoreUtilMath.h:200
zfbool zfmSort(T_Holder &holder, zfindex left, zfindex right, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault)
sort with custom comparer in range [left, right], holder must support operator []
Definition ZFCoreUtilMath.h:174
#define zfpoolDelete(obj)
see zfpoolNew
Definition ZFMemPool.h:38
#define zfpoolNew(T_Type,...)
internal use only, for allocating internal types for performance
Definition ZFMemPool.h:37
#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:162
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:185
virtual ZFCoreArrayBase * refNew(void) const =0
new reference
virtual void refDelete(void)
delete reference
Definition ZFCoreArray.h:172
virtual zfindex genericFind(const void *e)=0
generic version
virtual void objectInfoT(zfstring &ret) const
see objectInfo
Definition ZFCoreArray.h:181
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:245
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:304
virtual void sortReversely(zfindex start=0, zfindex count=((zfindex) -1))=0
sort reversely
virtual const void * genericGet(zfindex index) const =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:251
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:198
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:276
virtual void genericSet(zfindex index, const void *e)=0
generic version
virtual void removeAll(void)
remove all content
Definition ZFCoreArray.h:257
virtual zfindex capacity(void) const =0
get capacity
light weight array
Definition ZFCoreArray.h:342
virtual void capacityTrim(void)
trim current capacity
Definition ZFCoreArray.h:525
ZFCoreArray(void)
main constructor
Definition ZFCoreArray.h:347
virtual void capacity(zfindex newCapacity)
change capacity to hold at least newCapacity
Definition ZFCoreArray.h:521
virtual void genericAddFrom(const ZFCoreArrayBase &ref)
generic version
Definition ZFCoreArray.h:990
virtual zfbool isEmpty(void) const
true if empty
Definition ZFCoreArray.h:918
T_Element const & getLast(void) const
try to get first element, assert fail if empty
Definition ZFCoreArray.h:898
virtual void genericAdd(const void *e, zfindex index)
generic version
Definition ZFCoreArray.h:985
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:758
T_Element & get(zfindex index)
get element's reference at index
Definition ZFCoreArray.h:863
zfindex objectRetainCount(void) const
get retain count
Definition ZFCoreArray.h:431
virtual void objectInfoOfContentT(zfstring &ret, zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault) const
return content info
Definition ZFCoreArray.h:461
void add(T_Element const &e)
add element
Definition ZFCoreArray.h:541
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:703
virtual zfstring objectInfoOfContent(zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault) const
return content info
Definition ZFCoreArray.h:469
virtual zfbool isContain(T_Element const &e, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault) const
true if contains element
Definition ZFCoreArray.h:920
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:721
virtual void genericCopyFrom(const ZFCoreArrayBase &ref)
generic version
Definition ZFCoreArray.h:979
void add(T_Element const &e, zfindex index)
add element at index
Definition ZFCoreArray.h:549
zfindex findReversely(T_Another const &e, typename ZFComparer< T_Element, T_Another >::Comparer comparer) const
find element reversely
Definition ZFCoreArray.h:651
virtual void remove(zfindex index)
remove element at index with count, assert fail if out of range
Definition ZFCoreArray.h:776
T_Element const & get(zfindex index) const
get element's const reference at index
Definition ZFCoreArray.h:870
virtual zfindex genericFindReversely(const void *e)
generic version
Definition ZFCoreArray.h:983
zfindex find(T_Element const &e, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault) const
find element
Definition ZFCoreArray.h:601
void addFrom(const ZFCoreArray< T_Element > &ref)
add from another array
Definition ZFCoreArray.h:592
zfstring objectInfoOfContent(zfindex maxCount, const ZFTokenForContainer &token, typename ZFCoreInfoGetter< T_Element >::InfoGetter infoGetter) const
return content info
Definition ZFCoreArray.h:509
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:686
T_Element removeAndGet(zfindex index)
remove and return the removed value
Definition ZFCoreArray.h:798
T_Element removeLastAndGet(void)
remove last and return the removed value, or assert fail if empty
Definition ZFCoreArray.h:816
virtual zfindex capacity(void) const
get capacity
Definition ZFCoreArray.h:533
T_Element const & getFirst(void) const
try to get first element, assert fail if empty
Definition ZFCoreArray.h:891
virtual const void * genericGet(zfindex index) const
generic version
Definition ZFCoreArray.h:997
virtual void move(zfindex fromIndex, zfindex toIndexOrIndexMax)
move element
Definition ZFCoreArray.h:823
ZFCoreArray(const ZFCoreArray< T_Element > &ref)
construct from another array
Definition ZFCoreArray.h:351
ZFCompareResult objectCompareValue(const ZFCoreArray< T_Element > &ref, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault) const
compare by content
Definition ZFCoreArray.h:441
void set(zfindex index, T_Element const &e)
set element at index, or assert fail if index out of range
Definition ZFCoreArray.h:851
T_Element removeFirstAndGet(void)
remove first and return the removed value, or assert fail if empty
Definition ZFCoreArray.h:807
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:738
void swap(ZFCoreArray< T_Element > &ref)
swap internal data
Definition ZFCoreArray.h:406
virtual void genericSet(zfindex index, const void *e)
generic version
Definition ZFCoreArray.h:992
void objectInfoOfContentT(zfstring &ret, zfindex maxCount, const ZFTokenForContainer &token, typename ZFCoreInfoGetter< T_Element >::InfoGetter infoGetter) const
see objectInfoOfContent
Definition ZFCoreArray.h:479
virtual void remove(zfindex index, zfindex count)
remove element at index with count, assert fail if out of range
Definition ZFCoreArray.h:783
virtual zfindex genericFind(const void *e)
generic version
Definition ZFCoreArray.h:981
void addFrom(const T_Element *src, zfindex count)
add elements, src can be part of this array's buffer
Definition ZFCoreArray.h:569
T_Element * arrayBuf(void)
directly access the array
Definition ZFCoreArray.h:909
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:668
void copyFrom(const ZFCoreArray< T_Element > &ref)
copy all settings and contents from another array
Definition ZFCoreArray.h:415
const T_Element * arrayBuf(void) const
see arrayBuf
Definition ZFCoreArray.h:913
zfindex findReversely(T_Element const &e, typename ZFComparer< T_Element >::Comparer comparer=_ZFP_ZFComparerDefault) const
find element reversely
Definition ZFCoreArray.h:617
virtual void genericSwap(ZFCoreArrayBase &ref)
generic version
Definition ZFCoreArray.h:977
virtual void sort(zfindex start=0, zfindex count=((zfindex) -1))
sort
Definition ZFCoreArray.h:929
virtual ZFCoreArrayBase * refNew(void) const
new reference
Definition ZFCoreArray.h:367
ZFCompareResult objectCompare(const ZFCoreArray< T_Element > &ref) const
compare by instance
Definition ZFCoreArray.h:435
virtual zfindex count(void) const
element count of this array
Definition ZFCoreArray.h:916
void sort(zfindex start, zfindex count, typename ZFComparer< T_Element >::Comparer elementComparer)
sort element
Definition ZFCoreArray.h:945
virtual void sortReversely(zfindex start=0, zfindex count=((zfindex) -1))
sort reversely
Definition ZFCoreArray.h:936
void sortReversely(zfindex start, zfindex count, typename ZFComparer< T_Element >::Comparer elementComparer)
sort element
Definition ZFCoreArray.h:961
virtual void * refImpl(void) const
get the impl
Definition ZFCoreArray.h:369
zfindex find(T_Another const &e, typename ZFComparer< T_Element, T_Another >::Comparer comparer) const
find element
Definition ZFCoreArray.h:634
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