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

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