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

Method getProjectDefaultLayerNames

Engine/Project.cpp:1436–1458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1434}
1435
1436std::vector<std::string>
1437Project::getProjectDefaultLayerNames() const
1438{
1439 std::vector<std::string> ret;
1440 std::list<std::vector<std::string> > pairs;
1441
1442 _imp->defaultLayersList->getTable(&pairs);
1443 for (std::list<std::vector<std::string> >::iterator it = pairs.begin();
1444 it != pairs.end(); ++it) {
1445 bool found = false;
1446 for (std::size_t i = 0; i < ret.size(); ++i) {
1447 if (ret[i] == (*it)[0]) {
1448 found = true;
1449 break;
1450 }
1451 }
1452 if (!found) {
1453 ret.push_back( (*it)[0] );
1454 }
1455 }
1456
1457 return ret;
1458}
1459
1460const std::vector<std::string>&
1461Project::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