Struct FMultiBinaryPoint
Struct FMultiBinaryPoint
- Defined in File MultiBinaryPoint.h
Inheritance Relationships
Base Type
public FPoint(Struct FPoint)
struct FMultiBinaryPoint : public FPointSource: Source/Schola/Public/Common/Points/MultiBinaryPoint.h
Dependencies: ConstPointVisitor, PointVisitor
A point in a multi-binary space with multiple boolean values.
Multi-binary points represent multiple independent binary choices, where each dimension is a true/false value. Commonly used for representing multiple on/off states or binary flags.
Public Functions
| Symbol | Details |
|---|---|
FMultiBinaryPoint | Constructs an empty MultiBinaryPoint. |
FMultiBinaryPoint | Constructs a MultiBinaryPoint from an array of booleans. |
FMultiBinaryPoint | Constructs a MultiBinaryPoint from an initializer list. |
FMultiBinaryPoint | Constructs a MultiBinaryPoint from a raw array of bools. |
~FMultiBinaryPoint | Virtual destructor. |
operator[] | Gets the boolean value at the given index. |
Add | Adds a boolean value to the point. |
Reset | Resets the values of the MultiBinaryPoint. |
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. |
FMultiBinaryPoint
inline FMultiBinaryPoint()Constructs an empty MultiBinaryPoint.
Attributes: inline
Source: Source/Schola/Public/Common/Points/MultiBinaryPoint.h
FMultiBinaryPoint
inline FMultiBinaryPoint(const TArray<bool> &InitialValues)Constructs a MultiBinaryPoint from an array of booleans.
Parameters
InitialValues – [in] An array of bools to initialize the point with.
Attributes: inline
Source: Source/Schola/Public/Common/Points/MultiBinaryPoint.h
FMultiBinaryPoint
inline FMultiBinaryPoint(std::initializer_list<bool> InValues)Constructs a MultiBinaryPoint from an initializer list.
Parameters
InValues – [in] An initializer list of bools.
Attributes: inline
Source: Source/Schola/Public/Common/Points/MultiBinaryPoint.h
FMultiBinaryPoint
inline FMultiBinaryPoint(const bool *Data, int Num)Constructs a MultiBinaryPoint from a raw array of bools.
Parameters
-
Data – [in] The raw array of bools, as a const pointer.
-
Num – [in] The size of the array.
Attributes: inline
Source: Source/Schola/Public/Common/Points/MultiBinaryPoint.h
~FMultiBinaryPoint
inline virtual ~FMultiBinaryPoint()Virtual destructor.
Attributes: inline, virtual
Source: Source/Schola/Public/Common/Points/MultiBinaryPoint.h
operator[]
inline bool operator[](int Index) constGets the boolean value at the given index.
Parameters
Index – [in] The dimension to get the value at.
Returns:
The boolean 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/MultiBinaryPoint.h
Add
inline void Add(bool Value)Adds a boolean value to the point.
Parameters
Value – [in] The boolean value to add.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Value | bool | The boolean value to add. |
Attributes: inline
Source: Source/Schola/Public/Common/Points/MultiBinaryPoint.h
Reset
inline virtual void Reset() overrideResets the values of the MultiBinaryPoint.
Attributes: inline, virtual
Source: Source/Schola/Public/Common/Points/MultiBinaryPoint.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/MultiBinaryPoint.h
Implementation: Source/Schola/Private/Common/Points/MultiBinaryPoint.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/MultiBinaryPoint.h
Implementation: Source/Schola/Private/Common/Points/MultiBinaryPoint.cpp
ToString
inline virtual FString ToString() const overrideConverts this point to a string representation.
Returns:
A string showing all boolean values.
Attributes: inline, const, virtual
Source: Source/Schola/Public/Common/Points/MultiBinaryPoint.h
Public Members
| Symbol | Details |
|---|---|
Values | The boolean values of this point. |
Values
TArray<bool> ValuesThe boolean values of this point.