diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-12-20 16:44:15 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2014-12-20 16:44:15 +0100 |
commit | 0bbfecaba5ae2afec230552fd106e98be61a91bf (patch) | |
tree | 0c1d38058226a72e627003798bbe326e6d473b23 /src | |
parent | d0b3fd56b8eef09faf7986cef5d8732df1e5ddf5 (diff) |
fixed some typos
Diffstat (limited to 'src')
-rw-r--r-- | src/core/managed/Rtti.hpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/core/managed/Rtti.hpp b/src/core/managed/Rtti.hpp index 5bf4c46..4a754a7 100644 --- a/src/core/managed/Rtti.hpp +++ b/src/core/managed/Rtti.hpp @@ -23,25 +23,25 @@ * resolve objects of a certain type in the object graph and to attach * information that should be accessible to the script engine. * - * <b>Why is this needed?</b> C++ provides the <tt>typeid</tt> operator to + * <b>Why is this needed?</b> C++ provides the <tt>typeid</tt> operator to * retrieve a reference at an internal table associated with type information * for the given class. However, there is no native way for attaching additonal * information to this type information table. Additional information we need to * store is the inheritance graph (which cannot easily be extracted from C++) - * and information that is relevant for script engines (such as a list of - * methods and properties). One could of course store information about the type - * within each instance of this type, however when managing thousands of objects - * this would mean an additional overhead. + * and information relevant for script engines (such as a list of methods and + * properties). One could of course store information about the type within each + * instance of this type, however when managing thousands of objects + * this would create a significant overhead. * - * <b>How to use:</b> The Rtti class allows to attach this information to a - * certain C++ file. To do so, create a global constant of the type - * Rtti<T> in the cpp file associated with the type declaration, where T - * is the type you want to register. As the type must only be registered once, - * you must not declare the variable as "static" in the header file (this would - * register it whever the header is included). If you want to access the global - * constant from other Rtti definitions (as parent), create a forward declaration + * <b>How to use:</b> The Rtti class allows to attach information to a certain + * C++ class. To do so, create a global constant of the type Rtti<T> in the + * source file associated with the type declaration, where T is the type you + * want to register. As the type must only be registered once, you must not + * declare the variable as "static" in the header file (this would register it + * whever the header is included). If you want to access the global constant + * from other Rtti definitions (as parent), create a forward declaration * in the header file. If you want to access the RTTI of a certain object or - * type, use the global typeOf() function (however, don't use it + * type, use the global typeOf() function (however, don't use it * within global variable initializations). * * <b>Example:</b> @@ -142,9 +142,9 @@ public: * the compiler. * @param parents is a list of parent types. */ - RttiBase(std::string name, const std::type_info &native, - std::vector<const RttiBase *> parents = - std::vector<const RttiBase *>{}) + RttiBase( + std::string name, const std::type_info &native, + std::vector<const RttiBase *> parents = std::vector<const RttiBase *>{}) : parents(std::move(parents)), name(std::move(name)) { RttiStore::store(native, this); @@ -188,7 +188,7 @@ public: /** * Function that can be used to retrieve the RTTI information of a Managed * object. Do not use this function in the initialization of global Rtti - * variables, use pointers at the other global variable instead (as the + * variables, use pointers at the other global variable instead (as the * initialization order is not well defined). * * @tparam T is the C++ type for which the type information should be returned. @@ -202,7 +202,7 @@ inline const RttiBase &typeOf() /** * Function that can be used to retrieve the RTTI information of a Managed * object. Do not use this function in the initialization of global Rtti - * variables, use pointers at the other global variable instead (as the + * variables, use pointers at the other global variable instead (as the * initialization order is not well defined). * * @tparam T is the C++ type for which the type information should be returned. |