![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include </home/sandro/Softwares/Otawa/otawa_sources/elm/src/concepts.h>
Public Member Functions | |
| bool | isEmpty (void) const |
| const T & | top (void) const |
| T & | top () |
| 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. |
Test if the stack is empty.
| T pop | ( | void | ) |
Pop the top item of the stack.
| void push | ( | const T & | item | ) |
Push a new item in the stack.
| item | Item to push in the stack. |
| T& top | ( | ) |
Get the item at the top of the stack. The returned reference can be assigned.
| const T& top | ( | void | ) | const |
Get the item at the top of the stack.