![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Queue.h>
Public Member Functions | |
| TQueueG () | |
| ~TQueueG () | |
| bool | Enqueue (const InElementType &InElement) |
| bool | Enqueue (const InElementType &&InElement) |
| bool | Dequeue (InElementType &OutElement) |
| bool | Pop () |
| void | Empty () |
| bool | IsEmpty () |
Protected Member Functions | |
| TQueueG (const TQueueG &)=delete | |
| TQueueG & | operator= (const TQueueG &)=delete |
Simple templated queue following Unreal's TQueue implementation using a lock-free linked list. We're doing this instead of using a simple array/etc. since it matches Unreal's implementation 1:1 apart from usage of the standard library for atomics.
|
inline |
|
inline |
|
protecteddelete |
Hidden copy constructor.
|
inline |
Removes and returns the item from the tail of the queue.
| OutElement | The item from the tail of the queue. |
true if a value was returned, false if the queue was empty.
|
inline |
Empty the queue, discarding all items.
|
inline |
|
inline |
Adds an item to the head of the queue.
| InElement | The item to add. |
true if the item was added, false otherwise.
|
inline |
Checks whether the queue is empty.
true if the queue is empty, false otherwise.
|
protecteddelete |
Hidden assignment operator.
|
inline |
Removes the item from the tail of the queue.