Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include </home/casse/otawa/elm/src/concepts.h>
Public Member Functions | |
bool | isEmpty (void) const |
const T & | top (void) const |
T | pop (void) |
void | push (const T &item) |
void | reset (void) |
This concepts represents stack of items (First-In First-Out).
T | Type of stacked items. |
bool elm::concept::Stack< T >::isEmpty | ( | void | ) | const |
Test if the stack is empty.
T elm::concept::Stack< T >::pop | ( | void | ) |
Pop the top item of the stack.
void elm::concept::Stack< T >::push | ( | const T & | item | ) |
Push a new item in the stack.
item | Item to push in the stack. |
void elm::concept::Stack< T >::reset | ( | void | ) |
Reset the stack to empty.
const T& elm::concept::Stack< T >::top | ( | void | ) | const |
Get the item at the top of the stack.