TFrameValue

This struct allows you to cache a value for a frame, and automatically invalidates when the frame advances.

Windows
MacOS
Linux

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

Name Description

Public function

TFrameValue()

Construct an OptionalType with no value; i.e. unset

Public function

TFrameValue

(
    const ValueType& InValue
)

Construct an OptionaType with a valid value.

Public function

TFrameValue

(
    ValueType&& InValue
)

Public function

TFrameValue

(
    const TFrameValue& InValue
)

Copy/Move construction

Public function

TFrameValue

(
    TFrameValue&& InValue
)

Functions

Name Description

Public function Const

const ValueT...

 

GetValue()

Public function Const

bool

 

IsSet()

Public function Const

ValueType

 

TryGetValue

(
    ValueType UnsetValue
)

Operators

Name Description

Public function

TFrameValue ...

 

operator=

(
    const TFrameValue& InValue
)

Public function

TFrameValue ...

 

operator=

(
    TFrameValue&& InValue
)

Public function

TFrameValue ...

 

operator=

(
    const ValueType& InValue
)

Public function

TFrameValue ...

 

operator=

(
    ValueType&& InValue
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss