Changeset 9691 in orxonox.OLD for branches/new_class_id/src/lib/lang/new_class_id.h
- Timestamp:
- Aug 22, 2006, 11:45:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/lang/new_class_id.h
r9685 r9691 17 17 NewClassID(int id, const std::string& name) : _id(id), _name(name) { }; 18 18 // the copy constructor is also defined. 19 intid() const { return _id; };19 const int& id() const { return _id; }; 20 20 const std::string& name() const { return _name; }; 21 21 … … 23 23 bool operator==(int id) const { return _id == id; }; 24 24 bool operator==(const std::string& name) const { return _name == name; }; 25 bool operator!=(NewClassID id) const { return _id != id._id && _name != id._name; }; 26 bool operator!=(int id) const { return _id != id; }; 27 bool operator!=(const std::string& name) const { return _name != name; }; 25 28 26 29 private:
Note: See TracChangeset
for help on using the changeset viewer.