|
HDK
|
This is a container class used to hold on to all the nodes and to facilitate their management. More...
#include <testUtils.h>
Public Member Functions | |
| Network () | |
| ~Network () | |
| VDF_API void | Add (const std::string &nodeName, const NodeType &nodeType) |
| VDF_API void | Add (const std::string &nodeName, VdfNode *customNode) |
| template<typename T > | |
| void | AddInputVector (const std::string &nodeName, size_t size=1) |
| VDF_API Node & | operator[] (const std::string &nodeName) |
| VDF_API const Node & | operator[] (const std::string &nodeName) const |
| VDF_API const std::string | GetNodeName (const VdfId nodeId) |
| VDF_API VdfConnection * | GetConnection (const std::string &connectionName) |
| VdfNetwork & | GetNetwork () |
| const VdfNetwork & | GetNetwork () const |
Friends | |
| class | Node |
This is a container class used to hold on to all the nodes and to facilitate their management.
Definition at line 405 of file testUtils.h.
|
inline |
Definition at line 458 of file testUtils.h.
|
inline |
Definition at line 462 of file testUtils.h.
Creates a node named nodeName of type nodeType.
Note that nodeName will be the debug name of the created node.
Note also that there is no error checking of whether or not this nodeName has already been used, and the new node will simply overwrite the old one.
Takes ownership of a customNode that was created externally.
It must have been created with this network's VdfNetwork though.
|
inline |
Creates an input vector of type T named nodeName.
Definition at line 487 of file testUtils.h.
| VDF_API VdfConnection* VdfTestUtils::Network::GetConnection | ( | const std::string & | connectionName | ) |
Returns a pointer to a connection named connectionName. The syntax for connectionName is:
srcNode:connector -> tgtNode:connector
If there is exactly one input or output connector only, you can also write:
srcNode -> tgtNode:connector
|
inline |
Returns a reference to the underlying VdfNetwork.
Definition at line 522 of file testUtils.h.
|
inline |
Returns a const reference to the underlying VdfNetwork.
Definition at line 526 of file testUtils.h.
Returns the node name for the VdfTestUtils::Node corresponding to a VdfNode with VdfId nodeId
Returns a reference to a node named nodeName.
Returns a const reference to a node named nodeName.
Definition at line 531 of file testUtils.h.