MapInput
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Maps inputs to FlowNode, indicating that the node_input_index input of FlowNode is sent to the pp_input_index input of ProcessPoint, all attributes in attrs are set for the input of ProcessPoint, and the mapped FlowNode is returned. This function is optional. If it is not called, the inputs of FlowNode and ProcessPoint are mapped in sequence by default.
Prototype
1 | FlowNode &MapInput(uint32_t node_input_index, const ProcessPoint &pp, uint32_t pp_input_index, const std::vector<DataFlowInputAttr> &attrs = {}) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
node_input_index |
Input |
Input index of FlowNode. |
pp |
Input |
ProcessPoint mapped from the FlowNode node. |
pp_input_index |
Input |
Input index of ProcessPoint. |
attrs |
Input |
Attribute set. For details about the attribute values, see Struct DataFlowInputAttr. |
Returns
A FlowNode node with the input mapped.
Exception Handling
None
Constraints
This API can be called only after the FlowNode &AddPp API is called.