summaryrefslogtreecommitdiff
path: root/src/core/Node.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-11-21 12:27:34 +0100
committerAndreas Stöckel <andreas@somweyr.de>2014-11-21 12:27:34 +0100
commit1da7b31f13b00fdf4e572b5847750237f484b505 (patch)
treeb9778684924c0e1fe082cd773ff7830dc63560f1 /src/core/Node.hpp
parentd777bca65566bf15e9e2ed8b23f854fb974c902a (diff)
resolve now resolves lists of generic Managed objects and not nodes (this is needed as e.g. constants need to be resolved, which are TypeInstances but not Nodes)
Diffstat (limited to 'src/core/Node.hpp')
-rw-r--r--src/core/Node.hpp14
1 files changed, 7 insertions, 7 deletions
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);
}