
Queue with arbitrary number of elements. More...
#include <dynamic-queue.hpp>
Public Member Functions | |
| DynamicQueue (A &a) | |
| Initialize queue. | |
| ~DynamicQueue (void) | |
| Release memory. | |
| bool | empty (void) const |
| Test whether queue is empty. | |
| void | reset (void) |
| Reset queue to be empty. | |
| T | pop (void) |
| Pop element added first from queue and return it. | |
| void | push (const T &x) |
| Push element x to queue. | |
Queue with arbitrary number of elements.
Definition at line 46 of file dynamic-queue.hpp.
| Gecode::Support::DynamicQueue< T, A >::DynamicQueue | ( | A & | a | ) | [inline] |
Initialize queue.
Definition at line 115 of file dynamic-queue.hpp.
| Gecode::Support::DynamicQueue< T, A >::~DynamicQueue | ( | void | ) | [inline] |
Release memory.
Definition at line 120 of file dynamic-queue.hpp.
| bool Gecode::Support::DynamicQueue< T, A >::empty | ( | void | ) | const [inline] |
Test whether queue is empty.
Definition at line 126 of file dynamic-queue.hpp.
| void Gecode::Support::DynamicQueue< T, A >::reset | ( | void | ) | [inline] |
Reset queue to be empty.
Definition at line 132 of file dynamic-queue.hpp.
| T Gecode::Support::DynamicQueue< T, A >::pop | ( | void | ) | [inline] |
Pop element added first from queue and return it.
Definition at line 138 of file dynamic-queue.hpp.
| void Gecode::Support::DynamicQueue< T, A >::push | ( | const T & | x | ) | [inline] |
Push element x to queue.
Definition at line 147 of file dynamic-queue.hpp.