Changeset 1727 for code/branches/core3
- Timestamp:
- Sep 7, 2008, 3:11:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/util/MultiTypeValue.h
r1726 r1727 41 41 inline MT_ValueBase* clone() const { return new MT_Value<T>(this->value_, this->type_); } 42 42 inline void reset() { this->value_ = T(); } 43 inline void assimilate(const MultiType& other) { if (other.value_) { this->value_ = other.operator T(); } else { this->value_ = T(); } }43 inline void assimilate(const MultiType& other) { if (other.value_) { T temp; other.getValue(&temp); this->value_ = temp; } else { this->value_ = T(); } } 44 44 45 45 inline void setValue(const char& value) { this->value_ = getConvertedValue<char, T>(value); }
Note: See TracChangeset
for help on using the changeset viewer.