ZFFramework use these container types:
- all other C++ containers, such as std::vector, can be used directly
- ZFCoreArray/ZFCoreMap
C++-style container similar to std::vector / std::map, may not so efficient compared to STL containers, used to reduce dependency, use only if necessary
#define zfnew(Type,...)
same as new defined for future use
Definition ZFCoreTypeDef_ClassType.h:89
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
light weight array
Definition ZFCoreArray.h:331
void add(T_Element const &e)
add element
Definition ZFCoreArray.h:530
core map type for private use only
Definition ZFCoreMap.h:26
void set(const zfstring &key, const ZFCorePointer &value)
change value or create if not exist, value would be retained by this method
see ZFCorePointerT
Definition ZFCorePointer.h:420
- ZFContainer/ZFKeyValueContainer
container as ZFObject, can hold ZFObject types only
typically we have ZFArray, ZFSet, ZFHashSet as container, and ZFMap, ZFHashMap as key value container
all container would automatically retain elements when add, and release when remove
util class to alloc and hold ZFObject type
Definition ZFObjectAutoPtr.h:157