Queue with arbitrary number of elements. More...
#include <gecode/support/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. | |
| DynamicQueue (const DynamicQueue &s)=delete | |
| Copy constructor (disabled). | |
| const DynamicQueue & | operator= (const DynamicQueue &)=delete |
| Assignment operator (disabled). | |
Static Public Member Functions | |
| static void * | operator new (size_t s)=delete |
| Allocate memory from heap (disabled). | |
| static void | operator delete (void *p)=delete |
| Free memory allocated from heap (disabled). | |
Detailed Description
class Gecode::Support::DynamicQueue< T, A >
Queue with arbitrary number of elements.
Definition at line 42 of file dynamic-queue.hpp.
Constructor & Destructor Documentation
◆ DynamicQueue() [1/2]
|
inline |
Initialize queue.
Definition at line 111 of file dynamic-queue.hpp.
◆ ~DynamicQueue()
|
inline |
Release memory.
Definition at line 116 of file dynamic-queue.hpp.
◆ DynamicQueue() [2/2]
|
delete |
Copy constructor (disabled).
Member Function Documentation
◆ empty()
|
inline |
Test whether queue is empty.
Definition at line 122 of file dynamic-queue.hpp.
◆ reset()
|
inline |
Reset queue to be empty.
Definition at line 128 of file dynamic-queue.hpp.
◆ pop()
|
inline |
Pop element added first from queue and return it.
Definition at line 134 of file dynamic-queue.hpp.
◆ push()
|
inline |
Push element x to queue.
Definition at line 143 of file dynamic-queue.hpp.
◆ operator new()
|
staticdelete |
Allocate memory from heap (disabled).
◆ operator delete()
|
staticdelete |
Free memory allocated from heap (disabled).
◆ operator=()
|
delete |
Assignment operator (disabled).
The documentation for this class was generated from the following file:
- gecode/support/dynamic-queue.hpp
