Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/genstruct/SortedBinTree.h>
Classes | |
class | Iterator |
Public Member Functions | |
GenSortedBinTree (void) | |
~GenSortedBinTree (void) | |
int | count (void) const |
bool | contains (const T &value) const |
bool | isEmpty (void) const |
operator bool (void) const | |
void | clear (void) |
void | add (const T &value) |
template<template< class _ > class S> | |
void | addAll (const S< T > &items) |
void | remove (const T &value) |
template<template< class _ > class S> | |
void | removeAll (const S< T > &items) |
void | remove (const Iterator &iter) |
const T * | look (const typename K::key_t &key) const |
T * | look (const typename K::key_t &key) |
Generative class for sorted binary trees. Base class of SortedBinTree or SortedBinMap.
T | Type of items in the tree. |
K | Key accessor (must implement elm::concept::Key concept, Id<T> as a default). |
C | Comparator for keys (must implement elm::concept::Comparator<T>,elm::Comparator<T> as a default). |
elm::genstruct::GenSortedBinTree< T, K, C >::GenSortedBinTree | ( | void | ) |
elm::genstruct::GenSortedBinTree< T, K, C >::~GenSortedBinTree | ( | void | ) |
void elm::genstruct::GenSortedBinTree< T, K, C >::add | ( | const T & | value | ) |
void elm::genstruct::GenSortedBinTree< T, K, C >::addAll | ( | const S< T > & | items | ) |
void elm::genstruct::GenSortedBinTree< T, K, C >::clear | ( | void | ) |
bool elm::genstruct::GenSortedBinTree< T, K, C >::contains | ( | const T & | value | ) | const |
int elm::genstruct::GenSortedBinTree< T, K, C >::count | ( | void | ) | const |
bool elm::genstruct::GenSortedBinTree< T, K, C >::isEmpty | ( | void | ) | const |
Referenced by elm::genstruct::GenSortedBinTree< value_t, PairAdapter< elm::String, elm::option::Option * >, C >::clear(), elm::genstruct::SortedBinMap< char, elm::option::Option * >::isEmpty(), and elm::genstruct::GenSortedBinTree< value_t, PairAdapter< elm::String, elm::option::Option * >, C >::operator bool().
const T* elm::genstruct::GenSortedBinTree< T, K, C >::look | ( | const typename K::key_t & | key | ) | const |
Referenced by elm::genstruct::SortedBinMap< char, elm::option::Option * >::contains(), elm::genstruct::SortedBinMap< char, elm::option::Option * >::get(), elm::genstruct::SortedBinMap< char, elm::option::Option * >::hasKey(), and elm::genstruct::SortedBinMap< char, elm::option::Option * >::remove().
T* elm::genstruct::GenSortedBinTree< T, K, C >::look | ( | const typename K::key_t & | key | ) |
elm::genstruct::GenSortedBinTree< T, K, C >::operator bool | ( | void | ) | const |
void elm::genstruct::GenSortedBinTree< T, K, C >::remove | ( | const T & | value | ) |
void elm::genstruct::GenSortedBinTree< T, K, C >::remove | ( | const Iterator & | iter | ) |
void elm::genstruct::GenSortedBinTree< T, K, C >::removeAll | ( | const S< T > & | items | ) |