MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ coefficient_index()

std::optional< size_t > MayaFlux::Nodes::Network::DeriveOperator::coefficient_index ( std::string_view  param)
staticprivate

Definition at line 98 of file RelationOperators.cpp.

99{
100 if (param.size() < 2 || param.front() != 'c') {
101 return std::nullopt;
102 }
103
104 size_t index {};
105 const auto digits = param.substr(1);
106 const auto [end, error] = std::from_chars(digits.data(), digits.data() + digits.size(), index);
107 if (error != std::errc {} || end != digits.data() + digits.size()) {
108 return std::nullopt;
109 }
110 return index;
111}
uint32_t index
Definition VKDevice.cpp:122
void error(Component component, Context context, std::source_location location, std::string_view message)
Log an error message and optionally throw an exception.

References index.

Referenced by query_state(), and set_parameter().

+ Here is the caller graph for this function: