Skip to content

UDictStacker

UObject that stacks dictionary inputs in a ring buffer and exposes them as one dictionary.

Each push stores one dict (e.g. one observation). The stacked output uses keys “OriginalKey_0”, “OriginalKey_1”, … where index 0 = newest, highest index = oldest.

class UDictStacker : public UStackerBase

Methods

GetStacked

virtual void GetStacked(FInstancedStruct &OutStackedPoint) override

Fills the output with the stacked dictionary: keys are “OriginalKey_0”, “OriginalKey_1”, … Index 0 = newest, highest index = oldest.

Parameters

  • OutStackedPoint (FInstancedStruct)

GetStacked

void GetStacked(FDictPoint &OutStackedPoint)

Fills the output with the stacked dictionary: keys are “OriginalKey_0”, “OriginalKey_1”, … Index 0 = newest, highest index = oldest.

Parameters

  • OutStackedPoint (FDictPoint)

GetStackedSpace

virtual void GetStackedSpace(FInstancedStruct &OutSpace) const override

Returns a DictSpace containing the stacked points.

Parameters

  • OutSpace (FInstancedStruct)

GetStackedSpace

void GetStackedSpace(FDictSpace &OutSpace) const

Returns a DictSpace containing the stacked Space.

Parameters

  • OutSpace (FDictSpace)

Source: Source/Schola/Public/Adapters/DictStacker.h