Adds method resolveFirstCopy to collections

Using the copy whenever it is necessary to avoid memory leak.
This commit is contained in:
Felipe Zimmerle
2016-07-08 10:22:37 -03:00
parent 6e4226ee4d
commit 833089eb70
8 changed files with 131 additions and 7 deletions

View File

@@ -59,6 +59,9 @@ class Collections :
std::string* resolveFirst(const std::string& var);
std::string* resolveFirst(const std::string& collectionName,
const std::string& var);
std::string resolveFirstCopy(const std::string& var);
std::string resolveFirstCopy(const std::string& collectionName,
const std::string& var);
void resolveSingleMatch(const std::string& var,
std::vector<const Variable *> *l);