HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VdfSparseVectorizedOutputTraverser Class Reference

#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 ()
 

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

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.

Member Function Documentation

VDF_API void VdfSparseVectorizedOutputTraverser::Invalidate ( )

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!


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