diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-11 13:51:41 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-11 13:51:41 +0100 |
commit | 287bc06f77ff5e60884c1709844c5830ff7a70ce (patch) | |
tree | a232b7c099aac11d4590c16326aaee6107f0db20 /src/core/common/Rtti.hpp | |
parent | 7df5f30494b7da283164717dea9098c8d9dca77a (diff) |
Added primitive Rtti Types
Diffstat (limited to 'src/core/common/Rtti.hpp')
-rw-r--r-- | src/core/common/Rtti.hpp | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/src/core/common/Rtti.hpp b/src/core/common/Rtti.hpp index aa161d6..39a61d3 100644 --- a/src/core/common/Rtti.hpp +++ b/src/core/common/Rtti.hpp @@ -296,6 +296,11 @@ public: RttiType() : name("unknown") {} /** + * Constructor for an empty RttiType with the given name. + */ + RttiType(std::string name) : name(std::move(name)) {} + + /** * Creates a new RttiType instance and registers it in the global type * table. Use the Rtti and the RttiBuilder class for more convenient * registration of type information. @@ -431,32 +436,42 @@ namespace RttiTypes { extern const RttiType None; /** - * Bool type for use by the Variant::rttiType method. + * Nullptr type for use by the Variant::getRttiType method. + */ +extern const RttiType Nullptr; + +/** + * Bool type for use by the Variant::getRttiType method. */ extern const RttiType Bool; /** - * Integer type for use by the Variant::rttiType method. + * Integer type for use by the Variant::getRttiType method. */ extern const RttiType Int; /** - * Double type for use by the Variant::rttiType method. + * Double type for use by the Variant::getRttiType method. */ extern const RttiType Double; /** - * String type for use by the Variant::rttiType method. + * String type for use by the Variant::getRttiType method. */ extern const RttiType String; /** - * Array type for use by the Variant::rttiType method. + * Array type for use by the Variant::getRttiType method. */ extern const RttiType Array; /** - * Function type for use by the Variant::rttiType method. + * Map type for use by the Variant::getRttiType method. + */ +extern const RttiType Map; + +/** + * Function type for use by the Variant::getRttiType method. */ extern const RttiType Function; } |