Template Class SpaceTransmuter
Template Class SpaceTransmuter
- Defined in File SpaceTransmuter.h
Inheritance Relationships
Base Type
public ConstSpaceVisitor(Class ConstSpaceVisitor)
template <typename T> class SpaceTransmuter : public ConstSpaceVisitorSource: 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
| Symbol | Details |
|---|---|
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. |
Build | Builds and returns a new buffer containing the serialized space. |
Build | Builds the serialized space into an existing empty buffer. |
operator()
virtual void operator()(const FMultiBinarySpace &Space) overrideProcesses a multi-binary space for serialization.
Parameters
Space – [in] The multi-binary space to process.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Space | const FMultiBinarySpace & | The multi-binary space to process. |
Attributes: virtual
Source: Source/Schola/Public/Common/SpaceTransmuter.h
operator()
virtual void operator()(const FDiscreteSpace &Space) overrideProcesses a discrete space for serialization.
Parameters
Space – [in] The discrete space to process.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Space | const FMultiBinarySpace & | The multi-binary space to process. |
Attributes: virtual
Source: Source/Schola/Public/Common/SpaceTransmuter.h
operator()
virtual void operator()(const FMultiDiscreteSpace &Space) overrideProcesses a multi-discrete space for serialization.
Parameters
Space – [in] The multi-discrete space to process.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Space | const FMultiBinarySpace & | The multi-binary space to process. |
Attributes: virtual
Source: Source/Schola/Public/Common/SpaceTransmuter.h
operator()
virtual void operator()(const FBoxSpace &Space) overrideProcesses a box space for serialization.
Parameters
Space – [in] The box space to process.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Space | const FMultiBinarySpace & | The multi-binary space to process. |
Attributes: virtual
Source: Source/Schola/Public/Common/SpaceTransmuter.h
operator()
virtual void operator()(const FDictSpace &Space) overrideProcesses a dictionary space for serialization.
Parameters
Space – [in] The dictionary space to process.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Space | const 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.