diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-12-20 15:51:00 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2014-12-20 15:51:00 +0100 |
commit | a7567d08e4d5869833069ec7211785af350aea88 (patch) | |
tree | 120971129563f9e5f054ea5bb740fcbf8f473936 /src/core/managed/Managed.hpp | |
parent | 87233da76c01ebead18a26f01ffb4e20dffe3214 (diff) |
Renamed ManagedType class to Rtti to make naming less confusing, implemented easier to use Rtti clas
Diffstat (limited to 'src/core/managed/Managed.hpp')
-rw-r--r-- | src/core/managed/Managed.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/managed/Managed.hpp b/src/core/managed/Managed.hpp index cc55ae0..8582702 100644 --- a/src/core/managed/Managed.hpp +++ b/src/core/managed/Managed.hpp @@ -19,7 +19,7 @@ #ifndef _OUSIA_MANAGED_HPP_ #define _OUSIA_MANAGED_HPP_ -#include "ManagedType.hpp" +#include "Rtti.hpp" #include "Manager.hpp" namespace ousia { @@ -108,25 +108,25 @@ public: bool deleteData(const std::string &key); /** - * Returns the ManagedType instance registered for instances of the type - * of this Managed instance. + * Returns the RttiBase instance registered for instances of the type of + * this Managed instance. * - * @return a reference to the registered ManagedType for this particular + * @return a reference to the registered RttiBase for this particular * Managed class. */ - const ManagedType &type() const + const RttiBase &type() const { - return ManagedType::typeOf(*this); + return typeOf(*this); } /** - * Returns true if this Managed instance is of the given ManagedType. + * Returns true if this Managed instance is of the given RttiBase. * - * @param true if the ManagedType registered for this particular Managed + * @param true if the RttiBase 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 ManagedType &t) const { return type().isa(t); } + bool isa(const RttiBase &t) const { return type().isa(t); } }; /** |