Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2006, 11:45:21 PM (18 years ago)
Author:
bensch
Message:

new_class_id: adapted Network

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/lang/new_class_id.h

    r9685 r9691  
    1717  NewClassID(int id, const std::string& name) : _id(id), _name(name) { };
    1818  // the copy constructor is also defined.
    19   int id() const { return _id; };
     19  const int& id() const { return _id; };
    2020  const std::string& name() const { return _name; };
    2121
     
    2323  bool operator==(int id) const { return _id == id; };
    2424  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; };
    2528
    2629private:
Note: See TracChangeset for help on using the changeset viewer.