Changeset 3233 for code/trunk/src/util/MultiType.h
- Timestamp:
- Jun 26, 2009, 11:42:34 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/MultiType.h
r3196 r3233 76 76 #include <OgreQuaternion.h> 77 77 #include <OgreColourValue.h> 78 79 #include "TemplateUtils.h" 78 80 79 81 namespace orxonox … … 317 319 inline void resetValue() { if (this->value_) this->value_->reset(); } 318 320 319 template <typename T> inline void setType() { this->assignValue(T ());} /** @brief Resets the value and changes the internal type to T. */321 template <typename T> inline void setType() { this->assignValue(TypeStripper<T>::RawType()); } /** @brief Resets the value and changes the internal type to T. */ 320 322 inline void setType(const MultiType& other) { this->setType(other.getType()); } /** @brief Resets the value and changes the internal type to the type of the other MultiType. */ 321 323 inline void setType(MT_Type type) { this->reset(); this->convert(type); this->resetValue(); } /** @brief Resets the value and changes the internal type to the given type. */
Note: See TracChangeset
for help on using the changeset viewer.