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

#include <elm/data/TreeBag.h>

+ Inheritance diagram for TreeBag< T, C, A >:

Classes

class  Iter
 

Public Member Functions

 TreeBag ()
 
 TreeBag (const TreeBag< T, C > &t)
 
 ~TreeBag (void)
 
const C & comparator () const
 
C & comparator ()
 
A & allocator ()
 
int count (void) const
 
bool contains (const T &x) const
 
bool isEmpty (void) const
 
 operator bool (void) const
 
template<class CC >
bool containsAll (const CC &c) const
 
Iter begin () const
 
Iter end () const
 
bool equals (const TreeBag< T, C > &t) const
 
bool operator== (const TreeBag< T, C > &t) const
 
bool operator!= (const TreeBag< T, C > &t) const
 
void clear (void)
 
void add (const T &x)
 
template<class CC >
void addAll (const CC &c)
 
void remove (const T &x)
 
template<class CC >
void removeAll (const CC &c)
 
void remove (const Iter &iter)
 
void copy (const TreeBag< T, C > &t)
 
const T * find (const T &x) const
 
- Public Member Functions inherited from Comparator< T >
int doCompare (const T &v1, const T &v2) const
 
- Public Member Functions inherited from DefaultAllocatorDelegate
t::ptr allocate (t::size size) const
 
void free (t::ptr p) const
 
template<class T >
T * alloc () const
 

Additional Inherited Members

- Public Types inherited from Comparator< T >
typedef T t
 
- Static Public Member Functions inherited from Comparator< T >
static int compare (const T &v1, const T &v2)
 

Constructor & Destructor Documentation

◆ TreeBag() [1/2]

TreeBag ( )
inline

◆ TreeBag() [2/2]

TreeBag ( const TreeBag< T, C > &  t)
inline

◆ ~TreeBag()

~TreeBag ( void  )
inline

Member Function Documentation

◆ add()

◆ addAll()

void addAll ( const CC &  c)
inline

◆ allocator()

A& allocator ( )
inline

◆ begin()

Iter begin ( ) const
inline

◆ clear()

◆ comparator() [1/2]

C& comparator ( )
inline

◆ comparator() [2/2]

◆ contains()

◆ containsAll()

bool containsAll ( const CC &  c) const
inline

◆ copy()

◆ count()

int count ( void  ) const
inline

◆ end()

Iter end ( ) const
inline

◆ equals()

◆ find()

◆ isEmpty()

◆ operator bool()

operator bool ( void  ) const
inline

◆ operator!=()

bool operator!= ( const TreeBag< T, C > &  t) const
inline

◆ operator==()

bool operator== ( const TreeBag< T, C > &  t) const
inline

◆ remove() [1/2]

◆ remove() [2/2]

◆ removeAll()

void removeAll ( const CC &  c)
inline

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