Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/IO
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/IO/IoDispatcher.h |
| Include | #include "IO/IoDispatcher.h" |
Syntax
template<typename OptionalType>
struct TOptional
Remarks
When we have an optional value IsSet() returns true, and GetValue() is meaningful. Otherwise GetValue() is not meaningful.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TOptional () |
Construct an OptionalType with no value; i.e. unset | ||
TOptional
(
const OptionalType& InValue |
Construct an OptionalType with a valid value. | ||
TOptional
(
OptionalType&& InValue |
|||
| Construct an OptionalType with an invalid value. | |||
| Copy/Move construction | |||
TOptional
(
EInPlace, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~TOptional () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| OptionalType & | Emplace
(
ArgsType&&... Args |
||
| const OptionalType & | Get
(
const OptionalType& DefaultValue |
||
| OptionalType * | GetPtrOrNull () |
||
| const OptionalType * | GetPtrOrNull () |
||
| const OptionalType & | GetValue () |
||
| OptionalType & | GetValue () |
||
| bool | IsSet () |
||
| void | Reset () |
||
| void |
Operators
| Type | Name | Description | |
|---|---|---|---|
| OptionalType & | operator* () |
||
| const OptionalType & | operator* () |
||
| TOptional & | |||
| TOptional & | |||
| TOptional & | operator=
(
const OptionalType& InValue |
||
| TOptional & | operator=
(
OptionalType&& InValue |
||
| OptionalType * | operator-> () |
||
| const OptionalType * | operator-> () |
Typedefs
| Name | Description |
|---|---|
| ElementType | |
| ValueStorageType |
Constants
| Name | Description |
|---|---|
| bUsingIntrusiveUnsetState |