mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2
This commit is contained in:
commit
98251272cd
|
@ -168,6 +168,7 @@ namespace triagens {
|
||||||
|
|
||||||
void addDependency (ExecutionNode* ep) {
|
void addDependency (ExecutionNode* ep) {
|
||||||
_dependencies.push_back(ep);
|
_dependencies.push_back(ep);
|
||||||
|
ep->_parents.push_back(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -178,6 +179,14 @@ namespace triagens {
|
||||||
return _dependencies;
|
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
|
/// @brief replace a dependency, returns true if the pointer was found and
|
||||||
/// replaced, please note that this does not delete oldNode!
|
/// replaced, please note that this does not delete oldNode!
|
||||||
|
@ -392,6 +401,12 @@ namespace triagens {
|
||||||
|
|
||||||
std::vector<ExecutionNode*> _dependencies;
|
std::vector<ExecutionNode*> _dependencies;
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
/// @brief our parent nodes
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
std::vector<ExecutionNode*> _parents;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief NodeType to string mapping
|
/// @brief NodeType to string mapping
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue