------------------------------------------------------------------------------
| 1127 | |
| 1128 | //------------------------------------------------------------------------------ |
| 1129 | int vtkAlgorithm::InputPortIndexInRange(int index, const char* action) |
| 1130 | { |
| 1131 | // Make sure the index of the input port is in range. |
| 1132 | if (index < 0 || index >= this->GetNumberOfInputPorts()) |
| 1133 | { |
| 1134 | vtkErrorMacro("Attempt to " << (action ? action : "access") << " input port index " << index |
| 1135 | << " for an algorithm with " << this->GetNumberOfInputPorts() |
| 1136 | << " input ports."); |
| 1137 | return 0; |
| 1138 | } |
| 1139 | return 1; |
| 1140 | } |
| 1141 | |
| 1142 | //------------------------------------------------------------------------------ |
| 1143 | int vtkAlgorithm::OutputPortIndexInRange(int index, const char* action) |
no test coverage detected