MCPcopy Create free account
hub / github.com/cginternals/glbinding / versions

Method versions

source/glbinding-aux/source/Meta.cpp:262–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262const 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
281const std::set<AbstractFunction *> Meta::functions(const Version & version)
282{

Callers

nothing calls this directly

Calls 2

stringFunction · 0.85
nameMethod · 0.80

Tested by

no test coverage detected