Changeset 1768 for code/branches/core3/src/util/MultiType.h
- Timestamp:
- Sep 11, 2008, 4:40:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/util/MultiType.h
r1729 r1768 129 129 130 130 virtual void toString(std::ostream& outstream) const = 0; 131 //virtual void toString(std::ostream& outstream) const = 0; 132 //inline friend virtual std::ostream& operator <<(std::ostream& outstream, const MT_ValueBase& mtb); 131 133 132 134 MT_Type type_; … … 238 240 template <class T> operator T*() const { return ((T*)this->operator void*()); } 239 241 242 inline friend std::ostream& operator<<(std::ostream& outstream, const MultiType& mt) { if (mt.value_) { mt.value_->toString(outstream); } return outstream; } 243 240 244 inline void getValue(char* value) const { if (this->value_) { (*value) = (*this->value_); } } 241 245 inline void getValue(unsigned char* value) const { if (this->value_) { (*value) = (*this->value_); } } … … 318 322 }; 319 323 320 _UtilExport inline std::ostream& operator<<(std::ostream& outstream, const MultiType& mt) { if (mt.value_) { mt.value_->toString(outstream); } return outstream; }324 //_UtilExport inline std::ostream& operator<<(std::ostream& outstream, const MultiType& mt) { if (mt.value_) { mt.value_->toString(outstream); } return outstream; } 321 325 322 326 template <> inline bool MultiType::isType<char>() const { return (this->value_ && this->value_->type_ == MT_char); }
Note: See TracChangeset
for help on using the changeset viewer.