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

Method getMultiInts

Tools/ezOptionParser.h:1199–1216  ·  view source on GitHub ↗

################################################################### */

Source from the content-addressed store, hash-verified

1197};
1198/* ################################################################### */
1199void OptionGroup::getMultiInts(std::vector< std::vector<int> >& out) {
1200 if (!isSet) {
1201 if (!defaults.empty()) {
1202 std::vector< std::string > strings;
1203 SplitDelim(defaults, delim, strings);
1204 if (out.size() < 1) out.resize(1);
1205 StringsToInts(strings, out[0]);
1206 }
1207 } else {
1208 if (!args.empty()) {
1209 int n = args.size();
1210 if ((long int)out.size() < n) out.resize(n);
1211 for(int i=0; i < n; ++i) {
1212 StringsToInts(args[i], &out[i]);
1213 }
1214 }
1215 }
1216};
1217/* ################################################################### */
1218void OptionGroup::getMultiLongs(std::vector< std::vector<long> >& out) {
1219 if (!isSet) {

Callers

nothing calls this directly

Calls 5

SplitDelimFunction · 0.85
StringsToIntsFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected