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::Set< T > Class Template Reference

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

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

Public Member Functions

void insert (const T &item)
 
- Public Member Functions inherited from elm::concept::MutableCollection< T >
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::Set< T >

This concept provides methods to handle a set of object. Usually, sets provides efficient way to look for, insert or remove items.

Implemented by:
elm::genstruct::DLList elm::genstruct::SLList
Parameters
TType of stored items.

Member Function Documentation

template<class T >
void elm::concept::Set< T >::insert ( const T &  item)

Insert an item in the set avoiding item duplication.

Note
If the set does not support duplicate, add() is may be implemented as an insert.

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