TCircularHistoryBuffer

[TCircularHistoryBuffer](API\Runtime\HeadMountedDisplay\TCircularHistoryBuffer) Modeled after TCircularBuffer/Queue, but resizable with it's own stack-style way of indexing (0 = most recent value added)

Windows
MacOS
Linux

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

Name Description

Public function

TCircularHistoryBuffer

(
    uint32 InitialCapacity
)

Copyright Epic Games, Inc. All Rights Reserved.

Functions

Name Description

Public function

ElementType ...

 

Add

(
    const ElementType& Element
)

Public function Const

uint32

 

Capacity()

Public function

void

 

Empty()

Public function

void

 

InsertAt

(
    uint32 Index,
    const ElementType& Element
)

Public function Const

bool

 

IsEmpty()

Public function Const

bool

 

IsFull()

Public function Const

int32

 

Num()

Public function

void

 

Resize

(
    uint32 NewCapacity
)

Operators

Name Description

Public function

ElementType ...

 

operator[]

(
    uint32 Index
)

Will clamp to the oldest value available if the buffer isn't full and the index is larger than the number of values buffered.

Public function Const

const Elemen...

 

operator[]

(
    uint32 Index
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss