Navigation
API > API/Runtime > API/Runtime/CoreUObject
Encapsulates the memory layout logic for an optional without implementing the full FProperty API.
| Name | FOptionalPropertyLayout |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/PropertyOptional.h |
| Include Path | #include "UObject/PropertyOptional.h" |
Syntax
struct FOptionalPropertyLayout
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
constexpr FOptionalPropertyLayout
(
FProperty* InValueProperty |
UObject/PropertyOptional.h | ||
constexpr FOptionalPropertyLayout () |
UObject/PropertyOptional.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 CalcSize() |
UObject/PropertyOptional.h | ||
const void * GetValuePointerForRead
(
const void* Data |
For reading the value of a set optional. Must be called on a non-null pointer to a set optional. | UObject/PropertyOptional.h | |
const void * GetValuePointerForReadIfSet
(
const void* Data |
For reading the value of a set optional. | UObject/PropertyOptional.h | |
void * GetValuePointerForReadOrReplace
(
void* Data |
UObject/PropertyOptional.h | ||
const void * GetValuePointerForReadOrReplace
(
const void* Data |
For calling from polymorphic code that doesn't know whether it needs the value pointer for read or replace, or whether it has a const pointer or not. | UObject/PropertyOptional.h | |
void * GetValuePointerForReadOrReplaceIfSet
(
void* Data |
UObject/PropertyOptional.h | ||
const void * GetValuePointerForReadOrReplaceIfSet
(
const void* Data |
For calling from polymorphic code that doesn't know whether it needs the value pointer for read or replace, or whether it has a const pointer or not. | UObject/PropertyOptional.h | |
void * GetValuePointerForReplace
(
void* Data |
For replacing the value of a set optional. Must be called on a non-null pointer to a set optional. | UObject/PropertyOptional.h | |
void * GetValuePointerForReplaceIfSet
(
void* Data |
For replacing the value of a set optional. | UObject/PropertyOptional.h | |
FProperty * GetValueProperty() |
UObject/PropertyOptional.h | ||
bool IsSet
(
const void* Data |
UObject/PropertyOptional.h | ||
void * MarkSetAndGetInitializedValuePointerToReplace
(
void* Data |
UObject/PropertyOptional.h | ||
void MarkUnset
(
void* Data |
UObject/PropertyOptional.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 CalcIsSetOffset() |
UObject/PropertyOptional.h | ||
const bool * GetIsSetPointer
(
const void* Data |
UObject/PropertyOptional.h | ||
bool * GetIsSetPointer
(
void* Data |
UObject/PropertyOptional.h |