|
Public Member Functions |
| KeyedVector (const VALUE &undefined=VALUE()) |
| KeyedVector (const KeyedVector< KEY, VALUE > &o) |
| KeyedVector (const OrderedVector< KEY > &keys, const Vector< VALUE > &values, const VALUE &undefined=VALUE()) |
virtual | ~KeyedVector () |
KeyedVector< KEY, VALUE > & | operator= (const KeyedVector< KEY, VALUE > &o) |
void | SetCapacity (size_t total_space) |
void | SetExtraCapacity (size_t extra_space) |
size_t | Capacity () const |
size_t | CountItems () const |
const VALUE & | ValueFor (const KEY &key, bool *found=NULL) const |
VALUE & | EditValueFor (const KEY &key, bool *found=NULL) |
const KEY & | KeyAt (size_t i) const |
const VALUE & | ValueAt (size_t i) const |
VALUE & | EditValueAt (size_t i) |
const OrderedVector< KEY > & | KeyVector () const |
const Vector< VALUE > & | ValueVector () const |
Vector< VALUE > & | ValueVector () |
ssize_t | IndexOf (const KEY &key) const |
bool | GetIndexOf (const KEY &key, size_t *index) const |
ssize_t | AddItem (const KEY &key, const VALUE &value) |
void | RemoveItemsAt (size_t index, size_t count=1) |
ssize_t | RemoveItemFor (const KEY &key) |
void | MakeEmpty () |
void | Swap (KeyedVector &o) |