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

#include <elm/dyndata/AbstractCollection.h>

+ Inheritance diagram for AbstractCollection< T >:

Public Member Functions

virtual ~AbstractCollection (void)
 
virtual int count (void)=0
 
virtual bool contains (const T &item) const =0
 
virtual bool isEmpty (void) const =0
 
 operator bool (void) const
 
virtual Iter< T > items (void) const =0
 
Iter< T > operator* (void) const
 

Detailed Description

template<class T>
class elm::dyndata::AbstractCollection< T >

Abstract interface implement the concept::Collection concept to use as dynamic data.

Parameters
TType of values in the collection.

Constructor & Destructor Documentation

◆ ~AbstractCollection()

virtual ~AbstractCollection ( void  )
inlinevirtual

Member Function Documentation

◆ contains()

bool contains ( const T &  item) const
pure virtual

Test if a value is in the collection.

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

Implemented in Collection< T, C >.

◆ count()

int count ( void  )
pure virtual

Count the number of values in the collection.

Returns
Value count.

Implemented in Collection< T, C >.

◆ isEmpty()

bool isEmpty ( void  ) const
pure virtual

Test if the collection is empty.

Returns
True if the collection is empty, false else.

Implemented in Collection< T, C >.

Referenced by AbstractCollection< T >::operator bool().

◆ items()

virtual Iter<T> items ( void  ) const
pure virtual

◆ operator bool()

operator bool ( void  ) const
inline

◆ operator*()

Iter<T> operator* ( void  ) const
inline

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