Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
TreeMap< K, T, C, E, A > Class Template Reference

#include <elm/data/TreeMap.h>

+ Inheritance diagram for TreeMap< K, T, C, E, A >:

Classes

class  Iter
 
class  KeyIter
 
class  PairIter
 

Public Member Functions

 TreeMap ()
 
 TreeMap (const TreeMap< K, T, C > &map)
 
const Comparator< K > & comparator () const
 
Comparator< K > & comparator ()
 
E & equivalence ()
 
A & allocator ()
 
int count (void) const
 
bool contains (const K &k) const
 
bool isEmpty (void) const
 
 operator bool (void) const
 
Iter begin () const
 
Iter end () const
 
const T & get (const K &key, const T &def) const
 
Option< T > get (const K &key) const
 
bool hasKey (const K &k) const
 
Iterable< KeyIterkeys () const
 
Iterable< PairIterpairs () const
 
void put (const K &key, const T &value)
 
void remove (const K &key)
 
void remove (const Iter &iter)
 
- Public Member Functions inherited from Equiv< T >
bool isEqual (const T &v1, const T &v2) const
 

Additional Inherited Members

- Public Types inherited from Equiv< T >
typedef T t
 
- Static Public Member Functions inherited from Equiv< T >
static bool equals (const T &v1, const T &v2)
 
- Static Public Attributes inherited from Equiv< T >
static Equiv< T > def
 

Constructor & Destructor Documentation

◆ TreeMap() [1/2]

TreeMap ( )
inline

◆ TreeMap() [2/2]

TreeMap ( const TreeMap< K, T, C > &  map)
inline

Member Function Documentation

◆ allocator()

A& allocator ( )
inline

◆ begin()

Iter begin ( ) const
inline

◆ comparator() [1/2]

Comparator<K>& comparator ( )
inline

◆ comparator() [2/2]

const Comparator<K>& comparator ( ) const
inline

◆ contains()

bool contains ( const K &  k) const
inline

◆ count()

int count ( void  ) const
inline

◆ end()

◆ equivalence()

E& equivalence ( )
inline

◆ get() [1/2]

Option<T> get ( const K &  key) const
inline

◆ get() [2/2]

const T& get ( const K &  key,
const T &  def 
) const
inline

◆ hasKey()

bool hasKey ( const K &  k) const
inline

◆ isEmpty()

bool isEmpty ( void  ) const
inline

◆ keys()

Iterable<KeyIter> keys ( ) const
inline

◆ operator bool()

operator bool ( void  ) const
inline

◆ pairs()

Iterable<PairIter> pairs ( ) const
inline

◆ put()

void put ( const K &  key,
const T &  value 
)
inline

◆ remove() [1/2]

void remove ( const Iter iter)
inline

◆ remove() [2/2]

void remove ( const K &  key)
inline

The documentation for this class was generated from the following file: