1
0
Fork 0

Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2

This commit is contained in:
Jan Steemann 2014-08-21 13:52:02 +02:00
commit 98251272cd
1 changed files with 15 additions and 0 deletions

View File

@ -168,6 +168,7 @@ namespace triagens {
void addDependency (ExecutionNode* ep) {
_dependencies.push_back(ep);
ep->_parents.push_back(this);
}
////////////////////////////////////////////////////////////////////////////////
@ -178,6 +179,14 @@ namespace triagens {
return _dependencies;
}
////////////////////////////////////////////////////////////////////////////////
/// @brief get all parents
////////////////////////////////////////////////////////////////////////////////
std::vector<ExecutionNode*> getParents () const {
return _parents;
}
////////////////////////////////////////////////////////////////////////////////
/// @brief replace a dependency, returns true if the pointer was found and
/// replaced, please note that this does not delete oldNode!
@ -392,6 +401,12 @@ namespace triagens {
std::vector<ExecutionNode*> _dependencies;
////////////////////////////////////////////////////////////////////////////////
/// @brief our parent nodes
////////////////////////////////////////////////////////////////////////////////
std::vector<ExecutionNode*> _parents;
////////////////////////////////////////////////////////////////////////////////
/// @brief NodeType to string mapping
////////////////////////////////////////////////////////////////////////////////