BFLibCPP 0.1
CPP Library
|
#include <dictionary.hpp>
Classes | |
class | Entry |
Public Types | |
typedef RBTree< Entry *, S >::Iterator | Iterator |
Public Member Functions | |
Dictionary () | |
Dictionary (int(*keyCompareCallback)(K a1, K a2), void(*retainCallback)(K *k, V *v), void(*releaseCallback)(K *k, V *v)) | |
virtual | ~Dictionary () |
S | size () const |
void | setKeyCompareCallback (int(*cb)(K a1, K a2)) |
void | setEntryReleaseCallback (void(*cb)(K *k, V *v)) |
void | setEntryRetainCallback (void(*cb)(K *k, V *v)) |
V | valueForKey (K key) |
int | setValueForKey (K key, V value) |
int | removeValueForKey (K key) |
void | print () |
int | createIterator (Iterator **itr) |
![]() | |
Object () | |
Object (Object &obj) | |
virtual | ~Object () |
Friends | |
class | Entry |
Additional Inherited Members | |
![]() | |
static void | retain (Object *obj) |
static void | release (Object *obj) |
static int | retainCount (Object *obj) |
static int | retainCount (Object &obj) |
Dictionary whose entries are pair with keys (of type K) and values (of type V)
typedef RBTree<Entry*,S>::Iterator BF::Dictionary< K, V, S >::Iterator |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
Prints inorder traversal of tree
|
inline |
Removes key value pair
|
inline |
Defines how the keys and values memory gets deleted
|
inline |
Defines how the entry will retain the memory for keys and values
|
inline |
Defines how the entries will be organized in dictionary.
a1 == a2 -> 0 a1 < a2 -> -1 a1 > a2 -> 1
|
inline |
Pairs key to value and creates an entry in the dictionary
|
inline |
Returns number of key/value pairs
|
inline |
Returns value for key
|
friend |