A collection of utility functions operating on cached property paths 更多...
函数 | |
| PROPERTYPATH_API bool | CopyPropertyValue (UObject *InContainer, const FCachedPropertyPath &InDestPropertyPath, const FCachedPropertyPath &InSrcPropertyPath) |
| Copy values between two property paths in the same container. 更多... | |
| PROPERTYPATH_API bool | CopyPropertyValueFast (UObject *InContainer, const FCachedPropertyPath &InDestPropertyPath, const FCachedPropertyPath &InSrcPropertyPath) |
| Copy values between two property paths in the same container. 更多... | |
| PROPERTYPATH_API void | FindFieldNameAndArrayIndex (int32 InCount, const TCHAR *InString, int32 &OutCount, const TCHAR **OutPropertyName, int32 &OutArrayIndex) |
| Parses a property path segment name of the form PropertyName[OptionalArrayIndex] 更多... | |
| template<typename T > | |
| bool | GetPropertyValue (UObject *InContainer, const FCachedPropertyPath &InPropertyPath, T &OutValue) |
| Get the value represented by this property path. 更多... | |
| template<typename T > | |
| bool | GetPropertyValue (UObject *InContainer, const FCachedPropertyPath &InPropertyPath, T &OutValue, FProperty *&OutProperty) |
| Get the value and the leaf property represented by this property path. 更多... | |
| template<typename T > | |
| bool | GetPropertyValue (UObject *InContainer, const FString &InPropertyPath, T &OutValue) |
| Get the value represented by this property path. 更多... | |
| template<typename T > | |
| bool | GetPropertyValue (UObject *InContainer, const FString &InPropertyPath, T &OutValue, FProperty *&OutProperty) |
| Get the value and the leaf property represented by this property path. 更多... | |
| PROPERTYPATH_API bool | GetPropertyValueAsString (UObject *InContainer, const FCachedPropertyPath &InPropertyPath, FString &OutValue) |
| Get the value represented by this property path as a string 更多... | |
| PROPERTYPATH_API bool | GetPropertyValueAsString (UObject *InContainer, const FString &InPropertyPath, FString &OutValue) |
| Get the value represented by this property path as a string 更多... | |
| PROPERTYPATH_API bool | GetPropertyValueAsString (UObject *InContainer, const FString &InPropertyPath, FString &OutValue, FProperty *&OutProperty) |
| Get the value represented by this property path as a string 更多... | |
| PROPERTYPATH_API bool | GetPropertyValueAsString (void *InContainer, UStruct *InStruct, const FCachedPropertyPath &InPropertyPath, FString &OutValue) |
| Get the value represented by this property path as a string 更多... | |
| PROPERTYPATH_API bool | GetPropertyValueAsString (void *InContainer, UStruct *InStruct, const FString &InPropertyPath, FString &OutValue) |
| Get the value represented by this property path as a string 更多... | |
| PROPERTYPATH_API bool | GetPropertyValueAsString (void *InContainer, UStruct *InStruct, const FString &InPropertyPath, FString &OutValue, FProperty *&OutProperty) |
| Get the value represented by this property path as a string 更多... | |
| template<typename T > | |
| bool | GetPropertyValueFast (UObject *InContainer, const FCachedPropertyPath &InPropertyPath, T &OutValue) |
| Get the value represented by this property path. 更多... | |
| template<typename T > | |
| bool | GetPropertyValueFast (UObject *InContainer, const FCachedPropertyPath &InPropertyPath, T &OutValue, FProperty *&OutProperty) |
| Get the value and the leaf property represented by this property path, forcing the use of cached addresses whether or not the path resolves over object or dynamic array boundaries. 更多... | |
| PROPERTYPATH_API bool | PerformArrayOperation (UObject *InContainer, const FCachedPropertyPath &InPropertyPath, TFunctionRef< bool(FScriptArrayHelper &, int32)> InOperation) |
| Perform the specified operation on the array referenced by the property path 更多... | |
| PROPERTYPATH_API bool | PerformArrayOperation (UObject *InContainer, const FString &InPropertyPath, TFunctionRef< bool(FScriptArrayHelper &, int32)> InOperation) |
| Perform the specified operation on the array referenced by the property path 更多... | |
| template<typename T > | |
| bool | SetPropertyValue (UObject *InContainer, const FCachedPropertyPath &InPropertyPath, const T &InValue) |
| Set the value and the leaf property represented by this property path If the cached property path has a cached address it will use that as a 'fast path' instead of iterating the path. 更多... | |
| template<typename T > | |
| bool | SetPropertyValue (UObject *InContainer, const FString &InPropertyPath, const T &InValue) |
| Set the value and the leaf property represented by this property path If the cached property path has a cached address it will use that as a 'fast path' instead of iterating the path. 更多... | |
| template<typename T > | |
| bool | SetPropertyValueFast (UObject *InContainer, const FCachedPropertyPath &InPropertyPath, const T &InValue) |
| Get the value represented by this property path. 更多... | |
| PROPERTYPATH_API bool | SetPropertyValueFromString (UObject *InContainer, const FCachedPropertyPath &InPropertyPath, const FString &InValue) |
| Set the value represented by this property path from a string 更多... | |
| PROPERTYPATH_API bool | SetPropertyValueFromString (UObject *InContainer, const FString &InPropertyPath, const FString &InValue) |
| Set the value represented by this property path from a string 更多... | |
| PROPERTYPATH_API bool | SetPropertyValueFromString (void *InContainer, UStruct *InStruct, const FCachedPropertyPath &InPropertyPath, const FString &InValue) |
| Set the value represented by this property path from a string 更多... | |
| PROPERTYPATH_API bool | SetPropertyValueFromString (void *InContainer, UStruct *InStruct, const FString &InPropertyPath, const FString &InValue) |
| Set the value represented by this property path from a string 更多... | |
A collection of utility functions operating on cached property paths
| PROPERTYPATH_API bool PropertyPathHelpers::CopyPropertyValue | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InDestPropertyPath, | ||
| const FCachedPropertyPath & | InSrcPropertyPath | ||
| ) |
Copy values between two property paths in the same container.
| InContainer | The container object to resolve the property path against |
| InDestPropertyPath | The property path to copy to |
| InSrcPropertyPath | The property path to copy from |
| PROPERTYPATH_API bool PropertyPathHelpers::CopyPropertyValueFast | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InDestPropertyPath, | ||
| const FCachedPropertyPath & | InSrcPropertyPath | ||
| ) |
Copy values between two property paths in the same container.
Fast, unsafe version. Using this requires that the two paths are pre-resolved from either a previous call to CopyPropertyValue (or GetPropertyValue/SetPropertyValue) or FCachedPropertyPath::Resolve().
| InContainer | The container object to resolve the property path against |
| InDestPropertyPath | The property path to copy to |
| InSrcPropertyPath | The property path to copy from |
| PROPERTYPATH_API void PropertyPathHelpers::FindFieldNameAndArrayIndex | ( | int32 | InCount, |
| const TCHAR * | InString, | ||
| int32 & | OutCount, | ||
| const TCHAR ** | OutPropertyName, | ||
| int32 & | OutArrayIndex | ||
| ) |
Parses a property path segment name of the form PropertyName[OptionalArrayIndex]
| InCount | The length of the input string |
| InString | The Input string to parse |
| OutCount | The length of the resulting property name string |
| OutPropertyName | The string storing the name of the property |
| OutArrayIndex | The resulting array index, if any |
| bool PropertyPathHelpers::GetPropertyValue | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| T & | OutValue | ||
| ) |
Get the value represented by this property path.
If the cached property path has a cached address it will use that as a 'fast path' instead of iterating the path. This has safety implications depending on the form of the path, so paths that are resolved over object boundaries or dynamic arrays will always use the slow path for safety.
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| OutValue | The value to write to |
| bool PropertyPathHelpers::GetPropertyValue | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| T & | OutValue, | ||
| FProperty *& | OutProperty | ||
| ) |
Get the value and the leaf property represented by this property path.
If the cached property path has a cached address it will use that as a 'fast path' instead of iterating the path. This has safety implications depending on the form of the path, so paths that are resolved over object boundaries or dynamic arrays will always use the slow path for safety.
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| OutValue | The value to write to |
| OutProperty | The leaf property that the path resolved to |
| bool PropertyPathHelpers::GetPropertyValue | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| T & | OutValue | ||
| ) |
Get the value represented by this property path.
If the cached property path has a cached address it will use that as a 'fast path' instead of iterating the path. This has safety implications depending on the form of the path, so paths that are resolved over object boundaries or dynamic arrays will always use the slow path for safety.
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| OutValue | The value to write to |
| bool PropertyPathHelpers::GetPropertyValue | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| T & | OutValue, | ||
| FProperty *& | OutProperty | ||
| ) |
Get the value and the leaf property represented by this property path.
If the cached property path has a cached address it will use that as a 'fast path' instead of iterating the path. This has safety implications depending on the form of the path, so paths that are resolved over object boundaries or dynamic arrays will always use the slow path for safety.
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| OutValue | The value to write to |
| OutProperty | The leaf property that the path resolved to |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| FString & | OutValue | ||
| ) |
Get the value represented by this property path as a string
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| OutValue | The string to write the properties value to |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| FString & | OutValue | ||
| ) |
Get the value represented by this property path as a string
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| OutValue | The string to write the properties value to |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| FString & | OutValue, | ||
| FProperty *& | OutProperty | ||
| ) |
Get the value represented by this property path as a string
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| OutValue | The string to write the properties value to |
| OutProperty | The leaf property that the path resolved to |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | void * | InContainer, |
| UStruct * | InStruct, | ||
| const FCachedPropertyPath & | InPropertyPath, | ||
| FString & | OutValue | ||
| ) |
Get the value represented by this property path as a string
| InContainer | A pointer to the container structure to resolve the property path against |
| InStruct | The struct type that InContainer points to |
| InPropertyPath | The property path |
| OutValue | The string to write the properties value to |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | void * | InContainer, |
| UStruct * | InStruct, | ||
| const FString & | InPropertyPath, | ||
| FString & | OutValue | ||
| ) |
Get the value represented by this property path as a string
| InContainer | A pointer to the container structure to resolve the property path against |
| InStruct | The struct type that InContainer points to |
| InPropertyPath | The property path string |
| OutValue | The string to write the properties value to |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | void * | InContainer, |
| UStruct * | InStruct, | ||
| const FString & | InPropertyPath, | ||
| FString & | OutValue, | ||
| FProperty *& | OutProperty | ||
| ) |
Get the value represented by this property path as a string
| InContainer | A pointer to the container structure to resolve the property path against |
| InStruct | The struct type that InContainer points to |
| InPropertyPath | The property path string |
| OutValue | The string to write the properties value to |
| OutProperty | The leaf property that the path resolved to |
| bool PropertyPathHelpers::GetPropertyValueFast | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| T & | OutValue | ||
| ) |
Get the value represented by this property path.
forcing the use of cached addresses whether or not the path resolves over object or dynamic array boundaries. Using this function implies that the path is resolved and has not changed since last resolution.
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| OutValue | The value to write to |
| bool PropertyPathHelpers::GetPropertyValueFast | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| T & | OutValue, | ||
| FProperty *& | OutProperty | ||
| ) |
Get the value and the leaf property represented by this property path, forcing the use of cached addresses whether or not the path resolves over object or dynamic array boundaries.
Using this function implies that the path is resolved and has not changed since last resolution.
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| OutValue | The value to write to |
| OutProperty | The leaf property that the path resolved to |
| PROPERTYPATH_API bool PropertyPathHelpers::PerformArrayOperation | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| TFunctionRef< bool(FScriptArrayHelper &, int32)> | InOperation | ||
| ) |
Perform the specified operation on the array referenced by the property path
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| InOperation | The operation to perform. The function will receive a script array helper and an index (if the path specified one). |
| PROPERTYPATH_API bool PropertyPathHelpers::PerformArrayOperation | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| TFunctionRef< bool(FScriptArrayHelper &, int32)> | InOperation | ||
| ) |
Perform the specified operation on the array referenced by the property path
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| InOperation | The operation to perform. The function will receive a script array helper and an index (if the path specified one). |
| bool PropertyPathHelpers::SetPropertyValue | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| const T & | InValue | ||
| ) |
Set the value and the leaf property represented by this property path If the cached property path has a cached address it will use that as a 'fast path' instead of iterating the path.
This has safety implications depending on the form of the path, so paths that are resolved over object boundaries or dynamic arrays will always use the slow path for safety.
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| InValue | The value to write from |
| bool PropertyPathHelpers::SetPropertyValue | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| const T & | InValue | ||
| ) |
Set the value and the leaf property represented by this property path If the cached property path has a cached address it will use that as a 'fast path' instead of iterating the path.
This has safety implications depending on the form of the path, so paths that are resolved over object boundaries or dynamic arrays will always use the slow path for safety.
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| InValue | The value to write from |
| bool PropertyPathHelpers::SetPropertyValueFast | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| const T & | InValue | ||
| ) |
Get the value represented by this property path.
Fast, unsafe version. Using this function implies that the path is resolved and has not changed since last resolution.
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| InValue | The value to write from |
| PROPERTYPATH_API bool PropertyPathHelpers::SetPropertyValueFromString | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| const FString & | InValue | ||
| ) |
Set the value represented by this property path from a string
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| InValue | The string to read the properties value from |
| PROPERTYPATH_API bool PropertyPathHelpers::SetPropertyValueFromString | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| const FString & | InValue | ||
| ) |
Set the value represented by this property path from a string
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| InValue | The string to read the properties value from |
| PROPERTYPATH_API bool PropertyPathHelpers::SetPropertyValueFromString | ( | void * | InContainer, |
| UStruct * | InStruct, | ||
| const FCachedPropertyPath & | InPropertyPath, | ||
| const FString & | InValue | ||
| ) |
Set the value represented by this property path from a string
| InContainer | A pointer to the container structure to resolve the property path against |
| InStruct | The struct type that InContainer points to |
| InPropertyPath | The property path |
| InValue | The string to read the properties value from |
| PROPERTYPATH_API bool PropertyPathHelpers::SetPropertyValueFromString | ( | void * | InContainer, |
| UStruct * | InStruct, | ||
| const FString & | InPropertyPath, | ||
| const FString & | InValue | ||
| ) |
Set the value represented by this property path from a string
| InContainer | A pointer to the container structure to resolve the property path against |
| InStruct | The struct type that InContainer points to |
| InPropertyPath | The property path string |
| InValue | The string to read the properties value from |