MCPcopy Create free account
hub / github.com/Kitware/VTK / ConsumeNextAlgorithmParameter

Method ConsumeNextAlgorithmParameter

Filters/Statistics/vtkDescriptiveStatistics.cxx:853–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851}
852
853std::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
881VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 2

GetHashMethod · 0.80
ConsumeIntMethod · 0.80

Tested by

no test coverage detected