Changeset 1319 for code/branches/console/src/util/MultiTypePrimitive.cc
- Timestamp:
- May 19, 2008, 12:55:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/util/MultiTypePrimitive.cc
r1056 r1319 266 266 } 267 267 268 void MultiTypePrimitive::assimilate(const MultiTypePrimitive& mtp) 269 { 270 if (this->type_ == MT_void) 271 this->value_.void_ = mtp; 272 else if (this->type_ == MT_int) 273 this->value_.int_ = mtp; 274 else if (this->type_ == MT_uint) 275 this->value_.uint_ = mtp; 276 else if (this->type_ == MT_char) 277 this->value_.char_ = mtp; 278 else if (this->type_ == MT_uchar) 279 this->value_.uchar_ = mtp; 280 else if (this->type_ == MT_short) 281 this->value_.short_ = mtp; 282 else if (this->type_ == MT_ushort) 283 this->value_.ushort_ = mtp; 284 else if (this->type_ == MT_long) 285 this->value_.long_ = mtp; 286 else if (this->type_ == MT_ulong) 287 this->value_.ulong_ = mtp; 288 else if (this->type_ == MT_float) 289 this->value_.float_ = mtp; 290 else if (this->type_ == MT_double) 291 this->value_.double_ = mtp; 292 else if (this->type_ == MT_longdouble) 293 this->value_.longdouble_ = mtp; 294 else if (this->type_ == MT_bool) 295 this->value_.bool_ = mtp; 296 } 297 268 298 std::ostream& operator<<(std::ostream& out, const MultiTypePrimitive& mtp) 269 299 {
Note: See TracChangeset
for help on using the changeset viewer.