Changeset 794 for code/branches/core/src/util/MultiTypePrimitive.h
- Timestamp:
- Feb 10, 2008, 1:05:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/util/MultiTypePrimitive.h
r792 r794 38 38 public: 39 39 MultiTypePrimitive(MultiType type = MT_null); 40 MultiTypePrimitive(int value) { this->setValue(value); }41 MultiTypePrimitive(unsigned int value) { this->setValue(value); }42 MultiTypePrimitive(char value) { this->setValue(value); }43 MultiTypePrimitive(unsigned char value) { this->setValue(value); }44 MultiTypePrimitive(short value) { this->setValue(value); }45 MultiTypePrimitive(unsigned short value) { this->setValue(value); }46 MultiTypePrimitive(long value) { this->setValue(value); }47 MultiTypePrimitive(unsigned long value) { this->setValue(value); }48 MultiTypePrimitive(float value) { this->setValue(value); }49 MultiTypePrimitive(double value) { this->setValue(value); }50 MultiTypePrimitive(long double value) { this->setValue(value); }51 MultiTypePrimitive(bool value) { this->setValue(value); }40 inline MultiTypePrimitive(int value) { this->setValue(value); } 41 inline MultiTypePrimitive(unsigned int value) { this->setValue(value); } 42 inline MultiTypePrimitive(char value) { this->setValue(value); } 43 inline MultiTypePrimitive(unsigned char value) { this->setValue(value); } 44 inline MultiTypePrimitive(short value) { this->setValue(value); } 45 inline MultiTypePrimitive(unsigned short value) { this->setValue(value); } 46 inline MultiTypePrimitive(long value) { this->setValue(value); } 47 inline MultiTypePrimitive(unsigned long value) { this->setValue(value); } 48 inline MultiTypePrimitive(float value) { this->setValue(value); } 49 inline MultiTypePrimitive(double value) { this->setValue(value); } 50 inline MultiTypePrimitive(long double value) { this->setValue(value); } 51 inline MultiTypePrimitive(bool value) { this->setValue(value); } 52 52 MultiTypePrimitive(const MultiTypePrimitive& mtp); 53 53 54 MultiTypePrimitive& operator=(int value) { this->setValue(value); return *this; }55 MultiTypePrimitive& operator=(unsigned int value) { this->setValue(value); return *this; }56 MultiTypePrimitive& operator=(char value) { this->setValue(value); return *this; }57 MultiTypePrimitive& operator=(unsigned char value) { this->setValue(value); return *this; }58 MultiTypePrimitive& operator=(short value) { this->setValue(value); return *this; }59 MultiTypePrimitive& operator=(unsigned short value) { this->setValue(value); return *this; }60 MultiTypePrimitive& operator=(long value) { this->setValue(value); return *this; }61 MultiTypePrimitive& operator=(unsigned long value) { this->setValue(value); return *this; }62 MultiTypePrimitive& operator=(float value) { this->setValue(value); return *this; }63 MultiTypePrimitive& operator=(double value) { this->setValue(value); return *this; }64 MultiTypePrimitive& operator=(long double value) { this->setValue(value); return *this; }65 MultiTypePrimitive& operator=(bool value) { this->setValue(value); return *this; }54 inline MultiTypePrimitive& operator=(int value) { this->setValue(value); return *this; } 55 inline MultiTypePrimitive& operator=(unsigned int value) { this->setValue(value); return *this; } 56 inline MultiTypePrimitive& operator=(char value) { this->setValue(value); return *this; } 57 inline MultiTypePrimitive& operator=(unsigned char value) { this->setValue(value); return *this; } 58 inline MultiTypePrimitive& operator=(short value) { this->setValue(value); return *this; } 59 inline MultiTypePrimitive& operator=(unsigned short value) { this->setValue(value); return *this; } 60 inline MultiTypePrimitive& operator=(long value) { this->setValue(value); return *this; } 61 inline MultiTypePrimitive& operator=(unsigned long value) { this->setValue(value); return *this; } 62 inline MultiTypePrimitive& operator=(float value) { this->setValue(value); return *this; } 63 inline MultiTypePrimitive& operator=(double value) { this->setValue(value); return *this; } 64 inline MultiTypePrimitive& operator=(long double value) { this->setValue(value); return *this; } 65 inline MultiTypePrimitive& operator=(bool value) { this->setValue(value); return *this; } 66 66 MultiTypePrimitive& operator=(const MultiTypePrimitive& mtp); 67 67 68 bool operator==(int value) const { return (this->value_.int_ == value); }69 bool operator==(unsigned int value) const { return (this->value_.uint_ == value); }70 bool operator==(char value) const { return (this->value_.char_ == value); }71 bool operator==(unsigned char value) const { return (this->value_.uchar_ == value); }72 bool operator==(short value) const { return (this->value_.short_ == value); }73 bool operator==(unsigned short value) const { return (this->value_.ushort_ == value); }74 bool operator==(long value) const { return (this->value_.long_ == value); }75 bool operator==(unsigned long value) const { return (this->value_.ulong_ == value); }76 bool operator==(float value) const { return (this->value_.float_ == value); }77 bool operator==(double value) const { return (this->value_.double_ == value); }78 bool operator==(long double value) const { return (this->value_.longdouble_ == value); }79 bool operator==(bool value) const { return (this->value_.bool_ == value); }68 inline bool operator==(int value) const { return (this->value_.int_ == value); } 69 inline bool operator==(unsigned int value) const { return (this->value_.uint_ == value); } 70 inline bool operator==(char value) const { return (this->value_.char_ == value); } 71 inline bool operator==(unsigned char value) const { return (this->value_.uchar_ == value); } 72 inline bool operator==(short value) const { return (this->value_.short_ == value); } 73 inline bool operator==(unsigned short value) const { return (this->value_.ushort_ == value); } 74 inline bool operator==(long value) const { return (this->value_.long_ == value); } 75 inline bool operator==(unsigned long value) const { return (this->value_.ulong_ == value); } 76 inline bool operator==(float value) const { return (this->value_.float_ == value); } 77 inline bool operator==(double value) const { return (this->value_.double_ == value); } 78 inline bool operator==(long double value) const { return (this->value_.longdouble_ == value); } 79 inline bool operator==(bool value) const { return (this->value_.bool_ == value); } 80 80 bool operator==(const MultiTypePrimitive& mtp) const; 81 81 82 bool operator!=(int value) const { return (this->value_.int_ != value); }83 bool operator!=(unsigned int value) const { return (this->value_.uint_ != value); }84 bool operator!=(char value) const { return (this->value_.char_ != value); }85 bool operator!=(unsigned char value) const { return (this->value_.uchar_ != value); }86 bool operator!=(short value) const { return (this->value_.short_ != value); }87 bool operator!=(unsigned short value) const { return (this->value_.ushort_ != value); }88 bool operator!=(long value) const { return (this->value_.long_ != value); }89 bool operator!=(unsigned long value) const { return (this->value_.ulong_ != value); }90 bool operator!=(float value) const { return (this->value_.float_ != value); }91 bool operator!=(double value) const { return (this->value_.double_ != value); }92 bool operator!=(long double value) const { return (this->value_.longdouble_ != value); }93 bool operator!=(bool value) const { return (this->value_.bool_ != value); }82 inline bool operator!=(int value) const { return (this->value_.int_ != value); } 83 inline bool operator!=(unsigned int value) const { return (this->value_.uint_ != value); } 84 inline bool operator!=(char value) const { return (this->value_.char_ != value); } 85 inline bool operator!=(unsigned char value) const { return (this->value_.uchar_ != value); } 86 inline bool operator!=(short value) const { return (this->value_.short_ != value); } 87 inline bool operator!=(unsigned short value) const { return (this->value_.ushort_ != value); } 88 inline bool operator!=(long value) const { return (this->value_.long_ != value); } 89 inline bool operator!=(unsigned long value) const { return (this->value_.ulong_ != value); } 90 inline bool operator!=(float value) const { return (this->value_.float_ != value); } 91 inline bool operator!=(double value) const { return (this->value_.double_ != value); } 92 inline bool operator!=(long double value) const { return (this->value_.longdouble_ != value); } 93 inline bool operator!=(bool value) const { return (this->value_.bool_ != value); } 94 94 bool operator!=(const MultiTypePrimitive& mtp) const; 95 95
Note: See TracChangeset
for help on using the changeset viewer.