Custom parameter handling.
104 {
105 if (name == "algorithm") {
106 if (auto alg_result = safe_any_cast<SortingAlgorithm>(value)) {
108 return;
109 }
110 if (auto str_result = safe_any_cast<std::string>(value)) {
111 auto algorithm_enum = Reflect::string_to_enum_case_insensitive<SortingAlgorithm>(*str_result.value);
112 if (algorithm_enum) {
114 return;
115 }
116 }
117 }
118 if (name == "chunk_size") {
119 if (auto size_result = safe_any_cast<size_t>(value)) {
121 return;
122 }
123 }
125 }
SortingAlgorithm m_algorithm
virtual void set_sorting_parameter(const std::string &name, std::any value)
Sorting-specific parameter handling (override for custom parameters)