Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::concept::MutableCollection< T > Class Template Reference

#include </home/casse/otawa/elm/src/concepts.h>

+ Inheritance diagram for elm::concept::MutableCollection< T >:

Public Member Functions

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)
 
- Public Member Functions inherited from elm::concept::Collection< T >
int count (void)
 
bool contains (const T &item)
 
bool containsAll (const C< T > &collection)
 
bool isEmpty (void)
 
 operator bool (void)
 

Detailed Description

template<class T>
class elm::concept::MutableCollection< T >

This concept provides way to have collections whose content may be modified.

Parameters
TType of items in the collection.

Member Function Documentation

template<class T >
void elm::concept::MutableCollection< T >::add ( const T &  item)

Add an item to the collection.

Parameters
itemItem to add.
template<class T >
void elm::concept::MutableCollection< T >::addAll ( const Collection< T > &  items)

Add a collection to the current one.

Parameters
itemsCollection of items to add.
template<class T >
void MutableCollection::clear ( void  )

Remove all items from the collection.

Clear the collection.

template<class T >
void elm::concept::MutableCollection< T >::remove ( const T &  item)

Remove the given item from the collection.

Parameters
itemItem to remove from the collection.
template<class T >
void elm::concept::MutableCollection< T >::remove ( const Iterator< T > &  iter)

Remove a value using an iterator.

Parameters
iterIter giving the item to remove.
template<class T >
void elm::concept::MutableCollection< T >::removeAll ( const Collection< T > &  items)

Remove a collection from the current one.

Parameters
itemsItems to remove.

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