summaryrefslogtreecommitdiff
path: root/src/core/managed/Managed.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/managed/Managed.hpp')
-rw-r--r--src/core/managed/Managed.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/managed/Managed.hpp b/src/core/managed/Managed.hpp
index cdf81aa..fecbfdd 100644
--- a/src/core/managed/Managed.hpp
+++ b/src/core/managed/Managed.hpp
@@ -199,13 +199,23 @@ public:
const RttiBase &type() const;
/**
- * Returns true if this Managed instance is of the given RttiBase.
+ * Returns true if this Managed instance is of the type described by the
+ * given RttiBase instance.
*
* @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 RttiBase &t) const;
+
+ /**
+ * Returns true if this Managed instance may contain instances of the type
+ * described by the given RttiBase instance.
+ *
+ * @param true if the RttiBase registered for this particular Managed class
+ * may contain instance of the given type.
+ */
+ bool aggregatedOf(const RttiBase &t) const;
};
/**