FRCPropertyVariant

Container that can hold either a PropertyHandle, or Property/Data pair.

Windows
MacOS
Linux

References

Module

RemoteControlCommon

Header

/Engine/Plugins/VirtualProduction/RemoteControl/Source/RemoteControlCommon/Public/RCPropertyUtilities.h

Include

#include "RCPropertyUtilities.h"

Syntax

class FRCPropertyVariant

Remarks

Container that can hold either a PropertyHandle, or Property/Data pair. Similar to FFieldVariant

Constructors

Name Description

Public function

FRCPropertyVariant()

Public function

FRCPropertyVariant

(
    const TSharedPtr< IPropertyHandle >...
)

Construct from an IPropertyHandle.

Public function

FRCPropertyVariant

(
    const FProperty* InProperty,
    const void* InPropertyData,
    const int32& InNumElements
)

Construct from a Property, PropertyData ptr, and the expected element count (needed for arrays, strings, etc.).

Public function

FRCPropertyVariant

(
    const FProperty* InProperty,
    TArray< uint8 >& InPropertyData,
    const int32& InNumElements
)

Construct from a Property and backing data array. Preferred over a raw ptr.

Destructors

Name Description

Public function Virtual

~FRCPropertyVariant()

Functions

Name Description

Public function Const

int32

 

GetElementSize()

Gets individual element size (for arrays, etc.).

Public function Const

PropertyType...

 

GetProperty()

Gets the typed property, returns nullptr if not cast.

Public function Const

FProperty &#...

 

GetProperty()

Gets the property.

Public function Const

TArray< uint...

 

GetPropertyContainer()

Gets the property container (byte array), if available.

Public function Const

void *

 

GetPropertyData

(
    const FProperty* InContainer,
    int32 InIdx
)

Gets the data pointer

Public function Const

FString *...

 

GetPropertyValue

(
    const FProperty* InContainer,
    int32 InIdx
)

Public function Const

ValueType &#...

 

GetPropertyValue

(
    const FProperty* InContainer,
    int32 InIdx
)

Returns the data as the ValueType.

Public function

void

 

InferNum

(
    const FRCPropertyVariant* InOt...
)

Calculate number of elements based on available info.

Public function

void

 

Init

(
    int32 InSize
)

Initialize/allocate if necessary.

Public function Const

bool

 

IsHandle()

Is this backed by an IPropertyHandle?

Public function Const

int32

 

Num()

Gets the number of elements, more than 1 if an array.

Public function Const

int32

 

Size()

Gets the size of the underlying data.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FRCPropertyVariant& InOther
)

Public function Const

bool

 

operator==

(
    const FRCPropertyVariant& InOther
)

Comparison is by property, not by property instance value.

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