------------------------------------------------------------------------------
| 244 | |
| 245 | //------------------------------------------------------------------------------ |
| 246 | vtkExecutive* vtkExecutive::GetInputExecutive(int port, int index) |
| 247 | { |
| 248 | if (index < 0 || index >= this->GetNumberOfInputConnections(port)) |
| 249 | { |
| 250 | vtkErrorMacro("Attempt to get executive for connection index " |
| 251 | << index << " on input port " << port << " of algorithm " |
| 252 | << this->Algorithm->GetObjectDescription() << ", which has " |
| 253 | << this->GetNumberOfInputConnections(port) << " connections."); |
| 254 | return nullptr; |
| 255 | } |
| 256 | if (vtkAlgorithmOutput* input = this->Algorithm->GetInputConnection(port, index)) |
| 257 | { |
| 258 | return input->GetProducer()->GetExecutive(); |
| 259 | } |
| 260 | return nullptr; |
| 261 | } |
| 262 | |
| 263 | //------------------------------------------------------------------------------ |
| 264 | void vtkExecutive::ReportReferences(vtkGarbageCollector* collector) |
nothing calls this directly
no test coverage detected