#include <dblqueue.hpp>
Public Member Functions | |
doubleQueue (int n) | |
~doubleQueue () | |
void | push (int value) |
void | put (int value) |
int | pop () |
bool | isEmpty () |
Private Member Functions | |
void | enlarge () |
Private Attributes | |
int * | memory |
int | size |
int | head |
int | tail |
Definition at line 44 of file dblqueue.hpp.
doubleQueue::doubleQueue | ( | int | n | ) |
doubleQueue::~doubleQueue | ( | ) |
Definition at line 52 of file dblqueue.cpp.
References memory.
|
private |
|
inline |
Definition at line 52 of file dblqueue.hpp.
References head, memory, SCAN, and tail.
Referenced by automaton::match().
int doubleQueue::pop | ( | ) |
Definition at line 87 of file dblqueue.cpp.
References head, memory, and tail.
Referenced by automaton::match().
void doubleQueue::push | ( | int | value | ) |
Definition at line 62 of file dblqueue.cpp.
References enlarge(), head, and memory.
Referenced by automaton::match().
void doubleQueue::put | ( | int | value | ) |
Definition at line 74 of file dblqueue.cpp.
References enlarge(), memory, size, and tail.
Referenced by doubleQueue(), and automaton::match().
|
private |
|
private |
Definition at line 72 of file dblqueue.hpp.
Referenced by doubleQueue(), enlarge(), isEmpty(), pop(), push(), put(), and ~doubleQueue().
|
private |
Definition at line 73 of file dblqueue.hpp.
Referenced by doubleQueue(), enlarge(), and put().
|
private |