|
UFO: Alien Invasion
|
A simple queue class. More...

Data Structures | |
| struct | qnode_s |
Public Member Functions | |
| LQueue (void) | |
| Initialize a LQueue object. | |
| ~LQueue (void) | |
| Clear LQueue internal data. | |
| void | enqueue (const pos3_t data) |
| Add an entry to the queue. | |
| bool | dequeue (pos3_t data) |
| Retrieve an entry form the queue. | |
| int | size (void) const |
| Gets the number of elements in the queue. | |
| bool | isEmpty (void) const |
| Checks if the queue is empty. | |
| void | clear (void) |
| Remove all data from the queue. | |
Private Attributes | |
| qnode_s * | _head |
| qnode_s * | _tail |
| int | _count |
|
inline |
| AiAreaSearch::LQueue::~LQueue | ( | void | ) |
| bool AiAreaSearch::LQueue::dequeue | ( | pos3_t | data | ) |
Add an entry to the queue.
| [in] | data | Data to add. |
Definition at line 92 of file g_ai.cpp.
References _count, _head, _tail, AiAreaSearch::LQueue::qnode_s::data, data, G_TagMalloc, isEmpty(), AiAreaSearch::LQueue::qnode_s::next, TAG_LEVEL, and VectorCopy.
|
inline |
|
private |
|
private |
|
private |