UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
uLang::TDiGraphVisitor< InElementType > Struct Template Reference

#include <DirectedGraph.h>

Public Types

using DiGraphType = TDirectedGraph< InElementType >
 
using IteratorType = TDiGraphTopologicalIterator< InElementType >
 

Public Member Functions

 TDiGraphVisitor (DiGraphType &DiGraph)
 
template<typename VisitorType >
bool Iterate (VisitorType Visitor)
 
bool IsComplete () const
 
void Reset ()
 

Public Attributes

IteratorType _GraphIterator
 

Detailed Description

template<typename InElementType>
struct uLang::TDiGraphVisitor< InElementType >

Stateful helper for visiting, skipping, and revisiting directed graph nodes. Useful for performing pass, fail, retry operations on a dependency graph.

Member Typedef Documentation

◆ DiGraphType

◆ IteratorType

Constructor & Destructor Documentation

◆ TDiGraphVisitor()

template<typename InElementType >
uLang::TDiGraphVisitor< InElementType >::TDiGraphVisitor ( DiGraphType DiGraph)
inline

Member Function Documentation

◆ IsComplete()

template<typename InElementType >
bool uLang::TDiGraphVisitor< InElementType >::IsComplete ( ) const
inline

◆ Iterate()

template<typename InElementType >
template<typename VisitorType >
bool uLang::TDiGraphVisitor< InElementType >::Iterate ( VisitorType  Visitor)
inline

Iterates the associated directed-graph using a specified Visitor.

Parameters
VisitorA functor of the form: bool(InElementType&). NOTE: Returning false from the specified Visitor will skip that node along with any of its children, enquing them for subsequent iterations.
Returns
true if the full graph was processed, otherwise false if it subsequent Iterate() calls are required.

◆ Reset()

Member Data Documentation

◆ _GraphIterator


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