Struct FBoxPoint
Struct FBoxPoint
- Defined in File BoxPoint.h
Inheritance Relationships
Base Type
public FPoint(Struct FPoint)
struct FBoxPoint : public FPointSource: Source/Schola/Public/Common/Points/BoxPoint.h
Dependencies: ConstPointVisitor, PointVisitor
A point in a box (continuous) space.
Conceptually represents a floating point vector with continuous values. Box points are used to represent continuous observations or actions in a bounded multi-dimensional space.
Public Functions
| Symbol | Details |
|---|---|
FBoxPoint | Constructs an empty BoxPoint with no values. |
FBoxPoint | Constructs a BoxPoint from an array of float values. |
FBoxPoint | Constructs a BoxPoint from an initializer list of float values. |
FBoxPoint | Constructs a BoxPoint with specific values and shape. |
FBoxPoint | Construct a BoxPoint from a raw array of floats. |
FBoxPoint | Constructs a preallocated BoxPoint with no initial values. |
operator[] | Gets the value at the given index or dimension. |
~FBoxPoint | Virtual destructor. |
Add | Adds a value to the BoxPoint, effectively adding a new dimension. |
Reset | Resets the values of the BoxPoint, clearing the current values. |
Accept | Accepts a mutable visitor for the visitor pattern. |
Accept | Accepts a const visitor for the visitor pattern. |
ToString | Converts this point to a string representation. |
FBoxPoint
inline FBoxPoint()Constructs an empty BoxPoint with no values.
Attributes: inline
Source: Source/Schola/Public/Common/Points/BoxPoint.h
FBoxPoint
inline FBoxPoint(const TArray<float> &InValues)Constructs a BoxPoint from an array of float values.
Parameters
InValues – [in] The array of float values to initialize the point with.
Attributes: inline
Source: Source/Schola/Public/Common/Points/BoxPoint.h
FBoxPoint
inline FBoxPoint(std::initializer_list<float> InValues)Constructs a BoxPoint from an initializer list of float values.
Parameters
InValues – [in] The initializer list of float values.
Attributes: inline
Source: Source/Schola/Public/Common/Points/BoxPoint.h
FBoxPoint
inline FBoxPoint(const TArray<float> &InValues, const TArray<int> &InShape)Constructs a BoxPoint with specific values and shape.
Parameters
-
InValues – [in] The array of float values.
-
InShape – [in] The dimensional shape for the point.
Attributes: inline
Source: Source/Schola/Public/Common/Points/BoxPoint.h
FBoxPoint
inline FBoxPoint(const float *Data, int Num)Construct a BoxPoint from a raw array of floats.
Parameters
-
Data – [in] The raw array of floats, as a const ptr
-
Num – [in] The size of the array
Attributes: inline
Source: Source/Schola/Public/Common/Points/BoxPoint.h
FBoxPoint
inline FBoxPoint(int NumDims)Constructs a preallocated BoxPoint with no initial values.
Parameters
NumDims – [in] The amount of memory to preallocate for values.
Attributes: inline
Source: Source/Schola/Public/Common/Points/BoxPoint.h
operator[]
inline float operator[](int Index) constGets the value at the given index or dimension.
Parameters
Index – [in] The dimension to get the value at.
Returns:
The float value at the given index.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Index | int | The dimension to get the value at. |
Attributes: inline, const
Source: Source/Schola/Public/Common/Points/BoxPoint.h
~FBoxPoint
inline virtual ~FBoxPoint()Virtual destructor.
Attributes: inline, virtual
Source: Source/Schola/Public/Common/Points/BoxPoint.h
Add
inline void Add(float Value)Adds a value to the BoxPoint, effectively adding a new dimension.
Parameters
Value – [in] The float value to add.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Value | float | The float value to add. |
Attributes: inline
Source: Source/Schola/Public/Common/Points/BoxPoint.h
Reset
inline virtual void Reset() overrideResets the values of the BoxPoint, clearing the current values.
Attributes: inline, virtual
Source: Source/Schola/Public/Common/Points/BoxPoint.h
Accept
virtual void Accept(PointVisitor &Visitor) overrideAccepts a mutable visitor for the visitor pattern.
Parameters
Visitor – [inout] The visitor to accept.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Visitor | PointVisitor & | The visitor to accept. |
Attributes: virtual
Source: Source/Schola/Public/Common/Points/BoxPoint.h
Implementation: Source/Schola/Private/Common/Points/BoxPoint.cpp
Accept
virtual void Accept(ConstPointVisitor &Visitor) const overrideAccepts a const visitor for the visitor pattern.
Parameters
Visitor – [inout] The const visitor to accept.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Visitor | PointVisitor & | The visitor to accept. |
Attributes: virtual
Source: Source/Schola/Public/Common/Points/BoxPoint.h
Implementation: Source/Schola/Private/Common/Points/BoxPoint.cpp
ToString
inline virtual FString ToString() const overrideConverts this point to a string representation.
Returns:
A comma-separated string of the float values.
Attributes: inline, const, virtual
Source: Source/Schola/Public/Common/Points/BoxPoint.h
Public Members
| Symbol | Details |
|---|---|
Values | The float values of this point. |
Shape | The dimensional shape of this point. |
Values
TArray<float> ValuesThe float values of this point.
Shape
TArray<int> ShapeThe dimensional shape of this point.
If this is empty, the point is 1D with length Values.Num(). Otherwise, defines the multi-dimensional structure of the values.