Huge improve in the variables resolution time

This commit is contained in:
Felipe Zimmerle
2015-11-03 22:44:59 -03:00
parent 4a771f8c2c
commit e641c3cc17
15 changed files with 276 additions and 25 deletions

View File

@@ -137,8 +137,59 @@ std::list<transaction::Variable *> *
new std::list<transaction::Variable *>();
resolve(var, l);
}
return l;
void Collections::resolveSingleMatch(const std::string& var,
std::list<transaction::Variable *> *l) {
m_transient.resolveSingleMatch(var, l);
}
void Collections::resolveSingleMatch(const std::string& var,
const std::string& collection,
std::list<transaction::Variable *> *l) {
try {
this->at(collection)->resolveSingleMatch(var, l);
} catch (...) {
}
}
void Collections::resolveMultiMatches(const std::string& var,
std::list<transaction::Variable *> *l) {
m_transient.resolveMultiMatches(var, l);
}
void Collections::resolveMultiMatches(const std::string& var,
const std::string& collection,
std::list<transaction::Variable *> *l) {
try {
this->at(collection)->resolveMultiMatches(var, l);
} catch (...) {
}
}
void Collections::resolveRegularExpression(const std::string& var,
std::list<transaction::Variable *> *l) {
m_transient.resolveRegularExpression(var, l);
}
void Collections::resolveRegularExpression(const std::string& var,
const std::string& collection,
std::list<transaction::Variable *> *l) {
try {
this->at(collection)->resolveRegularExpression(var, l);
} catch (...) {
}
}
} // namespace transaction