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

#include <elm/dyndata/Collection.h>

+ Inheritance diagram for Collection< T, C >:

Public Member Functions

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
 

Protected Attributes

coll
 

Detailed Description

template<class T, class C>
class elm::dyndata::Collection< 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

◆ ~Collection()

virtual ~Collection ( void  )
inlinevirtual

Member Function Documentation

◆ contains()

virtual bool contains ( const T &  item) const
inlinevirtual

Test if a value is in the collection.

Parameters
valLooked value.
Returns
True if the value is in the collection, false else.

Implements AbstractCollection< T >.

References Collection< T, C >::coll.

◆ count()

virtual int count ( void  )
inlinevirtual

Count the number of values in the collection.

Returns
Value count.

Implements AbstractCollection< T >.

References Collection< T, C >::coll.

◆ isEmpty()

virtual bool isEmpty ( void  ) const
inlinevirtual

Test if the collection is empty.

Returns
True if the collection is empty, false else.

Implements AbstractCollection< T >.

References Collection< T, C >::coll.

◆ items()

virtual Iter<T> items ( void  ) const
inlinevirtual

Member Data Documentation

◆ coll


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