core set type for private use only More...
#include <ZFCoreSet.h>
Public Member Functions | |
| ZFCoreSet (void) | |
| construct an empty set | |
| ZFCoreSet (const zfself &ref) | |
| retain the ref, to copy, use copyFrom | |
| ZFCoreSet & | operator= (const zfself &ref) |
| retain the ref, to copy, use copyFrom | |
| zfbool | operator== (const zfself &ref) const |
| true if same ref | |
| zfbool | operator!= (const zfself &ref) const |
| true if not same ref | |
| zfself & | 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 (zfself const &ref) const |
| compare by instance | |
| ZFCompareResult | objectCompareValue (zfself const &ref) const |
| compare by instance | |
| void | objectInfoOfContentT (zfstring &ret, zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault) const |
| see objectInfoOfContent | |
| zfstring | objectInfoOfContent (zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault) const |
| return contents info | |
| void | swap (zfself &ref) |
| swap internal data | |
| void | copyFrom (const zfself &ref) |
| copy all contents from ref, remove all before copy | |
| void | capacity (zfindex capacity) |
| change capacity | |
| 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 zfself &ref) |
| add elements from ref | |
| void | add (const T_Key &key) |
| add value | |
| 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 & | iterValue (const zfiter &it) const |
| see zfiter | |
| void | iterRemove (zfiter &it) |
| see zfiter | |
| zfiter | iterAdd (const T_Key &key) |
| see zfiter | |
Protected Types | |
| typedef ZFCoreSet< T_Key, T_Hash, T_Equal > | zfself |
| typedef for self | |
core set type for private use only
used to reduce dependency of stl
key must support zftHash and operator ==