Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/avl/Map.h>
Classes | |
class | Iterator |
class | KeyIterator |
class | MutableIterator |
class | PairIterator |
Public Member Functions | |
Option< T > | get (key_t key) const |
val_t | get (key_t key, val_t def) const |
bool | hasKey (key_t key) const |
int | count (void) const |
bool | isEmpty (void) const |
bool | equals (const Map< K, T, C > &map) const |
bool | operator== (const Map< K, T, C > &map) const |
bool | operator!= (const Map< K, T, C > &map) const |
Option< T > | get (key_t key) |
T & | get (const K &key, T &def) |
void | put (const K &key, const T &value) |
void | remove (const K &key) |
void | remove (const PairIterator &iter) |
void | clear (void) |
void | copy (const Map< K, T, C > &map) |
Map< K, T, C > & | operator= (const Map< K, T, C > &map) |
Implements a map based on AVL tree, that is, a map supporting O(log n) accesses.
K | Type of keys of the map. |
T | Type of stored items. |
C | Comparator used to sort the items (must implements the elm::concept::Comparator<K> concept, as a default elm::Comparator<K>). |
void elm::avl::Map< K, T, C >::clear | ( | void | ) |
void elm::avl::Map< K, T, C >::copy | ( | const Map< K, T, C > & | map | ) |
int elm::avl::Map< K, T, C >::count | ( | void | ) | const |
bool elm::avl::Map< K, T, C >::equals | ( | const Map< K, T, C > & | map | ) | const |
Option<T> elm::avl::Map< K, T, C >::get | ( | key_t | key | ) | const |
val_t elm::avl::Map< K, T, C >::get | ( | key_t | key, |
val_t | def | ||
) | const |
Option<T> elm::avl::Map< K, T, C >::get | ( | key_t | key | ) |
T& elm::avl::Map< K, T, C >::get | ( | const K & | key, |
T & | def | ||
) |
bool elm::avl::Map< K, T, C >::hasKey | ( | key_t | key | ) | const |
bool elm::avl::Map< K, T, C >::isEmpty | ( | void | ) | const |
bool elm::avl::Map< K, T, C >::operator!= | ( | const Map< K, T, C > & | map | ) | const |
Map<K, T, C>& elm::avl::Map< K, T, C >::operator= | ( | const Map< K, T, C > & | map | ) |
bool elm::avl::Map< K, T, C >::operator== | ( | const Map< K, T, C > & | map | ) | const |
void elm::avl::Map< K, T, C >::put | ( | const K & | key, |
const T & | value | ||
) |
Referenced by elm::stree::SegmentBuilder< K, T, C >::add().
void elm::avl::Map< K, T, C >::remove | ( | const K & | key | ) |
void elm::avl::Map< K, T, C >::remove | ( | const PairIterator & | iter | ) |