MCPcopy Create free account
hub / github.com/MrKepzie/Natron / getProjectDefaultLayerNames

Method getProjectDefaultLayerNames

Engine/Project.cpp:1336–1358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1334}
1335
1336std::vector<std::string>
1337Project::getProjectDefaultLayerNames() const
1338{
1339 std::vector<std::string> ret;
1340 std::list<std::vector<std::string> > pairs;
1341
1342 _imp->defaultLayersList->getTable(&pairs);
1343 for (std::list<std::vector<std::string> >::iterator it = pairs.begin();
1344 it != pairs.end(); ++it) {
1345 bool found = false;
1346 for (std::size_t i = 0; i < ret.size(); ++i) {
1347 if (ret[i] == (*it)[0]) {
1348 found = true;
1349 break;
1350 }
1351 }
1352 if (!found) {
1353 ret.push_back( (*it)[0] );
1354 }
1355 }
1356
1357 return ret;
1358}
1359
1360const std::vector<std::string>&
1361Project::getProjectViewNames() const

Callers

nothing calls this directly

Calls 5

getTableMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected