跳至内容

FBinarySpace

struct FBinarySpace : public FSpace

一个表示二进制空间(例如,布尔向量)的可能观察或操作的结构。

布尔向量,表示可能的观察或操作。

依赖项: FBinarySpace, FSpace

继承自: public FSpace

公共接口

构造函数

FBinarySpace

FBinarySpace()

构造一个空的 BinarySpace。

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 26 行, 第 1 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 5-7 行)

FBinarySpace

FBinarySpace(int Shape)

使用给定的维度数构造一个 BinarySpace。

参数

  • Shape (int) – [in] 此 BinarySpace 中的维度数

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 32 行, 第 1 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 9-12 行)

公共函数

合并

void Merge(const FBinarySpace &Other)

将另一个 BinarySpace 合并到此 BinarySpace 中。

参数

  • Other (const FBinarySpace &) – [in] 要合并的 BinarySpace

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 38 行, 第 6 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 14-17 行)

Copy

void Copy(const FBinarySpace &Other)

复制构造函数。

参数

  • Other (const FBinarySpace &) – [in] 要复制的 BinarySpace

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 44 行, 第 6 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 19-22 行)

FillProtobuf

void FillProtobuf(BinarySpace *Msg) const const

将此 BinarySpace 的数据填充到 protobuf 消息中。

参数

  • Msg (BinarySpace *) – [in] 要填充的 protobuf 消息的指针

属性: const

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 50 行, 第 6 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 57-60 行)

FillProtobuf

void FillProtobuf(BinarySpace &Msg) const const

将此 BinarySpace 的数据填充到 protobuf 消息中。

参数

  • Msg (BinarySpace &) – [in] 要填充的 protobuf 消息的引用

属性: const

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 56 行, 第 6 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 62-65 行)

FillProtobuf

virtual void FillProtobuf(FundamentalSpace *Msg) const override const

将此空间的数据填充到 protobuf 消息中。

参数

  • Msg (FundamentalSpace *) – [in] 要填充的 protobuf 消息

属性: const, virtual

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 60 行, 第 6 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 24-28 行)

GetNumDimensions

virtual int GetNumDimensions() const override const

获取此空间中的维度数。

返回: 此空间中的维度数

返回: int

属性: const, virtual

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 62 行, 第 5 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 30-33 行)

验证

virtual ESpaceValidationResult Validate(TPoint &Observation) const override const

测试观察是否在此空间中。

返回: 指示验证结果的枚举

参数

  • Observation (TPoint &) – [in] 要验证的观察

返回: ESpaceValidationResult

属性: const, virtual

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 64 行, 第 24 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 35-54 行)

GetFlattenedSize

virtual int GetFlattenedSize() const override const

获取此空间扁平化表示的大小。

返回: 此空间扁平化表示的大小

返回: int

属性: const, virtual

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 66 行, 第 5 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 87-90 行)

IsEmpty

virtual bool IsEmpty() const override const

检查此空间是否为空。

返回: 如果此空间为空,则为 true,否则为 false

返回: bool

属性: const, virtual

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 68 行, 第 6 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 92-95 行)

MakeTPoint

virtual TPoint MakeTPoint() const override const

从此空间创建 TPoint。

返回: 属于此空间的 TPoint,具有正确设置的变体类型。

返回: TPoint

属性: const, virtual

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 70 行, 第 8 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 97-100 行)

UnflattenAction

virtual TPoint UnflattenAction(const TArray<float> &Data, int Offset=0) const override const

从缓冲区取消扁平化操作。

参数

  • Data (const TArray<float> &) – [in] 要从中取消扁平化的缓冲区
  • Offset (int) – [in] 从中开始取消扁平化的缓冲区偏移量

返回: TPoint

属性: const, virtual

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 72 行, 第 8 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 67-75 行)

FlattenPoint

virtual void FlattenPoint(TArrayView<float> Buffer, const TPoint &Point) const override const

将点扁平化到缓冲区中。

参数

  • Buffer (TArrayView<float>) – [inout] 要扁平化到的缓冲区
  • Point (const TPoint &) – [in] 要扁平化的点

属性: const, virtual

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 74 行, 第 6 列)

实现: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp (第 77-85 行)

公共成员

int Shape

int Shape = = 0

此 BinarySpace 中的维度数。

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 21 行, 第 5 列)

使用于

此类型由以下部分使用

来源: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h (第 15 行, 第 1 列)

© . This site is unofficial and not affiliated with AMD.