![]() |
scire
Sadh's C++ Impromptu Routines Ensemble
|
Standard stack abstraction (Push, Pop, Top). More...
#include <stack.hpp>
Public Member Functions | |
| virtual bool | Push (const Type &element)=0 |
| Push a new element at the top of stack. More... | |
| virtual bool | Pop ()=0 |
| Pop (remove/deduce) an element from the top. More... | |
| virtual Type | Top () const =0 |
| Access the top element of stack. More... | |
| virtual SzType | Size () const =0 |
| number of elements contained in More... | |
| bool | Add (const Type &element) |
| add an element More... | |
| bool | Deduce () |
| deduce one element More... | |
| Type | Peek () const |
| peek into next element contained in More... | |
| virtual bool | IsEmpty () const |
| check if empty More... | |
Standard stack abstraction (Push, Pop, Top).
|
inlinevirtual |
add an element
| element | element to be added as new element |
Implements scire::AContainer< Type, SzType >.
|
inlinevirtual |
|
inlinevirtualinherited |
|
inlinevirtual |
|
pure virtual |
Pop (remove/deduce) an element from the top.
Implemented in scire::StackCrate< Type, SzType >, and scire::Stack< Type, SzType >.
|
pure virtual |
Push a new element at the top of stack.
| element | element to push |
Implemented in scire::StackCrate< Type, SzType >, and scire::Stack< Type, SzType >.
|
pure virtual |
number of elements contained in
Implements scire::AContainer< Type, SzType >.
Implemented in scire::StackCrate< Type, SzType >, and scire::Stack< Type, SzType >.
|
pure virtual |
Access the top element of stack.
Implemented in scire::StackCrate< Type, SzType >, and scire::Stack< Type, SzType >.