Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/FrameValue.h |
| Include | #include "Misc/FrameValue.h" |
Syntax
template<typename ValueType>
struct TFrameValue
Remarks
This struct allows you to cache a value for a frame, and automatically invalidates when the frame advances. If the value was set this frame, IsSet() returns true and GetValue() is valid.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TFrameValue () |
Construct an OptionalType with no value; i.e. unset | ||
TFrameValue
(
const ValueType& InValue |
Construct an OptionalType with a valid value. | ||
TFrameValue
(
ValueType&& InValue |
|||
TFrameValue
(
const TFrameValue& InValue |
Copy/Move construction | ||
TFrameValue
(
TFrameValue&& InValue |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const ValueType & | GetValue () |
||
| bool | IsSet () |
||
| ValueType | TryGetValue
(
ValueType UnsetValue |
||
| ValueType | TryGetValue
(
ValueType UnsetValue |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TFrameValue & | operator=
(
const TFrameValue& InValue |
||
| TFrameValue & | operator=
(
TFrameValue&& InValue |
||
| TFrameValue & | operator=
(
const ValueType& InValue |
||
| TFrameValue & | operator=
(
ValueType&& InValue |