Skip to content

ConstSpaceVisitor

Base class for visitors that can operate on const spaces.

This class implements the visitor pattern for const spaces, allowing read-only operations to be performed on any space type without knowing the concrete type at compile time. Derived classes override the operator() methods to implement specific operations for each space type.

Subclassed by FNNEBufferAllocator, PointAllocator, ProtobufSpaceSerializer, SpaceTransmuter< T >

class ConstSpaceVisitor

Methods

operator()

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

Visits a const MultiBinarySpace.

Parameters

  • Space (const FMultiBinarySpace)

operator()

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

Visits a const DiscreteSpace.

Parameters

  • Space (const FDiscreteSpace)

operator()

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

Visits a const MultiDiscreteSpace.

Parameters

  • Space (const FMultiDiscreteSpace)

operator()

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

Visits a const BoxSpace.

Parameters

  • Space (const FBoxSpace)

operator()

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

Visits a const DictSpace.

Parameters

  • Space (const FDictSpace)

Source: Source/Schola/Public/Spaces/SpaceVisitor.h