|
HDK
|
#include <sparseVectorizedOutputTraverser.h>
Public Types | |
| using | NodeCallback = std::function< bool(const VdfNode &, size_t)> |
Public Member Functions | |
| VDF_API void | Traverse (const VdfMaskedOutputVector &outputs, const NodeCallback &callback) |
| VDF_API void | Invalidate () |
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.
| using VdfSparseVectorizedOutputTraverser::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.
Invalidate the internal traversal cache.
| VDF_API void VdfSparseVectorizedOutputTraverser::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!