![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/data/ListMap.h>
Classes | |
class | Iter |
class | KeyIter |
Public Types | |
typedef ListMap< K, T, C, E, A > | self_t |
typedef base_t::Iter | PairIter |
![]() | |
typedef T | t |
Public Member Functions | |
ListMap () | |
ListMap (const ListMap< K, T > &l) | |
E & | equivalence () |
Iter | begin (void) const |
Iter | end (void) const |
int | count (void) const |
bool | contains (const T &v) const |
template<class CC > | |
bool | containsAll (const CC &c) const |
bool | isEmpty (void) const |
operator bool (void) const | |
Iter | items (void) const |
Iter | operator* (void) const |
operator Iter (void) const | |
bool | equals (const self_t &m) const |
bool | operator== (const self_t &m) const |
bool | operator!= (const self_t &m) const |
bool | contains (const self_t &m) const |
bool | operator<= (const self_t &m) const |
bool | operator< (const self_t &m) const |
bool | operator>= (const self_t &m) const |
bool | operator> (const self_t &m) const |
Option< T > | get (const K &k) const |
const T & | get (const K &k, const T &d) const |
bool | hasKey (const K &k) const |
Iterable< KeyIter > | keys () const |
Iterable< PairIter > | pairs () const |
void | put (const K &k, const T &v) |
void | remove (const Iter &i) |
void | remove (const K &k) |
![]() | |
bool | isEqual (const T &v1, const T &v2) const |
Additional Inherited Members | |
![]() | |
static bool | equals (const T &v1, const T &v2) |
![]() | |
static Equiv< T > | def |
Map implemented as a list of sorted pairs. This class is relatively cheap but should not be used with a big number of entries (without enduring severe performances degradation).
For a map of size N, the complexity are:
K | Type of keys. |
T | Type of values. |
M | Manager type (default to ListMapManager). |
typedef base_t::Iter PairIter |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by XSLTransform::transformDocument().
|
inline |
|
inline |
Referenced by Section::get(), and File::get().
|
inline |
|
inline |
Referenced by Section::get(), and Section::isDefined().
Referenced by ListMap< string, Section * >::operator bool().
Referenced by File::~File().
Referenced by XSLTransform::transformDocument().
|
inline |
Referenced by File::load(), and XSLTransform::setParameter().
|
inline |