engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FCachedPropertyPath结构体 参考

Base class for cached property paths 更多...

#include <PropertyPathHelpers.h>

被 FDynamicPropertyPath 继承.

Public 成员函数

bool Equals (const FString &Other) const
 Compares this property path to a string
 
 FCachedPropertyPath ()
 UStruct boilerplate constructor - do not use
 
void * GetCachedAddress () const
 Get the cached address for this property path, if any
 
UFunction * GetCachedFunction () const
 Get the cached function for this property path, if any
 
FProperty * GetFProperty () const
 Returns FProperty if valid. 更多...
 
const FPropertyPathSegment & GetLastSegment () const
 Get the path segment at the end of the path 更多...
 
int32 GetNumSegments () const
 
const FPropertyPathSegment & GetSegment (int32 InSegmentIndex) const
 Get the path segment at the specified index 更多...
 
bool IsFullyResolved () const
 Check whether a path is fully resolved. 更多...
 
bool IsResolved () const
 Check whether a path is resolved. 更多...
 
bool IsValid () const
 Check whether this property path is non-empty
 
void MakeFromString (const FString &InPropertyPath)
 Make a new property path from a string
 
bool operator== (const FString &Other) const
 Compares this property path to a string
 
void RemoveFromEnd (int32 InNumSegments=1)
 Trims this property path at the end
 
void RemoveFromStart (int32 InNumSegments=1)
 Trims this property path at the start
 
bool Resolve (UObject *InContainer) const
 Resolve this property path against the specified object. 更多...
 
void ResolveLeaf (UFunction *InFunction) const
 Cache a resolved function for faster subsequent access
 
void ResolveLeaf (void *InAddress) const
 Cache a resolved address for faster subsequent access
 
void SetCanSafelyUsedCachedAddress (bool bInCanSafelyUsedCachedAddress) const
 Set whether this path resolves over object or dynamic array boundaries, making it unsafe for general direct cached access
 
void ToEditPropertyChain (FEditPropertyChain &OutPropertyChain) const
 Convert this property path to a FEditPropertyChain. 更多...
 
FPropertyChangedEvent ToPropertyChangedEvent (EPropertyChangeType::Type InChangeType) const
 Convert this property path to a FPropertyChangedEvent. 更多...
 
FString ToString () const
 Make a string representation of this property path
 

静态 Public 成员函数

static FCachedPropertyPath MakeUnresolvedCopy (const FCachedPropertyPath &ToCopy)
 Make a copy which is unresolved
 

详细描述

Base class for cached property paths

成员函数说明

◆ GetFProperty()

FProperty * FCachedPropertyPath::GetFProperty ( ) const

Returns FProperty if valid.

This can be UFunction

◆ GetLastSegment()

const FPropertyPathSegment & FCachedPropertyPath::GetLastSegment ( ) const

Get the path segment at the end of the path

返回
the segment at the specified index

◆ GetNumSegments()

int32 FCachedPropertyPath::GetNumSegments ( ) const
返回
Get the number of segments in this path

◆ GetSegment()

const FPropertyPathSegment & FCachedPropertyPath::GetSegment ( int32  InSegmentIndex) const

Get the path segment at the specified index

参数
InSegmentIndexThe index of the segment
返回
the segment at the specified index

◆ IsFullyResolved()

bool FCachedPropertyPath::IsFullyResolved ( ) const

Check whether a path is fully resolved.

This means that it has a cached address and does not resolve over an object boundary or a dynamic array.

返回
true if the path is fully resolved

◆ IsResolved()

bool FCachedPropertyPath::IsResolved ( ) const

Check whether a path is resolved.

This means that it has a cached address, but may resolve over an object boundary or a dynamic array.

返回
true if the path is resolved

◆ Resolve()

bool FCachedPropertyPath::Resolve ( UObject *  InContainer) const

Resolve this property path against the specified object.

返回
true if the path could be resolved

◆ ToEditPropertyChain()

void FCachedPropertyPath::ToEditPropertyChain ( FEditPropertyChain &  OutPropertyChain) const

Convert this property path to a FEditPropertyChain.

Note that the path must be resolved.

◆ ToPropertyChangedEvent()

FPropertyChangedEvent FCachedPropertyPath::ToPropertyChangedEvent ( EPropertyChangeType::Type  InChangeType) const

Convert this property path to a FPropertyChangedEvent.

Note that the path must be resolved.


该结构体的文档由以下文件生成: