summaryrefslogtreecommitdiff
path: root/src/core/parser/ParserScope.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-07 02:31:51 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-07 02:31:51 +0100
commitf6531b10353dacdcbab211a31926c165211cf3b3 (patch)
treeb0c6508bb58b5a34e4b4f8007af5af44fd38aca1 /src/core/parser/ParserScope.hpp
parent6b3b2f5965e5dfb2000bb9c23f11a83e175741de (diff)
Unified handling of references to Rtti instances: Now using pointers everywhere
Diffstat (limited to 'src/core/parser/ParserScope.hpp')
-rw-r--r--src/core/parser/ParserScope.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/parser/ParserScope.hpp b/src/core/parser/ParserScope.hpp
index 1de1592..bd6a29f 100644
--- a/src/core/parser/ParserScope.hpp
+++ b/src/core/parser/ParserScope.hpp
@@ -103,7 +103,7 @@ public:
* @return a reference at a resolved node or nullptr if no node could be
* found.
*/
- Rooted<Node> resolve(const Rtti &type, const std::vector<std::string> &path,
+ Rooted<Node> resolve(const Rtti *type, const std::vector<std::string> &path,
Logger &logger);
/**
@@ -167,7 +167,7 @@ public:
template <class T>
Rooted<T> select(int maxDepth = -1)
{
- return select(RttiSet{&typeOf<T>()}, maxDepth).cast<T>();
+ return select(RttiSet{typeOf<T>()}, maxDepth).cast<T>();
}
/**
@@ -195,7 +195,7 @@ public:
template <class T>
Rooted<T> selectOrThrow(int maxDepth = -1)
{
- return selectOrThrow(RttiSet{&typeOf<T>()}, maxDepth).cast<T>();
+ return selectOrThrow(RttiSet{typeOf<T>()}, maxDepth).cast<T>();
}
};
@@ -227,7 +227,7 @@ public:
/**
* Reference at the type of the object that should be resolved.
*/
- const Rtti &type;
+ const Rtti *type;
/**
* Node for which the resolution is taking place.
@@ -248,7 +248,7 @@ public:
* @param owner is the node for which the resolution takes place.
*/
DeferredResolution(const NodeVector<Node> &nodes,
- const std::vector<std::string> &path, const Rtti &type,
+ const std::vector<std::string> &path, const Rtti *type,
ResolutionResultCallback resultCallback,
Handle<Node> owner);
@@ -482,7 +482,7 @@ public:
* not mean, that the resolved object does not exist, as it may be resolved
* later.
*/
- bool resolve(const Rtti &type, const std::vector<std::string> &path,
+ bool resolve(const Rtti *type, const std::vector<std::string> &path,
Handle<Node> owner, Logger &logger,
ResolutionImposterCallback imposterCallback,
ResolutionResultCallback resultCallback);
@@ -505,7 +505,7 @@ public:
* mean, that the resolved object does not exist, as it may be resolved
* later.
*/
- bool resolve(const Rtti &type, const std::vector<std::string> &path,
+ bool resolve(const Rtti *type, const std::vector<std::string> &path,
Handle<Node> owner, Logger &logger,
ResolutionResultCallback resultCallback);