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

#include <elm/dyndata/Collection.h>

+ Inheritance diagram for MutableCollection< T, C >:

Public Member Functions

virtual ~MutableCollection (void)
 
virtual void clear (void)
 
virtual void add (const T &item)
 
virtual void addAll (const AbstractCollection< T > &coll)
 
virtual void remove (const T &item)
 
virtual void removeAll (const AbstractCollection< T > &coll)
 
virtual void remove (const Iter< T > &iter)
 
- Public Member Functions inherited from Collection< T, C >
virtual ~Collection (void)
 
virtual int count (void)
 
virtual bool contains (const T &item) const
 
virtual bool isEmpty (void) const
 
virtual Iter< T > items (void) const
 
- Public Member Functions inherited from AbstractCollection< T >
virtual ~AbstractCollection (void)
 
 operator bool (void) const
 
Iter< T > operator* (void) const
 
- Public Member Functions inherited from MutableAbstractCollection< T >
virtual ~MutableAbstractCollection (void)
 

Additional Inherited Members

- Protected Attributes inherited from Collection< T, C >
coll
 

Detailed Description

template<class T, class C>
class elm::dyndata::MutableCollection< T, C >

AbstractCollection implementation from Data Structures collection.

Parameters
TType of collection values.
CType of generic collection (containing values of type T).

Constructor & Destructor Documentation

◆ ~MutableCollection()

virtual ~MutableCollection ( void  )
inlinevirtual

Member Function Documentation

◆ add()

void add ( const T &  val)
inlinevirtual

Add a value to the collection.

Parameters
valAdded value.

Implements MutableAbstractCollection< T >.

Referenced by MutableCollection< T, C >::addAll().

◆ addAll()

void addAll ( const AbstractCollection< T > &  coll)
inlinevirtual

Add the values of the given collection to the current one.

Parameters
collAdded collection.

Implements MutableAbstractCollection< T >.

References MutableCollection< T, C >::add(), and Collection< T, C >::coll.

◆ clear()

virtual void clear ( void  )
inlinevirtual

◆ remove() [1/2]

virtual void remove ( const Iter< T > &  iter)
inlinevirtual

◆ remove() [2/2]

void remove ( const T &  val)
inlinevirtual

Remove a value from the collection.

Parameters
valRemoved value.

Implements MutableAbstractCollection< T >.

Referenced by MutableCollection< T, C >::removeAll().

◆ removeAll()

void removeAll ( const AbstractCollection< T > &  coll)
inlinevirtual

Remove the values of the given collection from the given one.

Parameters
collRemoved collection.

Implements MutableAbstractCollection< T >.

References Collection< T, C >::coll, and MutableCollection< T, C >::remove().


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