|  | Apparatus
   Version 1.23
    ECS data-oriented workflow for Unreal Engine. | 
A harsh outcome with 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. | |
| THarshOutcome & | MapStatus (const EApparatusStatus From, const EApparatusStatus To) | 
| Map the status from a status to a status. | |
| constexpr void | GetPayload () const | 
| Get the in-existent payload. | |
| constexpr | operator EApparatusStatus () const | 
| Convert to a successful status. | |
| constexpr bool | IsOK () const | 
| Convert to successful state for using in a conditional expression. | |
| THarshOutcome & | operator+= (const THarshOutcome &) | 
| THarshOutcome & | operator+= (const EApparatusStatus InStatus) | 
| THarshOutcome | operator+ (const EApparatusStatus InStatus) const | 
| FString | ToString () const | 
| constexpr | THarshOutcome () | 
| template<typename InPayloadT > | |
| constexpr | THarshOutcome (const InPayloadT &InPayload) | 
| Any payload received is considered to be a harsh success. | |
| THarshOutcome (const EApparatusStatus InStatus) | |
| Convert a status to a harsh outcome. | |
| template<typename InPayloadT > | |
| THarshOutcome (const TPoliteOutcome< InPayloadT > &InOutcome) | |
| Convert from a polite outcome. | |
| Static Public Member Functions | |
| static constexpr THarshOutcome< void > | Success () | 
| A constant denoting a successful operation outcome. | |
| static constexpr THarshOutcome< void > | Noop () | 
| A constant denoting a successful skip of any actions. | |
A harsh outcome with no payload.
 
| using THarshOutcome< void >::PayloadType = void | 
The type of the payload, i.e.
lack of it.
| 
 | inlineconstexpr | 
| 
 | inlineconstexpr | 
Any payload received is considered to be a harsh success.
This basically means that an empty harsh outcome can be initialized with any type of value.
| InPayloadT | The type of the other payload. | 
| InPayload | The payload itself. This is just being ignored. | 
| 
 | inline | 
Convert a status to a harsh outcome.
Any successful status is considered to be a valid harsh outcome.
| InStatus | The status to convert. Must be a successful one. | 
| 
 | inline | 
Convert from a polite outcome.
Will assert the outcome is a successful one. Any incoming payload will be just ignored.
| InPayloadT | The type of the other payload. | 
| InOutcome | The polite outcome to convert from. Checked to be a successful one. | 
| 
 | inlineconstexpr | 
Get the in-existent payload.
| 
 | inlineconstexpr | 
Check if the outcome is a noop.
| 
 | inlineconstexpr | 
Convert to successful state for using in a conditional expression.
This always return true, since every harsh result is already a success.
| 
 | 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.
| 
 | inlineexplicitconstexpr | 
Convert to a successful status.
This operation should always be an explicit one for a harsh outcome, since the user should absolutely be aware of what he's actually doing.
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inlinestaticconstexpr | 
A constant denoting a successful operation outcome.
| 
 | inlineconstexpr | 
Convert to a status constant.
| 
 | inline |