92 ,
ZFMP_IN(ZFContainer *, another)
256 _ZFP_ZFArrayPrivate *d;
#define ZFComparerDefault
default comparer for common types, see ZFComparer
Definition ZFComparer.h:250
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfoverride
dummy macro shows that method override parent's method
Definition ZFCoreTypeDef_ClassType.h:58
#define zfclassFwd
forward declaration of a class type
Definition ZFCoreTypeDef_ClassType.h:31
_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 zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
#define ZFMP_IN_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:117
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_DECLARE_0(ReturnType, MethodName)
see ZFMethod
Definition ZFMethodDeclare.h:693
#define ZFMETHOD_DECLARE_2(ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMethod
Definition ZFMethodDeclare.h:1025
#define ZFMETHOD_DECLARE_3(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMethod
Definition ZFMethodDeclare.h:1206
#define ZFMETHOD_DECLARE_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:854
#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 zfclass
same as class, shows that this class is a ZFObject type
Definition ZFObjectClassTypeFwd.h:38
#define ZFOBJECT_ON_INIT_DECLARE_1(ZFMP_0)
see ZFOBJECT_ON_INIT_INLINE_1
Definition ZFObjectDeclare.h:263
#define ZFOBJECT_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:126
virtual void removeAll()
remove all object
virtual zfauto removeAndGet(zfindex index)
remove object at index and return removed item, assert failure if out of range
virtual void removeLast()
remove last object, assert fail if out of range
virtual void iterAdd(ZFObject *value)
see zfiter
virtual zfany getLast()
return last object, assert failure if out of range
virtual zfauto removeFirstAndGet()
remove first object and return removed item, assert fail if out of range
virtual void sort(zfindex start=(0), zfindex count=(((zfindex) -1)), ZFComparer< ZFObject * >::Comparer comparer=(_ZFP_ZFComparerDefault))
sort content in range [start, start + count), all of content must be comparable
virtual zfindex removeElementAll(ZFObject *obj)
remove all matched object, return number of element removed
virtual zfindex find(ZFObject *obj, ZFComparer< ZFObject * >::Comparer comparer=(_ZFP_ZFComparerDefault))
find element, compared by instance compare by default
virtual zfbool removeElement(ZFObject *obj)
remove first matched object, return whether the element removed
virtual void sortReversely(zfindex start=(0), zfindex count=(((zfindex) -1)), ZFComparer< ZFObject * >::Comparer comparer=(_ZFP_ZFComparerDefault))
sort content in range [start, start + count), all of content must be comparable
virtual void addFrom(ZFContainer *another)
add objects from another container
virtual zfiter iterFind(ZFObject *element)
see zfiter
virtual void objectOnInit(ZFContainer *another)
see ZFObject::objectOnInit
virtual zfany iterValue(const zfiter &it)
see zfiter
virtual zfany get(zfindex index)
return object at index, assert failure if out of range
virtual zfbool isEmpty()
return true if empty or false if not empty
virtual zfauto removeLastAndGet()
remove last object and return removed item, assert fail if out of range
virtual zfbool removeElementRevsersely(ZFObject *obj)
remove last matched object, return whether the element removed
virtual void set(zfindex index, ZFObject *obj)
replace object at index, assert fail if index out of range
virtual zfiter iter()
see zfiter
virtual zfany getFirst()
return first object, assert failure if out of range
virtual void add(ZFObject *obj, zfindex indexAddTo)
insert object at index, assert failure if obj = zfnull or index out of range [0, count]
virtual void remove(zfindex index, zfindex count=(1))
remove object at index, assert failure if out of range
virtual void iterRemove(zfiter &it)
see zfiter
virtual zfindex count()
return number of content
virtual void move(zfindex fromIndex, zfindex toIndexOrIndexMax)
move element
virtual zfiter iterForIndex(zfindex index)
see zfiter
virtual zfindex findReversely(ZFObject *obj, ZFComparer< ZFObject * >::Comparer comparer=(_ZFP_ZFComparerDefault))
find element, compared by instance compare by default
virtual void objectOnDealloc(void)
override this to destroy your object
virtual zfbool isContain(ZFObject *obj, ZFComparer< ZFObject * >::Comparer comparer=(_ZFP_ZFComparerDefault))
return true if contains the object, compared by instance compare by default
virtual void removeFirst()
remove first object, assert fail if out of range
comparar for template types
Definition ZFCoreTypeDef_OtherType.h:125
util method to cast ZFObject types freely
Definition zfany.h:35
a ZFObject holder which would release content object automatically when destroyed
Definition zfautoFwd.h:34
iterator for ZFFramework
Definition zfiter.h:40