|
Apparatus
Version 1.23
ECS data-oriented workflow for Unreal Engine.
|
Polite outcome with a status but no payload. More...
#include <ApparatusStatus.h>


Public Types | |
| using | PayloadType = void |
| The type of the payload, i.e. | |
Public Member Functions | |
| constexpr EApparatusStatus | ToStatus () const |
| Convert to a status constant. | |
| constexpr bool | IsNoop () const |
| Check if the outcome is a noop. | |
| TPoliteOutcome & | MapStatus (const EApparatusStatus From, const EApparatusStatus To) |
| Map the status from a status to a status. | |
| constexpr void | GetPayload () const |
| Get the non-existent payload. | |
| constexpr | operator EApparatusStatus () const |
| Convert to a status. | |
| constexpr bool | IsOK () const |
| Convert to success state for using in a conditional expression. | |
| template<typename OtherPayloadT > | |
| TPoliteOutcome & | operator+= (const THarshOutcome< OtherPayloadT > &) |
| Accumulate a harsh outcome. | |
| TPoliteOutcome & | operator+= (const EApparatusStatus InStatus) |
| template<typename AnyPayloadT > | |
| TPoliteOutcome & | operator+= (const TPoliteOutcome< AnyPayloadT > &InOutcome) |
| Accumulate a polite outcome with any payload. | |
| constexpr TPoliteOutcome | operator+ (const EApparatusStatus InStatus) const |
| FString | ToString () const |
| constexpr | TPoliteOutcome () |
| Initialize a default polite pointer outcome using a noop status. | |
| constexpr | TPoliteOutcome (const EApparatusStatus InStatus) |
| Initialize a polite outcome using a status. | |
| template<typename AnyPayloadT > | |
| constexpr | TPoliteOutcome (const EApparatusStatus InStatus, AnyPayloadT &&) |
| Initialize using a status and any type of payload. | |
| template<typename AnyPayloadT > | |
| constexpr | TPoliteOutcome (AnyPayloadT &&) |
| Initialize a polite outcome with an ignored payload. | |
| template<typename InPayloadT > | |
| constexpr | TPoliteOutcome (const THarshOutcome< InPayloadT > &InOutcome) |
| Initialize a polite outcome with a harsh one. | |
| template<typename InPayloadT > | |
| constexpr | TPoliteOutcome (const TPoliteOutcome< InPayloadT > &InOutcome) |
| Initialize a copy of a polite outcome. | |
Static Public Member Functions | |
| static constexpr TPoliteOutcome< void > | Success () |
| A constant denoting a successful operation outcome. | |
| static constexpr TPoliteOutcome< void > | Noop () |
| A constant denoting a successful skip of any actions. | |
Public Attributes | |
| EApparatusStatus | Status |
| The embedded status of the outcome. | |
Polite outcome with a status but no payload.
| using TPoliteOutcome< void >::PayloadType = void |
The type of the payload, i.e.
lack of it.
|
inlineconstexpr |
Initialize a default polite pointer outcome using a noop status.
|
inlineconstexpr |
Initialize a polite outcome using a status.
| InStatus | The status to initialize with. |
|
inlineconstexpr |
Initialize using a status and any type of payload.
| AnyPayloadT | The payload to initialize from. This is used for deduction only and is basically ignored. |
| InStatus | The status to initialize with. |
|
inlineconstexpr |
Initialize a polite outcome with an ignored payload.
Just a payload is considered to be a success.
| AnyPayloadT | The payload to initialize from. This is used for deduction only. |
|
inlineconstexpr |
Initialize a polite outcome with a harsh one.
A harsh outcome with any payload is considered to be a success.
| InPayloadT | The type of the other payload. This is used for deduction only. |
| InOutcome | The outcome to initialize from. |
|
inlineconstexpr |
Initialize a copy of a polite outcome.
| InPayloadT | The type of the other payload. This is used for deduction only. |
| InOutcome | The polite outcome to copy. |
|
inlineconstexpr |
Get the non-existent payload.
|
inlineconstexpr |
Check if the outcome is a noop.
|
inlineconstexpr |
Convert to success state for using in a conditional expression.
Returns true for successful statuses, false otherwise.
|
inline |
Map the status from a status to a status.
| From | The status to map from. |
| To | The status to map to. |
|
inlinestaticconstexpr |
A constant denoting a successful skip of any actions.
|
inlineconstexpr |
Convert to a status.
This is an explicit conversion for a polite outcome.
|
inlineconstexpr |
|
inline |
|
inline |
Accumulate a harsh outcome.
This is semantically identical to accumulating with a success status, since every harsh outcome is basically a non-fail.
| OtherPayloadT | The optional payload of the harsh outcome. |
|
inline |
Accumulate a polite outcome with any payload.
| AnyPayloadT | The other payload to accumulate. |
| InOutcome | The outcome to combine with. |
|
inlinestaticconstexpr |
A constant denoting a successful operation outcome.
|
inlineconstexpr |
Convert to a status constant.
|
inline |
| EApparatusStatus TPoliteOutcome< void >::Status |
The embedded status of the outcome.