Gecode::Support::StaticStack< T > Class Template Reference
[Support algorithms and datastructures]
Detailed Description
template<class T>
class Gecode::Support::StaticStack< T >
Stack with fixed number of elements.
Definition at line 46 of file static-stack.icc.
Public Member Functions | |
| StaticStack (const int n) | |
| Initialize for n elements. | |
| ~StaticStack (void) | |
| Release memory. | |
| void | reset (void) |
| Reset stack (pop all elements). | |
| bool | empty (void) const |
| Test whether stack is empty. | |
| T | pop (void) |
| Pop topmost element from stack and return it. | |
| T & | top (void) const |
| Return element on top of stack. | |
| T & | last (void) const |
| Return element that has just been popped. | |
| void | push (T x) |
| Push element x on top of stack. | |
Constructor & Destructor Documentation
template<class T>
| Gecode::Support::StaticStack< T >::StaticStack | ( | const int | n | ) | [inline] |
template<class T>
| Gecode::Support::StaticStack< T >::~StaticStack | ( | void | ) | [inline] |
Member Function Documentation
template<class T>
| void Gecode::Support::StaticStack< T >::reset | ( | void | ) | [inline] |
template<class T>
| bool Gecode::Support::StaticStack< T >::empty | ( | void | ) | const [inline] |
template<class T>
| T Gecode::Support::StaticStack< T >::pop | ( | void | ) | [inline] |
template<class T>
| T & Gecode::Support::StaticStack< T >::top | ( | void | ) | const [inline] |
template<class T>
| T & Gecode::Support::StaticStack< T >::last | ( | void | ) | const [inline] |
template<class T>
| void Gecode::Support::StaticStack< T >::push | ( | T | x | ) | [inline] |
The documentation for this class was generated from the following file:
- gecode/support/static-stack.icc (Revision: 4971)
