diff options
Diffstat (limited to 'src/core/model')
| -rw-r--r-- | src/core/model/Node.cpp | 12 | ||||
| -rw-r--r-- | src/core/model/Node.hpp | 4 | 
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);  };  /**  | 
