Skip to content

Struct FMultiBinaryPoint

Struct FMultiBinaryPoint

  • Defined in File MultiBinaryPoint.h

Inheritance Relationships

Base Type

struct FMultiBinaryPoint : public FPoint

Source: 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

SymbolDetails
FMultiBinaryPointConstructs an empty MultiBinaryPoint.
FMultiBinaryPointConstructs a MultiBinaryPoint from an array of booleans.
FMultiBinaryPointConstructs a MultiBinaryPoint from an initializer list.
FMultiBinaryPointConstructs a MultiBinaryPoint from a raw array of bools.
~FMultiBinaryPointVirtual destructor.
operator[]Gets the boolean value at the given index.
AddAdds a boolean value to the point.
ResetResets the values of the MultiBinaryPoint.
AcceptAccepts a mutable visitor for the visitor pattern.
AcceptAccepts a const visitor for the visitor pattern.
ToStringConverts 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) const

Gets 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.

#DirectionNameTypeDescription
1IndexintThe 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.

#DirectionNameTypeDescription
1ValueboolThe boolean value to add.

Attributes: inline

Source: Source/Schola/Public/Common/Points/MultiBinaryPoint.h

Reset

inline virtual void Reset() override

Resets the values of the MultiBinaryPoint.

Attributes: inline, virtual

Source: Source/Schola/Public/Common/Points/MultiBinaryPoint.h

Accept

virtual void Accept(PointVisitor &Visitor) override

Accepts a mutable visitor for the visitor pattern.

Parameters

Visitor – [inout] The visitor to accept.

#DirectionNameTypeDescription
1VisitorPointVisitor &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 override

Accepts a const visitor for the visitor pattern.

Parameters

Visitor – [inout] The const visitor to accept.

#DirectionNameTypeDescription
1VisitorPointVisitor &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 override

Converts 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

SymbolDetails
ValuesThe boolean values of this point.

Values

TArray<bool> Values

The boolean values of this point.