UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FConstraintsEvaluationGraph Struct Reference

#include <ConstraintsEvaluationGraph.h>

+ Inheritance diagram for FConstraintsEvaluationGraph:

Public Member Functions

 FConstraintsEvaluationGraph (const FConstraintsInWorld *InConstraintsInWorld)
 
void MarkForEvaluation (const TWeakObjectPtr< UTickableConstraint > &InConstraint)
 
CONSTRAINTS_API void FlushPendingEvaluations ()
 
void InvalidateData ()
 
void Rebuild ()
 
bool IsPendingEvaluation () const
 
bool GetSortedConstraints (TArray< TWeakObjectPtr< UTickableConstraint > > &OutConstraints)
 
- Public Member Functions inherited from TSharedFromThis< FConstraintsEvaluationGraph >
TSharedRef< FConstraintsEvaluationGraph, Mode > AsShared ()
 
TSharedRef< FConstraintsEvaluationGraph const, Mode > AsShared () const
 
TSharedRef< SubobjectType, Mode > AsSharedSubobject (SubobjectType *SubobjectPtr) const
 
TWeakPtr< FConstraintsEvaluationGraph, Mode > AsWeak ()
 
TWeakPtr< FConstraintsEvaluationGraph const, Mode > AsWeak () const
 
TWeakPtr< SubobjectType, Mode > AsWeakSubobject (SubobjectType *SubobjectPtr) const
 
void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, SharedPtrMode > const *InSharedPtr, OtherType *InObject) const
 
void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, SharedPtrMode > const *InSharedRef, OtherType *InObject) const
 
UE_FORCEINLINE_HINT bool DoesSharedInstanceExist () const
 

Static Public Member Functions

static bool UseEvaluationGraph ()
 

Additional Inherited Members

- Protected Member Functions inherited from TSharedFromThis< FConstraintsEvaluationGraph >
 TSharedFromThis ()
 
 TSharedFromThis (TSharedFromThis const &)
 
UE_FORCEINLINE_HINT TSharedFromThisoperator= (TSharedFromThis const &)
 
 ~TSharedFromThis ()
 
- Static Protected Member Functions inherited from TSharedFromThis< FConstraintsEvaluationGraph >
static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 
static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 

Detailed Description

A graph like structure to efficiently represent constraints' evaluation hierarchy using their tick dependencies. Each node stores the useful data to evaluate the constraint hierarchically.

Constructor & Destructor Documentation

◆ FConstraintsEvaluationGraph()

FConstraintsEvaluationGraph::FConstraintsEvaluationGraph ( const FConstraintsInWorld InConstraintsInWorld)
inlineexplicit

Member Function Documentation

◆ FlushPendingEvaluations()

void FConstraintsEvaluationGraph::FlushPendingEvaluations ( )

◆ GetSortedConstraints()

bool FConstraintsEvaluationGraph::GetSortedConstraints ( TArray< TWeakObjectPtr< UTickableConstraint > > &  OutConstraints)

◆ InvalidateData()

void FConstraintsEvaluationGraph::InvalidateData ( )

◆ IsPendingEvaluation()

bool FConstraintsEvaluationGraph::IsPendingEvaluation ( ) const

◆ MarkForEvaluation()

void FConstraintsEvaluationGraph::MarkForEvaluation ( const TWeakObjectPtr< UTickableConstraint > &  InConstraint)

Marks the constraint for evaluation. Note that it will only be evaluated after FlushPendingEvaluations has been called. This makes it possible to tag several constraints and evaluate the graph only once.

◆ Rebuild()

void FConstraintsEvaluationGraph::Rebuild ( )

◆ UseEvaluationGraph()

bool FConstraintsEvaluationGraph::UseEvaluationGraph ( )
static

The documentation for this struct was generated from the following files: