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

#include </home/casse/Dev/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.
Implemented by:

Member Function Documentation

◆ get()

T get ( void  )

Get and remove the head item of the queue.

Returns
Head item of the queue.

◆ head()

const T& head ( void  ) const

Get the head element of the queue.

Returns
Head element of the queue.

◆ isEmpty()

bool isEmpty ( void  ) const

Test if the queue is empty.

Returns
True if the queue is empty, false else.

◆ put()

void put ( const T &  item)

Put a new item at the tail of the queue.

Parameters
itemItem to enqueue.

◆ reset()

void reset ( void  )

Make the queue empty.


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