diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-03 16:44:15 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-01-03 16:44:15 +0100 |
commit | 5c8c0cc70b49c5fb2d85778c31c3d3f9a670d315 (patch) | |
tree | c659c883819b556910eabcbf10faf89fc769bc89 /src/core/managed/Managed.hpp | |
parent | 603dedfa2b3704730fa4db8e7f84702b26da9ae6 (diff) |
Renamed "contains" to aggregatedOf, added corresponding convenience function to Rtti class
Diffstat (limited to 'src/core/managed/Managed.hpp')
-rw-r--r-- | src/core/managed/Managed.hpp | 12 |
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; }; /** |