Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TFrameValue< ValueType > Struct Template Reference

#include <FrameValue.h>

+ Collaboration diagram for TFrameValue< ValueType >:

Public Member Functions

 TFrameValue (const ValueType &InValue)
 
 TFrameValue (ValueType &&InValue)
 
 TFrameValue ()
 
 TFrameValue (const TFrameValue &InValue)
 
 TFrameValue (TFrameValue &&InValue)
 
TFrameValueoperator= (const TFrameValue &InValue)
 
TFrameValueoperator= (TFrameValue &&InValue)
 
TFrameValueoperator= (const ValueType &InValue)
 
TFrameValueoperator= (ValueType &&InValue)
 
bool IsSet () const
 
const ValueType & GetValue () const
 
ValueType TryGetValue (ValueType UnsetValue) const
 

Private Attributes

uint64 FrameSet
 
TOptional< ValueType > Value
 

Detailed Description

template<typename ValueType>
struct TFrameValue< ValueType >

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.

Definition at line 14 of file FrameValue.h.

Constructor & Destructor Documentation

◆ TFrameValue() [1/5]

template<typename ValueType >
TFrameValue< ValueType >::TFrameValue ( const ValueType & InValue)
inline

Construct an OptionaType with a valid value.

Definition at line 22 of file FrameValue.h.

◆ TFrameValue() [2/5]

template<typename ValueType >
TFrameValue< ValueType >::TFrameValue ( ValueType && InValue)
inline

Definition at line 28 of file FrameValue.h.

◆ TFrameValue() [3/5]

template<typename ValueType >
TFrameValue< ValueType >::TFrameValue ( )
inline

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

Definition at line 35 of file FrameValue.h.

◆ TFrameValue() [4/5]

template<typename ValueType >
TFrameValue< ValueType >::TFrameValue ( const TFrameValue< ValueType > & InValue)
inline

Copy/Move construction

Definition at line 41 of file FrameValue.h.

◆ TFrameValue() [5/5]

template<typename ValueType >
TFrameValue< ValueType >::TFrameValue ( TFrameValue< ValueType > && InValue)
inline

Definition at line 47 of file FrameValue.h.

Member Function Documentation

◆ GetValue()

template<typename ValueType >
const ValueType & TFrameValue< ValueType >::GetValue ( ) const
inline

Definition at line 88 of file FrameValue.h.

◆ IsSet()

template<typename ValueType >
bool TFrameValue< ValueType >::IsSet ( ) const
inline

Definition at line 83 of file FrameValue.h.

◆ operator=() [1/4]

template<typename ValueType >
TFrameValue & TFrameValue< ValueType >::operator= ( const TFrameValue< ValueType > & InValue)
inline

Definition at line 53 of file FrameValue.h.

◆ operator=() [2/4]

template<typename ValueType >
TFrameValue & TFrameValue< ValueType >::operator= ( const ValueType & InValue)
inline

Definition at line 67 of file FrameValue.h.

◆ operator=() [3/4]

template<typename ValueType >
TFrameValue & TFrameValue< ValueType >::operator= ( TFrameValue< ValueType > && InValue)
inline

Definition at line 60 of file FrameValue.h.

◆ operator=() [4/4]

template<typename ValueType >
TFrameValue & TFrameValue< ValueType >::operator= ( ValueType && InValue)
inline

Definition at line 74 of file FrameValue.h.

◆ TryGetValue()

template<typename ValueType >
ValueType TFrameValue< ValueType >::TryGetValue ( ValueType UnsetValue) const
inline

Definition at line 94 of file FrameValue.h.

Member Data Documentation

◆ FrameSet

template<typename ValueType >
uint64 TFrameValue< ValueType >::FrameSet
private

Definition at line 17 of file FrameValue.h.

◆ Value

template<typename ValueType >
TOptional<ValueType> TFrameValue< ValueType >::Value
private

Definition at line 18 of file FrameValue.h.


The documentation for this struct was generated from the following file: