MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / get_param

Method get_param

Processor/OnlineOptions.cpp:529–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529int OnlineOptions::get_param(const string& param)
530{
531 basic_regex re(param + "=([0-9]+)");
532 smatch match;
533 for (auto& x : options)
534 if (regex_match(x, match, re))
535 return atoi(match[1].str().c_str());
536 throw runtime_error("parameter not found: " + param);
537}
538
539int OnlineOptions::comp_sec()
540{

Callers 1

protocol_agreementMethod · 0.80

Calls 2

runtime_errorFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected