diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-23 15:28:22 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-01-23 15:28:22 +0100 |
commit | 1131b68bdf2949f56422a2c53617a5f7d2d9be47 (patch) | |
tree | 771310108656fd4820cc780a523c888a3ac81c8a /src/core/common/Rtti.hpp | |
parent | 9e084e8e7f657112436c3e07f12a2319373b1909 (diff) |
Fixed typos, autoformat and setIsOneOf method
Diffstat (limited to 'src/core/common/Rtti.hpp')
-rw-r--r-- | src/core/common/Rtti.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/common/Rtti.hpp b/src/core/common/Rtti.hpp index 53043e2..e2f1fa2 100644 --- a/src/core/common/Rtti.hpp +++ b/src/core/common/Rtti.hpp @@ -393,6 +393,16 @@ public: bool isOneOf(const RttiSet &others) const; /** + * Checks whether any type in the first set is one type in the second set. + * + * @param s1 is the first set. For each type in this set we check whether + * it is one of the types in s2. + * @param s2 is the second set. + * @return true if the above condition is fulfilled, false otherwise. + */ + static bool setIsOneOf(const RttiSet &s1, const RttiSet &s2); + + /** * Returns true if an instance of this type may have references to the other * given type. This mechanism is used to prune impossible paths when * resolving objects of a certain type by name in an object graph. |