engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 友元 | 所有成员列表
FMovieSceneEvaluationTree结构体 参考

A tree structure used to efficiently reference overlapping time ranges hierarchically. 更多...

#include <MovieSceneEvaluationTree.h>

+ 类 FMovieSceneEvaluationTree 继承关系图:

Public 成员函数

void AddTimeRange (TRange< FFrameNumber > InTimeRange)
 Insert the specified time range into this tree 更多...
 
 FMovieSceneEvaluationTree (FMovieSceneEvaluationTree &&RHS)
 Move construction must ensure that the root node is correctly restored to its default to ensure that invariant
 
TArrayView< FMovieSceneEvaluationTreeNode > GetChildren (const FMovieSceneEvaluationTreeNode &InNode)
 Get the children associated with the specified node 更多...
 
TArrayView< const FMovieSceneEvaluationTreeNode > GetChildren (const FMovieSceneEvaluationTreeNode &InNode) const
 Get the children associated with the specified node 更多...
 
FMovieSceneEvaluationTreeNode & GetNode (FMovieSceneEvaluationTreeNodeHandle Handle)
 Non-const access to a node from its handle. 更多...
 
const FMovieSceneEvaluationTreeNode & GetNode (FMovieSceneEvaluationTreeNodeHandle Handle) const
 Const access to a node from its handle. 更多...
 
const FMovieSceneEvaluationTreeNode & GetRootNode () const
 Access this tree's root node (infinite range) 更多...
 
bool IsValid (FMovieSceneEvaluationTreeNodeHandle Handle) const
 Check whether the specified handle corresponds to a node within this tree 更多...
 
FMovieSceneEvaluationTreeRangeIterator IterateFromLowerBound (TRangeBound< FFrameNumber > InStartingLowerBound) const
 Start iterating this tree from the specified lower boundary 更多...
 
FMovieSceneEvaluationTreeRangeIterator IterateFromTime (FFrameNumber Time) const
 Start iterating this tree from the specified time 更多...
 
FMovieSceneEvaluationTree & operator= (FMovieSceneEvaluationTree &&RHS)
 Move assignment must ensure that the root node is correctly restored to its default to ensure that invariant
 

Protected 成员函数

void AddTimeRange (TRange< FFrameNumber > InTimeRange, const IMovieSceneEvaluationTreeNodeOperator &InOperator, FMovieSceneEvaluationTreeNodeHandle InParent, const TFunctionRef< bool(FMovieSceneEvaluationTreeNodeHandle)> *Predicate)
 Insert the specified time range into this tree 更多...
 
FMovieSceneEvaluationTreeNode & GetNode (FEvaluationTreeEntryHandle ChildrenID, int32 Index)
 Non-const access to a node from its parent's ChildrenID and this node's index. 更多...
 
const FMovieSceneEvaluationTreeNode & GetNode (FEvaluationTreeEntryHandle ChildrenID, int32 Index) const
 Const access to a node from its parent's ChildrenID and this node's index. 更多...
 
void InsertNewChild (TRange< FFrameNumber > InEffectiveRange, const IMovieSceneEvaluationTreeNodeOperator &InOperator, int32 InsertIndex, FMovieSceneEvaluationTreeNodeHandle InParent)
 Helper function that creates a new child for the specified parent node 更多...
 

Protected 属性

TEvaluationTreeEntryContainer< FMovieSceneEvaluationTreeNode > ChildNodes
 Segmented array of all child nodes within this tree (in no particular order)
 
FMovieSceneEvaluationTreeNode RootNode
 This tree's root node
 

友元

FArchive & operator<< (FArchive &Ar, FMovieSceneEvaluationTree &In)
 Serialize this evaluation tree
 

详细描述

A tree structure used to efficiently reference overlapping time ranges hierarchically.

Each node represents a unique combination of 'entities' overlapping for a given range. Example structure (dependent on order of addition): Time -inf 10 20 25 30 inf [============= 0 ===========] [============= 1 ==================] [========================== 2 ==================================] [================== 3 ==========================] [================== 4 ==========================]

[===== 5 ======]

Where each time range is added in order, this is represented as: [======== 3 =======][========== 0,2,3 ==========][============= 1,2 ================][============ 4 ===========] | \

[===== 5 ====] [======== 4 ========]

Unique Ranges [ 3 | 0,2,3 | 0,2,3,5 | 0,2,3 | 1,2 | 1,2,4 | 4 ]

成员函数说明

◆ AddTimeRange() [1/2]

void FMovieSceneEvaluationTree::AddTimeRange ( TRange< FFrameNumber >  InTimeRange)

Insert the specified time range into this tree

