return *this;
}
-bool QType::operator==(const QType &comp) const
-{
- return(comp.code==code);
-}
-
QType &QType::operator=(const string &s)
{
code=chartocode(s.c_str());
ar & code;
}
- bool operator==(const QType &) const; //!< equality operator
-
const string getName() const; //!< Get a string representation of this type
uint16_t getCode() const; //!< Get the integer representation of this type
typedef pair<string,uint16_t> namenum;
static vector<namenum> names;
+ inline bool operator==(const QType &comp) const {
+ return(comp.code==code);
+ }
+
+ inline bool operator!=(const QType &comp) const {
+ return(comp.code!=code);
+ }
+
+ inline bool operator==(QType::typeenum comp) const {
+ return(comp==code);
+ }
+
+ inline bool operator!=(QType::typeenum comp) const {
+ return(comp!=code);
+ }
+
private:
static class init {
public: