Struct FMultiBinarySpace
Struct FMultiBinarySpace
- Defined in File MultiBinarySpace.h
Inheritance Relationships
Base Type
public FSpace(Struct FSpace)
struct FMultiBinarySpace : public FSpaceSource: Source/Schola/Public/Common/Spaces/MultiBinarySpace.h
Dependencies: ConstSpaceVisitor, FPoint, SpaceVisitor
A struct representing a multi-binary space (boolean vector) of possible observations or actions.
A multi-binary space represents multiple independent binary (true/false) values, where each dimension is independent. This is commonly used for representing multiple on/off states or binary flags in observations or actions.
Public Functions
| Symbol | Details |
|---|---|
FMultiBinarySpace | Constructs an empty MultiBinarySpace with Shape=0. |
FMultiBinarySpace | Constructs a MultiBinarySpace with a specific number of dimensions. |
Merge | Merges another MultiBinarySpace into this one. |
Copy | Copies the contents of another MultiBinarySpace into this one. |
GetNumDimensions | Gets the number of dimensions in this space. |
IsEmpty | Checks if this space is empty. |
Validate | Validates that a point conforms to this space. |
GetFlattenedSize | Gets the flattened size of this space. |
Accept | Accepts a mutable visitor for the visitor pattern. |
Accept | Accepts a const visitor for the visitor pattern. |
FMultiBinarySpace
FMultiBinarySpace()Constructs an empty MultiBinarySpace with Shape=0.
Source: Source/Schola/Public/Common/Spaces/MultiBinarySpace.h
Implementation: Source/Schola/Private/Common/Spaces/MultiBinarySpace.cpp
FMultiBinarySpace
FMultiBinarySpace(int InShape)Constructs a MultiBinarySpace with a specific number of dimensions.
Parameters
InShape – [in] The number of binary dimensions.
Source: Source/Schola/Public/Common/Spaces/MultiBinarySpace.h
Implementation: Source/Schola/Private/Common/Spaces/MultiBinarySpace.cpp
Merge
void Merge(const FMultiBinarySpace &Other)Merges another MultiBinarySpace into this one.
Parameters
Other – [in] The space to merge.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Other | const FMultiBinarySpace & | The space to merge. |
Source: Source/Schola/Public/Common/Spaces/MultiBinarySpace.h
Implementation: Source/Schola/Private/Common/Spaces/MultiBinarySpace.cpp
Copy
void Copy(const FMultiBinarySpace &Other)Copies the contents of another MultiBinarySpace into this one.
Parameters
Other – [in] The space to copy from.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Other | const FMultiBinarySpace & | The space to copy from. |
Source: Source/Schola/Public/Common/Spaces/MultiBinarySpace.h
Implementation: Source/Schola/Private/Common/Spaces/MultiBinarySpace.cpp
GetNumDimensions
virtual int GetNumDimensions() const overrideGets the number of dimensions in this space.
Returns:
The value of Shape.
Attributes: const, virtual
Source: Source/Schola/Public/Common/Spaces/MultiBinarySpace.h
Implementation: Source/Schola/Private/Common/Spaces/MultiBinarySpace.cpp
IsEmpty
virtual bool IsEmpty() const overrideChecks if this space is empty.
Returns:
True if Shape is 0, false otherwise.
Attributes: const, virtual
Source: Source/Schola/Public/Common/Spaces/MultiBinarySpace.h
Implementation: Source/Schola/Private/Common/Spaces/MultiBinarySpace.cpp
Validate
virtual ESpaceValidationResultValidate(const TInstancedStruct<FPoint> &InPoint) const overrideValidates that a point conforms to this space.
Parameters
InPoint – [in] The point to validate.
Returns:
Validation result indicating success or failure reason.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InPoint | const TInstancedStruct< FPoint > & | The point to validate. |
Attributes: const, virtual
Source: Source/Schola/Public/Common/Spaces/MultiBinarySpace.h
Implementation: Source/Schola/Private/Common/Spaces/MultiBinarySpace.cpp
GetFlattenedSize
virtual int GetFlattenedSize() const overrideGets the flattened size of this space.
Returns:
The value of Shape.
Attributes: const, virtual
Source: Source/Schola/Public/Common/Spaces/MultiBinarySpace.h
Implementation: Source/Schola/Private/Common/Spaces/MultiBinarySpace.cpp
Accept
inline virtual void Accept(SpaceVisitor &InVisitor)Accepts a mutable visitor for the visitor pattern.
Parameters
InVisitor – [inout] The visitor to accept.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InVisitor | SpaceVisitor & | The visitor to accept. |
Attributes: inline, virtual
Source: Source/Schola/Public/Common/Spaces/MultiBinarySpace.h
Accept
inline virtual void Accept(ConstSpaceVisitor &InVisitor) constAccepts a const visitor for the visitor pattern.
Parameters
InVisitor – [inout] The const visitor to accept.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InVisitor | SpaceVisitor & | The visitor to accept. |
Attributes: inline, virtual
Source: Source/Schola/Public/Common/Spaces/MultiBinarySpace.h
Public Members
| Symbol | Details |
|---|---|
Shape | The number of binary dimensions in this space. |
Shape
int Shape = 0The number of binary dimensions in this space.