| 260 | } |
| 261 | |
| 262 | const std::set<Version> Meta::versions(const std::string & glfunction) |
| 263 | { |
| 264 | std::set<Version> requiringVersions; |
| 265 | for (const auto & version : versions()) |
| 266 | { |
| 267 | const auto functionSet = functions(version); |
| 268 | |
| 269 | const auto it = std::find_if(functionSet.begin(), functionSet.end(), [& glfunction](AbstractFunction * function) { |
| 270 | return std::string(function->name()) == glfunction; |
| 271 | }); |
| 272 | if (it != functionSet.end()) |
| 273 | { |
| 274 | requiringVersions.insert(version); |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | return requiringVersions; |
| 279 | } |
| 280 | |
| 281 | const std::set<AbstractFunction *> Meta::functions(const Version & version) |
| 282 | { |