omni::graph::exec::unstable::detail::ExecutionPathCache

Defined in omni/graph/exec/unstable/ExecutionContext.h

class ExecutionPathCache

Utility class for discovering all execution paths for a given definition.

Searches are cached until topology of execution graph changes. Invalidation of the cache happens lazy upon request.

This class is thread-safe and can be utilized recurrently.

Public Functions

ExecutionPathCache() = delete

Default constructor is removed.

inline explicit ExecutionPathCache(IGraph &graph) noexcept

Constructor.

template<typename Key>
inline void applyOnEach(const Key &key, IApplyOnEachFunction &applyFn)

Call given function for every execution path that points to given node or node graph definition.

Function should have the signature of void(const ExecutionPath&)