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

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

Public Member Functions

bool isEmpty (void) const
 
const T & head (void) const
 
get (void)
 
void put (const T &item)
 
void reset (void)
 

Detailed Description

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

Concept representing the work of a queue.

Parameters
TType of item in the queue.

Member Function Documentation

template<class T >
T elm::concept::Queue< T >::get ( void  )

Get and remove the head item of the queue.

Returns
Head item of the queue.
template<class T >
const T& elm::concept::Queue< T >::head ( void  ) const

Get the head element of the queue.

Returns
Head element of the queue.
template<class T >
bool elm::concept::Queue< T >::isEmpty ( void  ) const

Test if the queue is empty.

Returns
True if the queue is empty, false else.
template<class T >
void elm::concept::Queue< T >::put ( const T &  item)

Put a new item at the tail of the queue.

Parameters
itemItem to enqueue.
template<class T >
void elm::concept::Queue< T >::reset ( void  )

Make the queue empty.


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