Changeset 1435 for code/branches/console/src/util/MultiTypeMath.h
- Timestamp:
- May 27, 2008, 1:17:33 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/util/MultiTypeMath.h
r1320 r1435 69 69 inline MultiTypeMath(const orxonox::Degree& value) { this->setValue(value); } 70 70 inline MultiTypeMath(const MultiTypeMath& mtm) { this->setValue(mtm); } 71 inline MultiTypeMath(const MultiTypeString& mts) { this->setValue(mts); } 72 inline MultiTypeMath(const MultiTypePrimitive& mtp) { this->setValue(mtp); } 71 73 virtual inline ~MultiTypeMath() {} 72 74 … … 80 82 inline MultiTypeMath& operator=(const orxonox::Degree& value) { this->setValue(value); return *this; } 81 83 inline MultiTypeMath& operator=(const MultiTypeMath& mtm) { this->setValue(mtm); return *this; } 84 inline MultiTypeMath& operator=(const MultiTypeString& mts) { this->setValue(mts); return *this; } 85 inline MultiTypeMath& operator=(const MultiTypePrimitive mtp) { this->setValue(mtp); return *this; } 82 86 83 87 using MultiTypeString::operator==; … … 90 94 inline bool operator==(const orxonox::Degree& value) const { return (this->degree_ == value); } 91 95 bool operator==(const MultiTypeMath& mtm) const; 96 bool operator==(const MultiTypeString& mts) const; 97 bool operator==(const MultiTypePrimitive& mtp) const; 92 98 93 99 using MultiTypeString::operator!=; … … 100 106 inline bool operator!=(const orxonox::Degree& value) const { return (this->degree_ != value); } 101 107 bool operator!=(const MultiTypeMath& mtm) const; 108 bool operator!=(const MultiTypeString& mts) const; 109 bool operator!=(const MultiTypePrimitive& mtp) const; 102 110 103 111 virtual operator void*() const; … … 133 141 inline void setValue(const orxonox::Degree& value) { this->type_ = MT_degree; this->degree_ = value; } 134 142 void setValue(const MultiTypeMath& mtm); 143 void setValue(const MultiTypeString& mts); 144 void setValue(const MultiTypePrimitive& mtp); 135 145 136 146 inline orxonox::Vector2 getVector2() const { return this->vector2_; }
Note: See TracChangeset
for help on using the changeset viewer.