| 851 | } |
| 852 | |
| 853 | std::size_t vtkDescriptiveStatistics::ConsumeNextAlgorithmParameter( |
| 854 | vtkStringToken parameterName, const std::string& algorithmParameters) |
| 855 | { |
| 856 | using namespace vtk::literals; |
| 857 | int value; |
| 858 | std::size_t consumed = 0; |
| 859 | switch (parameterName.GetHash()) |
| 860 | { |
| 861 | case "sample_estimate"_hash: |
| 862 | if ((consumed = this->ConsumeInt(algorithmParameters, value))) |
| 863 | { |
| 864 | this->SetSampleEstimate(value); |
| 865 | } |
| 866 | break; |
| 867 | case "signed_deviations"_hash: |
| 868 | if ((consumed = this->ConsumeInt(algorithmParameters, value))) |
| 869 | { |
| 870 | this->SetSignedDeviations(value); |
| 871 | } |
| 872 | break; |
| 873 | default: |
| 874 | consumed = |
| 875 | this->Superclass::ConsumeNextAlgorithmParameter(parameterName, algorithmParameters); |
| 876 | break; |
| 877 | } |
| 878 | return consumed; |
| 879 | } |
| 880 | |
| 881 | VTK_ABI_NAMESPACE_END |
nothing calls this directly
no test coverage detected