summaryrefslogtreecommitdiff
path: root/src/core/model
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-11 13:23:26 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-11 13:23:26 +0100
commit7df5f30494b7da283164717dea9098c8d9dca77a (patch)
tree8d967f3c47fc905b08ee7039b7549253f969703f /src/core/model
parent3d6d42333a49e0a33a8cc4e1b8f890905a435a83 (diff)
Renamed RttiBase to RttiType
Diffstat (limited to 'src/core/model')
-rw-r--r--src/core/model/Node.cpp12
-rw-r--r--src/core/model/Node.hpp4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/core/model/Node.cpp b/src/core/model/Node.cpp
index 5d8bbeb..284f323 100644
--- a/src/core/model/Node.cpp
+++ b/src/core/model/Node.cpp
@@ -64,7 +64,7 @@ public:
/**
* Type of the node that was requested for resolution.
*/
- const RttiBase &type;
+ const RttiType &type;
/**
* Tracks all nodes that have already been visited.
@@ -87,7 +87,7 @@ public:
* @param type is the type of the node that should be resolved.
*/
SharedResolutionState(const std::vector<std::string> &path,
- const RttiBase &type)
+ const RttiType &type)
: path(path), type(type)
{
}
@@ -184,9 +184,9 @@ public:
*
* @return true if the type matches, false otherwise.
*/
- bool typeMatches(const RttiBase &type) { return type.isa(shared.type); }
+ bool typeMatches(const RttiType &type) { return type.isa(shared.type); }
- bool canContainType(const RttiBase &type)
+ bool canContainType(const RttiType &type)
{
return type.composedOf(shared.type);
}
@@ -328,7 +328,7 @@ bool Node::continueResolveReference(Handle<Node> h, ResolutionState &state)
}
std::vector<ResolutionResult> Node::resolve(
- const std::vector<std::string> &path, const RttiBase &type)
+ const std::vector<std::string> &path, const RttiType &type)
{
// Create the state variables
SharedResolutionState sharedState(path, type);
@@ -344,7 +344,7 @@ std::vector<ResolutionResult> Node::resolve(
}
std::vector<ResolutionResult> Node::resolve(const std::string &name,
- const RttiBase &type)
+ const RttiType &type)
{
// Place the name in a vector and call the corresponding resolve function
return resolve(std::vector<std::string>{name}, type);
diff --git a/src/core/model/Node.hpp b/src/core/model/Node.hpp
index 6001dc2..54a1497 100644
--- a/src/core/model/Node.hpp
+++ b/src/core/model/Node.hpp
@@ -351,7 +351,7 @@ public:
* the resolved elements.
*/
std::vector<ResolutionResult> resolve(const std::vector<std::string> &path,
- const RttiBase &type);
+ const RttiType &type);
/**
* Function which resolves a single name to a list of possible nodes
@@ -363,7 +363,7 @@ public:
* the resolved elements.
*/
std::vector<ResolutionResult> resolve(const std::string &name,
- const RttiBase &type);
+ const RttiType &type);
};
/**