------------------------------------------------------------------------------
| 938 | |
| 939 | //------------------------------------------------------------------------------ |
| 940 | vtkTypeBool vtkAlgorithm::ProcessRequest( |
| 941 | vtkInformation* request, vtkCollection* inInfo, vtkInformationVector* outInfo) |
| 942 | { |
| 943 | vtkSmartPointer<vtkCollectionIterator> iter; |
| 944 | iter.TakeReference(inInfo->NewIterator()); |
| 945 | |
| 946 | std::vector<vtkInformationVector*> ivectors; |
| 947 | for (iter->GoToFirstItem(); !iter->IsDoneWithTraversal(); iter->GoToNextItem()) |
| 948 | { |
| 949 | vtkInformationVector* iv = vtkInformationVector::SafeDownCast(iter->GetCurrentObject()); |
| 950 | if (!iv) |
| 951 | { |
| 952 | return 0; |
| 953 | } |
| 954 | ivectors.push_back(iv); |
| 955 | } |
| 956 | if (ivectors.empty()) |
| 957 | { |
| 958 | return this->ProcessRequest(request, (vtkInformationVector**)nullptr, outInfo); |
| 959 | } |
| 960 | else |
| 961 | { |
| 962 | return this->ProcessRequest(request, ivectors.data(), outInfo); |
| 963 | } |
| 964 | } |
| 965 | |
| 966 | //------------------------------------------------------------------------------ |
| 967 | vtkTypeBool vtkAlgorithm::ProcessRequest( |
no test coverage detected