11template <
typename T,
int32 ArraySize>
21 static_assert(ArraySize > 0,
"ArraySize must be greater than zero");
30 if (ArraySize == NumValuesUsed)
33 ValuesArray[RemoveNextIdx] =
Value;
34 RemoveNextIdx = (RemoveNextIdx + 1) % ArraySize;
38 ValuesArray[NumValuesUsed] =
Value;
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition MovingWindowAverageFast.h:13
T GetAverage() const
Definition MovingWindowAverageFast.h:47
void PushValue(T Value)
Definition MovingWindowAverageFast.h:24
FMovingWindowAverageFast()
Definition MovingWindowAverageFast.h:15
Definition StaticArray.h:26