Changeset 933 for code/branches/core2/src/util
- Timestamp:
- Mar 27, 2008, 5:04:41 PM (17 years ago)
- Location:
- code/branches/core2/src/util
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/util/Math.h
r871 r933 26 26 */ 27 27 28 #ifndef _ Math_H__29 #define _ Math_H__28 #ifndef _Util_Math_H__ 29 #define _Util_Math_H__ 30 30 31 31 #include <ostream> … … 146 146 } 147 147 148 #endif /* _ Math_H__ */148 #endif /* _Util_Math_H__ */ -
code/branches/core2/src/util/MultiTypeMath.cc
r925 r933 88 88 } 89 89 90 MultiTypeMath::operator orxonox::BaseObject*() const91 { return (this->type_ == MT_void) ? (orxonox::BaseObject*)this->value_.void_ : (orxonox::BaseObject*)ConvertValueAndReturn<MultiTypeMath, void*>(*this); }92 90 MultiTypeMath::operator void*() const 93 91 { return (this->type_ == MT_void) ? this->value_.void_ : ConvertValueAndReturn<MultiTypeMath, void*>(*this); } -
code/branches/core2/src/util/MultiTypeMath.h
r925 r933 91 91 bool operator!=(const MultiTypeMath& mtm) const; 92 92 93 virtual operator orxonox::BaseObject*() const;94 93 virtual operator void*() const; 95 94 virtual operator int() const; -
code/branches/core2/src/util/MultiTypePrimitive.cc
r925 r933 134 134 } 135 135 136 MultiTypePrimitive::operator orxonox::BaseObject*() const137 { return (this->type_ == MT_void) ? (orxonox::BaseObject*)this->value_.void_ : (orxonox::BaseObject*)ConvertValueAndReturn<MultiTypePrimitive, void*>(*this); }138 136 MultiTypePrimitive::operator void*() const 139 137 { return (this->type_ == MT_void) ? this->value_.void_ : ConvertValueAndReturn<MultiTypePrimitive, void*>(*this); } -
code/branches/core2/src/util/MultiTypePrimitive.h
r925 r933 105 105 bool operator!=(const MultiTypePrimitive& mtp) const; 106 106 107 virtual operator orxonox::BaseObject*() const; 107 template <class T> 108 operator T*() const 109 { return ((T*)this->value_.void_); } 108 110 virtual operator void*() const; 109 111 virtual operator int() const; -
code/branches/core2/src/util/MultiTypeString.cc
r931 r933 65 65 } 66 66 67 MultiTypeString::operator orxonox::BaseObject*() const68 { return (this->type_ == MT_void) ? (orxonox::BaseObject*)this->value_.void_ : (orxonox::BaseObject*)ConvertValueAndReturn<MultiTypeString, void*>(*this); }69 67 MultiTypeString::operator void*() const 70 68 { return (this->type_ == MT_void) ? this->value_.void_ : ConvertValueAndReturn<MultiTypeString, void*>(*this); } -
code/branches/core2/src/util/MultiTypeString.h
r925 r933 79 79 bool operator!=(const MultiTypeString& mts) const; 80 80 81 virtual operator orxonox::BaseObject*() const;82 81 virtual operator void*() const; 83 82 virtual operator int() const; -
code/branches/core2/src/util/String.h
r871 r933 26 26 */ 27 27 28 #ifndef _ String_H__29 #define _ String_H__28 #ifndef _Util_String_H__ 29 #define _Util_String_H__ 30 30 31 31 #include <string> … … 144 144 }; 145 145 146 #endif /* _ String_H__ */146 #endif /* _Util_String_H__ */
Note: See TracChangeset
for help on using the changeset viewer.