Navigation
Unreal Engine C++ API Reference > Runtime > HeadMountedDisplay
References
Module | HeadMountedDisplay |
Header | /Engine/Source/Runtime/HeadMountedDisplay/Public/MotionDelayBuffer.h |
Include | #include "MotionDelayBuffer.h" |
Syntax
template<typename ElementType>
class TCircularHistoryBuffer
Remarks
TCircularHistoryBuffer Modeled after TCircularBuffer/Queue, but resizable with it's own stack-style way of indexing (0 = most recent value added)
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TCircularHistoryBuffer
(
uint32 InitialCapacity |
Copyright Epic Games, Inc. All Rights Reserved. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
ElementType & | Add
(
const ElementType& Element |
|
![]() ![]() |
uint32 | Capacity () |
|
![]() |
void | Empty () |
|
![]() |
void | InsertAt
(
uint32 Index, |
|
![]() ![]() |
bool | IsEmpty () |
|
![]() ![]() |
bool | IsFull () |
|
![]() ![]() |
int32 | Num () |
|
![]() |
void | Resize
(
uint32 NewCapacity |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
ElementType & | operator[]
(
uint32 Index |
NOTE: Will clamp to the oldest value available if the buffer isn't full and the index is larger than the number of values buffered. |
![]() ![]() |
const ElementType & | operator[]
(
uint32 Index |