Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6643 in orxonox.OLD for trunk/src/lib/util/multi_type.h


Ignore:
Timestamp:
Jan 21, 2006, 3:04:40 PM (18 years ago)
Author:
bensch
Message:

trunk: MultiType comparisons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/multi_type.h

    r5659 r6643  
    4242    virtual ~MultiType();
    4343
    44     MultiType& operator= (const MultiType& mt);
     44    MultiType& operator=(const MultiType& mt);
     45    bool operator==(const MultiType& mt) const;
     46    bool operator==(bool value) const { return this->getBool() == value; };
     47    bool operator==(int value)const { return this->getInt() == value; };
     48    bool operator==(float value)const { return this->getFloat() ==  value; };
     49    bool operator==(char value) const { return this->getChar() == value; };
     50    bool operator==(const char* value) const;
    4551
    4652    void setType(int type);
Note: See TracChangeset for help on using the changeset viewer.