Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include </home/casse/Dev/elm/src/concepts.h>
Public Member Functions | |
void | insert (const T &item) |
bool | subsetOf (const Set &coll) |
bool | operator>= (const Set &coll) |
bool | operator<= (const Set &coll) |
bool | operator> (const Set &coll) |
bool | operator< (const Collection &coll) |
bool | operator<= (const T &item) |
void | join (const Set< T > &set) |
void | meet (const Set< T > &set) |
void | diff (const Set< T > &set) |
Set< T > | operator+= (const Set< T > set) |
Set< T > | operator|= (const Set< T > set) |
Set< T > | operator-= (const Set< T > set) |
Set< T > | operator&= (const Set< T > set) |
Set< T > | operator*= (const Set< T > set) |
Set< T > | operator+ (const Set &set) |
Set< T > | operator| (const Set &set) |
Set< T > | operator* (const Set &set) |
Set< T > | operator& (const Set &set) |
Set< T > | operator- (const Set &set) |
Public Member Functions inherited from MutableCollection< T > | |
MutableIter< T > | begin () |
MutableIter< T > | end () |
void | clear (void) |
void | add (const T &item) |
void | addAll (const Collection< T > &items) |
void | remove (const T &item) |
void | removeAll (const Collection< T > &items) |
void | remove (const Iterator< T > &iter) |
MutableCollection< T > & | operator+= (const T &item) |
MutableCollection< T > & | operator-= (const T &item) |
void | copy (const Collection< T > &items) |
MutableCollection & | operator= (const Collection< T > &c) |
Public Member Functions inherited from Collection< T > | |
int | count (void) |
bool | contains (const T &item) |
template<template< class _ > class C> | |
bool | containsAll (const C< T > &collection) |
bool | isEmpty (void) |
operator bool (void) | |
Iter | begin (void) const |
Iter | end (void) const |
bool | equals (const Collection &coll) |
bool | operator== (const Collection &coll) |
bool | operator!= (const Collection &coll) |
Additional Inherited Members | |
Public Types inherited from Collection< T > | |
typedef T | t |
typedef Collection< T > | self_t |
Static Public Attributes inherited from Collection< T > | |
static const Collection | null |
static const Collection< T > | null |
This concept provides methods to handle a set of objects Usually, sets provides efficient way to look for, insert or remove items and contains only one version of each item.
Additionally, this concept must support an external operation "is in":
That just call the contains() function.
T | Type of stored items. |
Perform the difference of the current set and the given one.
set | Set to make difference with. |
void insert | ( | const T & | item | ) |
Insert an item in the set avoiding item duplication.
Perform the join of the current set and the given one.
set | Set to join with. |
Perform the meet of the current set and the given one.
set | Set to meet with. |
Build a new set meeting the current set and the given one.
set | Met set. |
Build a new set meeting the current set and the given one.
set | Met set. |
Build a new set joining the current set and the given one.
set | Joined set. |
Build a new set making the difference between the current set and the given one.
set | Difference set. |
bool operator< | ( | const Collection & | coll | ) |
Same as contains() with reversed arguments and not equals().
Same as reversed argument contains().
bool operator<= | ( | const T & | item | ) |
Same as contains.
Same as contains() and not equals().
Same as contains().
Build a new set joining the current set and the given one.
set | Joined set. |
Test if the current collection is a subet of the given one.
coll | Collection to test. |