参数
InTimeRangeThe time range to add to the tree

◆ AddTimeRange() [2/2]

void FMovieSceneEvaluationTree::AddTimeRange ( TRange< FFrameNumber >  InTimeRange,
const IMovieSceneEvaluationTreeNodeOperator &  InOperator,
FMovieSceneEvaluationTreeNodeHandle  InParent,
const TFunctionRef< bool(FMovieSceneEvaluationTreeNodeHandle)> *  Predicate 
)
protected

Insert the specified time range into this tree

参数
InTimeRangeThe time range to add to the tree
InOperatorOperator implementation to call for each node that is relevant to the time range
InParentThe current parent node
InPredicate(Optional) Predicate that determines whether the time should be added for a particular point

◆ GetChildren() [1/2]

TArrayView< FMovieSceneEvaluationTreeNode > FMovieSceneEvaluationTree::GetChildren ( const FMovieSceneEvaluationTreeNode &  InNode)

Get the children associated with the specified node

参数
InNodeThe node to get children for
返回
Array view of the node's children

◆ GetChildren() [2/2]

TArrayView< const FMovieSceneEvaluationTreeNode > FMovieSceneEvaluationTree::GetChildren ( const FMovieSceneEvaluationTreeNode &  InNode) const

Get the children associated with the specified node

参数
InNodeThe node to get children for
返回
Array view of the node's children

◆ GetNode() [1/4]

FMovieSceneEvaluationTreeNode & FMovieSceneEvaluationTree::GetNode ( FEvaluationTreeEntryHandle  ChildrenID,
int32  Index 
)
inlineprotected

Non-const access to a node from its parent's ChildrenID and this node's index.

返回
A reference to the node that is valid as long as the tree remains unmodified

◆ GetNode() [2/4]

const FMovieSceneEvaluationTreeNode & FMovieSceneEvaluationTree::GetNode ( FEvaluationTreeEntryHandle  ChildrenID,
int32  Index 
) const
inlineprotected

Const access to a node from its parent's ChildrenID and this node's index.

返回
A reference to the node that is valid as long as the tree remains unmodified

◆ GetNode() [3/4]

FMovieSceneEvaluationTreeNode & FMovieSceneEvaluationTree::GetNode ( FMovieSceneEvaluationTreeNodeHandle  Handle)
inline

Non-const access to a node from its handle.

Handle must be valid.

返回
A reference to the node that is valid as long as the tree remains unmodified

◆ GetNode() [4/4]

const FMovieSceneEvaluationTreeNode & FMovieSceneEvaluationTree::GetNode ( FMovieSceneEvaluationTreeNodeHandle  Handle) const
inline

Const access to a node from its handle.

Handle must be valid.

返回
A reference to the node that is valid as long as the tree remains unmodified

◆ GetRootNode()

const FMovieSceneEvaluationTreeNode & FMovieSceneEvaluationTree::GetRootNode ( ) const
inline

Access this tree's root node (infinite range)

返回
The root node

◆ InsertNewChild()

void FMovieSceneEvaluationTree::InsertNewChild ( TRange< FFrameNumber >  InEffectiveRange,
const IMovieSceneEvaluationTreeNodeOperator &  InOperator,
int32  InsertIndex,
FMovieSceneEvaluationTreeNodeHandle  InParent 
)
protected

Helper function that creates a new child for the specified parent node

参数
InEffectiveRangeThe time range that this child should represent. Must not overlap any other child's time range.
InOperatorOperator implementation to call for the new child node
InsertIndexThe index at which to insert the new child (children must be sorted)
InParentThe node to add the child to

◆ IsValid()

bool FMovieSceneEvaluationTree::IsValid ( FMovieSceneEvaluationTreeNodeHandle  Handle) const
inline

Check whether the specified handle corresponds to a node within this tree

参数
InHandleNode handle to test
返回
true if the handle is valid, false otherwise

◆ IterateFromLowerBound()

FMovieSceneEvaluationTreeRangeIterator FMovieSceneEvaluationTree::IterateFromLowerBound ( TRangeBound< FFrameNumber >  InStartingLowerBound) const

Start iterating this tree from the specified lower boundary

参数
InStartingLowerBoundThe lowerbound at which we should start iterating
返回
A bi-directional iterator that is set to the unique range that overlaps the specified lowerbound

◆ IterateFromTime()

FMovieSceneEvaluationTreeRangeIterator FMovieSceneEvaluationTree::IterateFromTime ( FFrameNumber  Time) const

Start iterating this tree from the specified time

参数
TimeThe time at which we should start iterating
返回
A bi-directional iterator that is set to the unique range that overlaps the current time

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