Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FFrameNumber Struct Reference

#include <FrameNumber.h>

Public Member Functions

constexpr FFrameNumber ()
 
template<typename T , typename U = typename TEnableIf<std::is_same_v<T, int32>>::Type>
constexpr FFrameNumber (T InValue)
 
bool Serialize (FArchive &Ar)
 
FFrameNumberoperator+= (FFrameNumber RHS)
 
FFrameNumberoperator-= (FFrameNumber RHS)
 
FFrameNumberoperator%= (FFrameNumber RHS)
 
FFrameNumberoperator++ ()
 
FFrameNumberoperator-- ()
 
FFrameNumber operator++ (int32)
 
FFrameNumber operator-- (int32)
 

Public Attributes

int32 Value
 

Friends

FArchiveoperator<< (FArchive &Ar, FFrameNumber &FrameNumber)
 
bool operator== (FFrameNumber A, FFrameNumber B)
 
bool operator!= (FFrameNumber A, FFrameNumber B)
 
bool operator< (FFrameNumber A, FFrameNumber B)
 
bool operator> (FFrameNumber A, FFrameNumber B)
 
bool operator<= (FFrameNumber A, FFrameNumber B)
 
bool operator>= (FFrameNumber A, FFrameNumber B)
 
FFrameNumber operator+ (FFrameNumber A, FFrameNumber B)
 
FFrameNumber operator- (FFrameNumber A, FFrameNumber B)
 
FFrameNumber operator% (FFrameNumber A, FFrameNumber B)
 
FFrameNumber operator- (FFrameNumber A)
 
FFrameNumber operator* (FFrameNumber A, float Scalar)
 
FFrameNumber operator/ (FFrameNumber A, float Scalar)
 
uint32 GetTypeHash (FFrameNumber A)
 

Detailed Description

Typesafe 32-bit signed frame number. Defined in this way to prevent erroneous float->int conversions and afford type-safe operator overloading.

Definition at line 17 of file FrameNumber.h.

Constructor & Destructor Documentation

◆ FFrameNumber() [1/2]

constexpr FFrameNumber::FFrameNumber ( )
inlineconstexpr

Definition at line 19 of file FrameNumber.h.

+ Here is the caller graph for this function:

◆ FFrameNumber() [2/2]

template<typename T , typename U = typename TEnableIf<std::is_same_v<T, int32>>::Type>
constexpr FFrameNumber::FFrameNumber ( T InValue)
inlineconstexpr

Implicit construction from a signed integer frame number, whilst disallowing any construction from other types.

Definition at line 27 of file FrameNumber.h.

Member Function Documentation

◆ operator%=()

FFrameNumber & FFrameNumber::operator%= ( FFrameNumber RHS)
inline

Definition at line 44 of file FrameNumber.h.

◆ operator++() [1/2]

FFrameNumber & FFrameNumber::operator++ ( )
inline

Definition at line 46 of file FrameNumber.h.

◆ operator++() [2/2]

FFrameNumber FFrameNumber::operator++ ( int32 )
inline

Definition at line 49 of file FrameNumber.h.

◆ operator+=()

FFrameNumber & FFrameNumber::operator+= ( FFrameNumber RHS)
inline

Definition at line 42 of file FrameNumber.h.

◆ operator--() [1/2]

FFrameNumber & FFrameNumber::operator-- ( )
inline

Definition at line 47 of file FrameNumber.h.

◆ operator--() [2/2]

FFrameNumber FFrameNumber::operator-- ( int32 )
inline

Definition at line 50 of file FrameNumber.h.

◆ operator-=()

FFrameNumber & FFrameNumber::operator-= ( FFrameNumber RHS)
inline

Definition at line 43 of file FrameNumber.h.

◆ Serialize()

bool FFrameNumber::Serialize ( FArchive & Ar)

Friends And Related Symbol Documentation

◆ GetTypeHash

uint32 GetTypeHash ( FFrameNumber A)
friend

Definition at line 69 of file FrameNumber.h.

◆ operator!=

bool operator!= ( FFrameNumber A,
FFrameNumber B )
friend

Definition at line 53 of file FrameNumber.h.

◆ operator%

Definition at line 62 of file FrameNumber.h.

◆ operator*

FFrameNumber operator* ( FFrameNumber A,
float Scalar )
friend

Definition at line 66 of file FrameNumber.h.

◆ operator+

Definition at line 60 of file FrameNumber.h.

◆ operator- [1/2]

Definition at line 64 of file FrameNumber.h.

◆ operator- [2/2]

Definition at line 61 of file FrameNumber.h.

◆ operator/

FFrameNumber operator/ ( FFrameNumber A,
float Scalar )
friend

Definition at line 67 of file FrameNumber.h.

◆ operator<

Definition at line 55 of file FrameNumber.h.

◆ operator<<

FArchive & operator<< ( FArchive & Ar,
FFrameNumber & FrameNumber )
friend

Serializes the given FrameNumber from or into the specified archive.

Parameters
ArThe archive to serialize from or into.
FrameNumberThe bound to serialize.
Returns
The archive used for serialization.

◆ operator<=

bool operator<= ( FFrameNumber A,
FFrameNumber B )
friend

Definition at line 57 of file FrameNumber.h.

◆ operator==

bool operator== ( FFrameNumber A,
FFrameNumber B )
friend

Definition at line 52 of file FrameNumber.h.

◆ operator>

Definition at line 56 of file FrameNumber.h.

◆ operator>=

bool operator>= ( FFrameNumber A,
FFrameNumber B )
friend

Definition at line 58 of file FrameNumber.h.

Member Data Documentation

◆ Value

int32 FFrameNumber::Value

The value of the frame number

Definition at line 77 of file FrameNumber.h.


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