From 66382c62af1be515deff66d51dba7f27e5fe4937 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 18 Jan 2015 18:41:30 +0100 Subject: Renamed RttiType to Rtti --- src/core/managed/Managed.cpp | 6 +++--- src/core/managed/Managed.hpp | 20 ++++++++++---------- src/core/managed/Manager.cpp | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) (limited to 'src/core/managed') diff --git a/src/core/managed/Managed.cpp b/src/core/managed/Managed.cpp index d9f3a86..a3caa76 100644 --- a/src/core/managed/Managed.cpp +++ b/src/core/managed/Managed.cpp @@ -77,11 +77,11 @@ bool Managed::unregisterEvent(EventType type, EventHandler handler, bool Managed::triggerEvent(Event &ev) { return mgr.triggerEvent(this, ev); } -const RttiType &Managed::type() const { return typeOf(*this); } +const Rtti &Managed::type() const { return typeOf(*this); } -bool Managed::isa(const RttiType &t) const { return type().isa(t); } +bool Managed::isa(const Rtti &t) const { return type().isa(t); } -bool Managed::composedOf(const RttiType &t) const +bool Managed::composedOf(const Rtti &t) const { return type().composedOf(t); } diff --git a/src/core/managed/Managed.hpp b/src/core/managed/Managed.hpp index e98e95e..08158b2 100644 --- a/src/core/managed/Managed.hpp +++ b/src/core/managed/Managed.hpp @@ -41,7 +41,7 @@ class Rooted; template class Owned; -class RttiType; +class Rtti; // TODO: Implement clone, getReferenced and getReferencing @@ -207,32 +207,32 @@ public: /* RTTI methods */ /** - * Returns the RttiType instance registered for instances of the type of + * Returns the Rtti instance registered for instances of the type of * this Managed instance. * - * @return a reference to the registered RttiType for this particular + * @return a reference to the registered Rtti for this particular * Managed class. */ - const RttiType &type() const; + const Rtti &type() const; /** * Returns true if this Managed instance is of the type described by the - * given RttiType instance. + * given Rtti instance. * - * @param true if the RttiType registered for this particular Managed + * @param true if the Rtti registered for this particular Managed * class is of the given type or one of the registered parent types is of * the given type. */ - bool isa(const RttiType &t) const; + bool isa(const Rtti &t) const; /** * Returns true if this Managed instance may contain instances of the type - * described by the given RttiType instance. + * described by the given Rtti instance. * - * @param true if the RttiType registered for this particular Managed class + * @param true if the Rtti registered for this particular Managed class * may contain instance of the given type. */ - bool composedOf(const RttiType &t) const; + bool composedOf(const Rtti &t) const; }; /** diff --git a/src/core/managed/Manager.cpp b/src/core/managed/Manager.cpp index c6d7f93..212aa9d 100644 --- a/src/core/managed/Manager.cpp +++ b/src/core/managed/Manager.cpp @@ -592,7 +592,7 @@ void Manager::exportGraphviz(const char *filename) : std::vector{}; // Read type information and Node name (if available) - const RttiType &type = objectPtr->type(); + const Rtti &type = objectPtr->type(); const std::string &typeName = type.name; // Fetch the name of the object if the object has a "name" property @@ -659,7 +659,7 @@ void Manager::exportGraphviz(const char *filename) while (edgeCount > 0) { // Get the type of the target element uintptr_t pTar = reinterpret_cast(e.first); - const RttiType &typeTar = e.first->type(); + const Rtti &typeTar = e.first->type(); // Get some information about the edge std::string port = ""; -- cgit v1.2.3