Navigation
API > API/Plugins > API/Plugins/WebAPIEditor
Contains either an object constructed in place, or a reference to an object declared elsewhere.
| Name | TJsonReference |
| Type | class |
| Header File | /Engine/Plugins/Experimental/Web/WebAPI/Source/WebAPIEditor/Public/WebAPIJsonUtilities.h |
| Include Path | #include "WebAPIJsonUtilities.h" |
Syntax
template<class ObjectType>
class TJsonReference
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TJsonReference() |
Constructs an empty Json Reference. | WebAPIJsonUtilities.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementType | ObjectType | WebAPIJsonUtilities.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Mode | ESPMode | WebAPIJsonUtilities.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ObjectType * Get () |
Returns the object referenced by this Json Reference, or nullptr if it doesn't exist. | WebAPIJsonUtilities.h | |
ObjectType * Get () |
Returns the object referenced by this Json Reference, creating it if it doesn't exist. | WebAPIJsonUtilities.h | |
FString GetLastPathSegment() |
WebAPIJsonUtilities.h | ||
const FString & GetPath() |
WebAPIJsonUtilities.h | ||
bool GetPathSegments
(
TArray< FString >& OutSegments |
Returns true if there were one or more segments. | WebAPIJsonUtilities.h | |
TSharedPtr< ObjectType > GetShared () |
Returns the object referenced by this Json Reference, or nullptr if it doesn't exist. | WebAPIJsonUtilities.h | |
TSharedPtr< ObjectType > GetShared () |
Returns the object referenced by this Json Reference, creating it if it doesn't exist. | WebAPIJsonUtilities.h | |
bool IsSet() |
Checks if the underlying object has been set. | WebAPIJsonUtilities.h | |
bool IsValid() |
Checks if the object is valid, or it's pending reference resolution. | WebAPIJsonUtilities.h | |
void ResolveDeferred
(
const FString& InJsonPath |
Sets the object path and flags it as a pending reference (to be resolved later). | WebAPIJsonUtilities.h | |
bool Set
(
TSharedPtr< ObjectType >&& InObject |
Set's the object if it's not already set. | WebAPIJsonUtilities.h | |
bool Set
(
ObjectType&& InObject |
Set's the object if it's not already set. | WebAPIJsonUtilities.h | |
bool Set
(
const TSharedPtr< ObjectType >& InObject |
Set's the object if it's not already set. | WebAPIJsonUtilities.h | |
bool TryResolve
(
const TSharedRef< FJsonObject >& InRootObject, |
Attempts to resolve the reference, returns true if successful or already set. | WebAPIJsonUtilities.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
Checks to see if this is actually pointing to an object. | WebAPIJsonUtilities.h | |
ObjectType & operator*() |
Dereferences the object | WebAPIJsonUtilities.h | |
ObjectType * operator->() |
Pointer to the underlying object. | WebAPIJsonUtilities.h |