Navigation
API > API/Plugins > API/Plugins/ElectraBase
Object safe queue class.
Implements by-value methods only to avoid working with references.
Methods like T& Push() T& operatorint32 T& Front()
are dangerous when used in a multi-threaded environment since the elements cannot be protected by an internal mutex. If you are using an external mutex to ensure object safety you may add such functions, but please derive a new class for this!!! (or use the one below)
| Name | TMediaQueueFixedStatic |
| Type | class |
| Header File | /Engine/Plugins/Media/ElectraUtil/Source/ElectraBase/Public/Core/MediaQueue.h |
| Include Path | #include "Core/MediaQueue.h" |
Syntax
template<typename T, uint32 CAPACITY, typename L>
class TMediaQueueFixedStatic : public FMediaLockCriticalSection
Inheritance Hierarchy
- TMediaNoncopyable → FMediaLockCriticalSection → TMediaQueueFixedStatic
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Core/MediaQueue.h | |||
TMediaQueueFixedStatic
(
const MyType& rhs |
Not copyable (for now) because of the possible mutex class. | Core/MediaQueue.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TMediaQueueFixedStatic() |
Core/MediaQueue.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementType | T | Core/MediaQueue.h | |
| MyType | TMediaQueueFixedStatic< T, CAPACITY, L > | Core/MediaQueue.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Capacity() |
Core/MediaQueue.h | ||
void Clear() |
Core/MediaQueue.h | ||
T Front() |
Core/MediaQueue.h | ||
bool IsEmpty() |
Core/MediaQueue.h | ||
bool IsFull() |
Core/MediaQueue.h | ||
int32 Num() |
Core/MediaQueue.h | ||
T Pop() |
Core/MediaQueue.h | ||
void Push
(
const T& element |
Core/MediaQueue.h | ||
void PushFront
(
const T& element |
Core/MediaQueue.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
MyType & operator=
(
const MyType& rhs |
Core/MediaQueue.h |