MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / get_groups

Method get_groups

simcore/framework/src/cli/cli.hpp:6235–6246  ·  view source on GitHub ↗

Get the groups available directly from this option (in order)

Source from the content-addressed store, hash-verified

6233
6234 /// Get the groups available directly from this option (in order)
6235 std::vector<std::string> get_groups() const {
6236 std::vector<std::string> groups;
6237
6238 for (const Option_p &opt : options_) {
6239 // Add group if it is not already in there
6240 if (std::find(groups.begin(), groups.end(), opt->get_group()) == groups.end()) {
6241 groups.push_back(opt->get_group());
6242 }
6243 }
6244
6245 return groups;
6246 }
6247
6248 /// This gets a vector of pointers with the original parse order
6249 const std::vector<Option *> &parse_order() const { return parse_order_; }

Callers 3

to_configMethod · 0.80
make_groupsMethod · 0.80
make_usageMethod · 0.80

Calls 4

findFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected