![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include </home/sandro/Softwares/Otawa/otawa_sources/elm/src/concepts.h>
Inheritance diagram for MutableCollection< T >:Public Member Functions | |
| 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 way to have collections whose content may be modified.
| T | Type of items in the collection. |
| void addAll | ( | const Collection< T > & | items | ) |
Add a collection to the current one.
| items | Collection of items to add. |
| MutableIter<T> begin | ( | ) |
Get a mutable iterator on the first element of the collection.
| void copy | ( | const Collection< T > & | items | ) |
Reset the current collection and copy the given one.
| items | Collection to copy. |
| MutableIter<T> end | ( | ) |
Get a mutable iterator at the end of the collection.
| MutableCollection<T>& operator+= | ( | const T & | item | ) |
Same as insert().
| MutableCollection<T>& operator-= | ( | const T & | item | ) |
Same as remove().
| MutableCollection& operator= | ( | const Collection< T > & | c | ) |
Copy in the current collection the given collection.
| c | Collection to copy. |
Remove a value using an iterator.
| iter | Iter giving the item to remove. |
| void remove | ( | const T & | item | ) |
Remove the given item from the collection.
| item | Item to remove from the collection. |
| void removeAll | ( | const Collection< T > & | items | ) |
Remove a collection from the current one.
| items | Items to remove. |