summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Node.cpp8
-rw-r--r--src/core/Node.hpp14
2 files changed, 11 insertions, 11 deletions
diff --git a/src/core/Node.cpp b/src/core/Node.cpp
index c18adb4..607c607 100644
--- a/src/core/Node.cpp
+++ b/src/core/Node.cpp
@@ -47,14 +47,14 @@ std::vector<std::string> Node::path() const
return res;
}
-void Node::doResolve(std::vector<Rooted<Node>> &res,
+void Node::doResolve(std::vector<Rooted<Managed>> &res,
const std::vector<std::string> &path, Filter filter,
void *filterData, unsigned idx, VisitorSet &visited)
{
// Do nothing in the default implementation
}
-int Node::resolve(std::vector<Rooted<Node>> &res,
+int Node::resolve(std::vector<Rooted<Managed>> &res,
const std::vector<std::string> &path, Filter filter,
void *filterData, unsigned idx, VisitorSet &visited,
const std::string *alias)
@@ -87,11 +87,11 @@ int Node::resolve(std::vector<Rooted<Node>> &res,
return res.size();
}
-std::vector<Rooted<Node>> Node::resolve(const std::vector<std::string> &path,
+std::vector<Rooted<Managed>> Node::resolve(const std::vector<std::string> &path,
Filter filter = nullptr,
void *filterData = nullptr)
{
- std::vector<Rooted<Node>> res;
+ std::vector<Rooted<Managed>> res;
VisitorSet visited;
resolve(res, path, filter, filterData, 0, visited, nullptr);
return res;
diff --git a/src/core/Node.hpp b/src/core/Node.hpp
index 262a611..f32beb7 100644
--- a/src/core/Node.hpp
+++ b/src/core/Node.hpp
@@ -307,7 +307,7 @@ protected:
* @param filterData is user-defined data that should be passed to the
* filter.
*/
- virtual void doResolve(std::vector<Rooted<Node>> &res,
+ virtual void doResolve(std::vector<Rooted<Managed>> &res,
const std::vector<std::string> &path, Filter filter,
void *filterData, unsigned idx, VisitorSet &visited);
@@ -370,7 +370,7 @@ public:
*
* @return a handle to the root node.
*/
- Rooted<Node> getParent() const { return parent; }
+ Rooted<Managed> getParent() const { return parent; }
/**
* Returns true, if the node does not have a parent. Root nodes may either
@@ -410,7 +410,7 @@ public:
* provided.
* @return the number of elements in the result list.
*/
- int resolve(std::vector<Rooted<Node>> &res,
+ int resolve(std::vector<Rooted<Managed>> &res,
const std::vector<std::string> &path, Filter filter,
void *filterData, unsigned idx, VisitorSet &visited,
const std::string *alias);
@@ -429,7 +429,7 @@ public:
* filter.
* @return a vector containing all found node references.
*/
- std::vector<Rooted<Node>> resolve(const std::vector<std::string> &path,
+ std::vector<Rooted<Managed>> resolve(const std::vector<std::string> &path,
Filter filter, void *filterData);
/**
@@ -440,7 +440,7 @@ public:
* certain named node.
* @return a vector containing all found node references.
*/
- std::vector<Rooted<Node>> resolve(const std::vector<std::string> &path)
+ std::vector<Rooted<Managed>> resolve(const std::vector<std::string> &path)
{
return resolve(path, nullptr, nullptr);
}
@@ -458,7 +458,7 @@ public:
* filter.
* @return a vector containing all found node references.
*/
- std::vector<Rooted<Node>> resolve(const char *, Filter filter,
+ std::vector<Rooted<Managed>> resolve(const char *, Filter filter,
void *filterData)
{
return resolve(std::vector<std::string>{name}, filter, filterData);
@@ -471,7 +471,7 @@ public:
* @param name is the name which should be resolved.
* @return a vector containing all found node references.
*/
- std::vector<Rooted<Node>> resolve(const std::string &name)
+ std::vector<Rooted<Managed>> resolve(const std::string &name)
{
return resolve(std::vector<std::string>{name}, nullptr, nullptr);
}