Get the groups available directly from this option (in order)
| 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_; } |
no test coverage detected