![]() |
|
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. | |
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 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.
| VDF_API void Invalidate | ( | ) |
Invalidate the internal traversal cache.
| 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!