Skip to content

Template Class SpaceTransmuter

Template Class SpaceTransmuter

  • Defined in File SpaceTransmuter.h

Inheritance Relationships

Base Type

template <typename T> class SpaceTransmuter : public ConstSpaceVisitor

Source: Source/Schola/Public/Common/SpaceTransmuter.h

Dependencies: FBoxSpace, FDictSpace, FDiscreteSpace, FMultiBinarySpace, FMultiDiscreteSpace

A visitor class that can serialize space definitions to a buffer.

This template class implements the visitor pattern to traverse and serialize different types of spaces into a buffer of type T. It can be used to convert space definitions into various serialized formats for storage or transmission.

Template Parameters:

T – The type of buffer to serialize to.


Public Functions

SymbolDetails
operator()Processes a multi-binary space for serialization.
operator()Processes a discrete space for serialization.
operator()Processes a multi-discrete space for serialization.
operator()Processes a box space for serialization.
operator()Processes a dictionary space for serialization.
BuildBuilds and returns a new buffer containing the serialized space.
BuildBuilds the serialized space into an existing empty buffer.

operator()

virtual void operator()(const FMultiBinarySpace &Space) override

Processes a multi-binary space for serialization.

Parameters

Space – [in] The multi-binary space to process.

#DirectionNameTypeDescription
1Spaceconst FMultiBinarySpace &The multi-binary space to process.

Attributes: virtual

Source: Source/Schola/Public/Common/SpaceTransmuter.h


operator()

virtual void operator()(const FDiscreteSpace &Space) override

Processes a discrete space for serialization.

Parameters

Space – [in] The discrete space to process.

#DirectionNameTypeDescription
1Spaceconst FMultiBinarySpace &The multi-binary space to process.

Attributes: virtual

Source: Source/Schola/Public/Common/SpaceTransmuter.h


operator()

virtual void operator()(const FMultiDiscreteSpace &Space) override

Processes a multi-discrete space for serialization.

Parameters

Space – [in] The multi-discrete space to process.

#DirectionNameTypeDescription
1Spaceconst FMultiBinarySpace &The multi-binary space to process.

Attributes: virtual

Source: Source/Schola/Public/Common/SpaceTransmuter.h


operator()

virtual void operator()(const FBoxSpace &Space) override

Processes a box space for serialization.

Parameters

Space – [in] The box space to process.

#DirectionNameTypeDescription
1Spaceconst FMultiBinarySpace &The multi-binary space to process.

Attributes: virtual

Source: Source/Schola/Public/Common/SpaceTransmuter.h


operator()

virtual void operator()(const FDictSpace &Space) override

Processes a dictionary space for serialization.

Parameters

Space – [in] The dictionary space to process.

#DirectionNameTypeDescription
1Spaceconst FMultiBinarySpace &The multi-binary space to process.

Attributes: virtual

Source: Source/Schola/Public/Common/SpaceTransmuter.h

Build

T *Build()

Builds and returns a new buffer containing the serialized space.

Returns:

Pointer to the newly created buffer.

Source: Source/Schola/Public/Common/SpaceTransmuter.h

Build

void Build(T &EmptyBuffer)

Builds the serialized space into an existing empty buffer.

Parameters

EmptyBuffer – [inout] Reference to an empty buffer to populate with serialized data.

Source: Source/Schola/Public/Common/SpaceTransmuter.h