core map type for private use only More...
#include <ZFCoreOrderMap.h>
Public Member Functions | |
| ZFCoreOrderMap (void) | |
| construct an empty map | |
| ZFCoreOrderMap (const ZFCoreOrderMap< T_Key, T_Value > &ref) | |
| retain the ref, to copy, use copyFrom | |
| ZFCoreOrderMap & | operator= (const ZFCoreOrderMap< T_Key, T_Value > &ref) |
| retain the ref, to copy, use copyFrom | |
| zfbool | operator== (const ZFCoreOrderMap< T_Key, T_Value > &ref) const |
| true if same ref | |
| zfbool | operator!= (const ZFCoreOrderMap< T_Key, T_Value > &ref) const |
| true if not same ref | |
| void | refPrepare (void) |
| prepare instance to make it able to be shared between each copy | |
| void | refDelete (void) |
| delete reference | |
| void | objectInfoT (zfstring &ret) const |
| see objectInfo | |
| zfstring | objectInfo (void) const |
| return object info | |
| ZFCompareResult | objectCompare (ZFCoreOrderMap< T_Key, T_Value > const &ref) const |
| compare by instance | |
| ZFCompareResult | objectCompareValue (ZFCoreOrderMap< T_Key, T_Value > const &ref) const |
| compare by instance | |
| void | objectInfoOfContentT (zfstring &ret, zfindex maxCount=((zfindex) -1), const ZFTokenForKeyValueContainer &token=_ZFP_ZFTokenForKeyValueContainerDefault) const |
| see objectInfoOfContent | |
| zfstring | objectInfoOfContent (zfindex maxCount=((zfindex) -1), const ZFTokenForKeyValueContainer &token=_ZFP_ZFTokenForKeyValueContainerDefault) const |
| return contents info | |
| void | swap (ZFCoreOrderMap< T_Key, T_Value > &ref) |
| swap internal data | |
| void | copyFrom (const ZFCoreOrderMap< T_Key, T_Value > &ref) |
| copy all contents from ref, remove all before copy | |
| zfindex | count (void) const |
| return count | |
| zfbool | isEmpty (void) const |
| true if empty | |
| zfbool | isContain (const T_Key &key) const |
| true if contains the key | |
| void | addFrom (const ZFCoreOrderMap< T_Key, T_Value > &ref) |
| add elements from ref | |
| void | set (const T_Key &key, const T_Value &value) |
| change value or create if not exist, value would be retained by this method | |
| const T_Value * | get (const T_Key &key) const |
| get value or null if not exist | |
| T_Value * | get (const T_Key &key) |
| get value or null if not exist | |
| T_Value & | access (const T_Key &key) |
| access value or create if not exist | |
| void | allKeyT (ZFCoreArray< T_Key > &ret) const |
| see allKey | |
| ZFCoreArray< T_Key > | allKey (void) const |
| return a copy of all keys | |
| void | allValueT (ZFCoreArray< T_Value > &ret) const |
| see allValue | |
| ZFCoreArray< T_Value > | allValue (void) const |
| return a copy of all values | |
| void | remove (const T_Key &key) |
| remove or do nothing if not exist | |
| void | removeAll (void) |
| remove all content | |
| zfiter | iter (void) const |
| see zfiter | |
| zfiter | iterFind (const T_Key &key) const |
| see zfiter | |
| const T_Key & | iterKey (const zfiter &it) const |
| see zfiter | |
| const T_Value & | iterValue (const zfiter &it) const |
| see zfiter | |
| T_Value & | iterValue (const zfiter &it) |
| see zfiter | |
| void | iterValue (zfiter &it, const T_Value &value) |
| see zfiter | |
| void | iterRemove (zfiter &it) |
| see zfiter | |
| zfiter | iterAdd (const T_Key &key, const T_Value &value) |
| see zfiter | |
| void | move (zfiter &from, const zfiter &to) |
| move from to position before to, or move to tail if to not valid | |
core map type for private use only
used to reduce dependency of stl
key must support zftHash and operator ==