Loading...
Searching...
No Matches
VdfSparseVectorizedOutputTraverser Class Reference

Traverses a VdfNetwork in the input-to-output direction, while treating each output in the traversal request as a separate traversal. More...

#include <sparseVectorizedOutputTraverser.h>

Public Types

using NodeCallback = std::function< bool(const VdfNode &, size_t)>
 The callback invoked for all all terminal nodes.
 

Public Member Functions

VDF_API void Traverse (const VdfMaskedOutputVector &outputs, const NodeCallback &callback)
 Starts a traversal with the given outputs request and node callback.
 
VDF_API void Invalidate ()
 Invalidate the internal traversal cache.
 

Detailed Description

Traverses a VdfNetwork in the input-to-output direction, while treating each output in the traversal request as a separate traversal.

Definition at line 39 of file sparseVectorizedOutputTraverser.h.

Member Typedef Documentation

◆ NodeCallback

using NodeCallback = std::function<bool (const VdfNode &, size_t)>

The callback invoked for all all terminal nodes.

The integer parameter indicates which entry in the traversal request lead to the given node.

Definition at line 46 of file sparseVectorizedOutputTraverser.h.

Member Function Documentation

◆ Invalidate()

VDF_API void Invalidate ( )

Invalidate the internal traversal cache.

◆ Traverse()

VDF_API void Traverse ( const VdfMaskedOutputVector &  outputs,
const NodeCallback callback 
)

Starts a traversal with the given outputs request and node callback.

The callback will be invoked for each terminal node visited. Note that callback MUST be thread-safe, since it may be invoked concurrently!


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