Represents a value that can be sent to or received from a SignalR hub. More...
#include <SignalRValue.h>
Public Types | |
enum class | EValueType { Number , Object , Array , String , Null , Boolean , Binary } |
Enumeration of possible value types that can be stored in a FSignalRValue. More... | |
Public Member Functions | |
FSignalRValue () | |
Create an object representing a EValueType::Null value. | |
FSignalRValue (std::nullptr_t) | |
Create an object representing a EValueType::Null value. | |
FSignalRValue (const int32 InValue) | |
Create an object representing a EValueType::Number with the given integer value. | |
FSignalRValue (const uint32 InValue) | |
Create an object representing a EValueType::Number with the given unsigned integer value. | |
FSignalRValue (const int64 InValue) | |
Create an object representing a EValueType::Number with the given 64-bit integer value. | |
FSignalRValue (const uint64 InValue) | |
Create an object representing a EValueType::Number with the given unsigned 64-bit integer value. | |
FSignalRValue (const float InValue) | |
Create an object representing a EValueType::Number with the given float value. | |
FSignalRValue (const double InValue) | |
Create an object representing a EValueType::Number with the given double value. | |
FSignalRValue (const TMap< FString, FSignalRValue > &InValue) | |
Create an object representing a EValueType::Object with the given map of string-values. | |
FSignalRValue (TMap< FString, FSignalRValue > &&InValue) | |
Create an object representing a EValueType::Object with the given map of string-values. | |
FSignalRValue (const TArray< FSignalRValue > &InValue) | |
Create an object representing a EValueType::Array with the given array of values. | |
FSignalRValue (TArray< FSignalRValue > &&InValue) | |
Create an object representing a EValueType::Array with the given array of values. | |
FSignalRValue (const FString &InValue) | |
Create an object representing a EValueType::String with the given string value. | |
FSignalRValue (FString &&InValue) | |
Create an object representing a EValueType::String with the given string value. | |
FSignalRValue (bool InValue) | |
Create an object representing a EValueType::Boolean with the given bool value. | |
FSignalRValue (const TArray< uint8 > &InValue) | |
Create an object representing a EValueType::Binary with the given array of byte's. | |
FSignalRValue (TArray< uint8 > &&InValue) | |
Create an object representing a EValueType::Binary with the given array of byte's. | |
FSignalRValue (const FSignalRValue &OtherValue) | |
Copies an existing value. | |
FSignalRValue (FSignalRValue &&OtherValue) noexcept | |
Moves an existing value. | |
~FSignalRValue ()=default | |
Cleans up the resources associated with the value. | |
FSignalRValue & | operator= (const FSignalRValue &OtherValue) |
Copies an existing value. | |
FSignalRValue & | operator= (FSignalRValue &&OtherValue) noexcept |
Moves an existing value. | |
FORCEINLINE bool | IsNumber () const |
FORCEINLINE bool | IsObject () const |
FORCEINLINE bool | IsString () const |
FORCEINLINE bool | IsNull () const |
FORCEINLINE bool | IsArray () const |
FORCEINLINE bool | IsBoolean () const |
FORCEINLINE bool | IsBinary () const |
FORCEINLINE EValueType | GetType () const |
FORCEINLINE int64 | AsInt () const |
FORCEINLINE uint64 | AsUInt () const |
FORCEINLINE float | AsFloat () const |
FORCEINLINE double | AsDouble () const |
FORCEINLINE double | AsNumber () const |
FORCEINLINE const TMap< FString, FSignalRValue > & | AsObject () const |
FORCEINLINE const TArray< FSignalRValue > & | AsArray () const |
FORCEINLINE const FString & | AsString () const |
FORCEINLINE bool | AsBool () const |
FORCEINLINE const TArray< uint8 > & | AsBinary () const |
Represents a value that can be sent to or received from a SignalR hub.
Supports various data types including numbers, objects, arrays, strings, booleans, and binary data.
|
strong |
Enumeration of possible value types that can be stored in a FSignalRValue.
Enumerator | |
---|---|
Number | |
Object | |
Array | |
String | |
Null | |
Boolean | |
Binary |
|
inline |
Create an object representing a EValueType::Null value.
|
inline |
Create an object representing a EValueType::Null value.
|
inline |
Create an object representing a EValueType::Number with the given integer value.
InValue | The integer value to store. |
|
inline |
Create an object representing a EValueType::Number with the given unsigned integer value.
InValue | The unsigned integer value to store. |
|
inline |
Create an object representing a EValueType::Number with the given 64-bit integer value.
InValue | The 64-bit integer value to store. |
|
inline |
Create an object representing a EValueType::Number with the given unsigned 64-bit integer value.
InValue | The unsigned 64-bit integer value to store. |
|
inline |
Create an object representing a EValueType::Number with the given float value.
InValue | The float value to store. |
|
inline |
Create an object representing a EValueType::Number with the given double value.
InValue | The double value to store. |
|
inline |
Create an object representing a EValueType::Object with the given map of string-values.
InValue | The map of key-value pairs to store. |
|
inline |
Create an object representing a EValueType::Object with the given map of string-values.
InValue | The map of key-value pairs to store (moved). |
|
inline |
Create an object representing a EValueType::Array with the given array of values.
InValue | The array of values to store. |
|
inline |
Create an object representing a EValueType::Array with the given array of values.
InValue | The array of values to store (moved). |
|
inline |
Create an object representing a EValueType::String with the given string value.
InValue | The string value to store. |
|
inline |
Create an object representing a EValueType::String with the given string value.
InValue | The string value to store (moved). |
|
inline |
Create an object representing a EValueType::Boolean with the given bool value.
InValue | The boolean value to store. |
|
inline |
Create an object representing a EValueType::Binary with the given array of byte's.
InValue | The binary data to store. |
|
inline |
Create an object representing a EValueType::Binary with the given array of byte's.
InValue | The binary data to store (moved). |
|
inline |
Copies an existing value.
OtherValue | The value to copy. |
|
inlinenoexcept |
Moves an existing value.
OtherValue | The value to move from. |
|
default |
Cleans up the resources associated with the value.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Copies an existing value.
OtherValue | The value to copy. |
|
inlinenoexcept |
Moves an existing value.
OtherValue | The value to move from. |