7 #include <glibmm/thread.h>
16 bool operator== (const ID& other) const {
17 return _id == other._id;
20 bool operator!= (const ID& other) const {
21 return _id != other._id;
24 ID& operator= (std::string);
26 bool operator< (const ID& other) const {
27 return _id < other._id;
30 void print (char* buf) const;
31 std::string to_s() const;
33 static uint64_t counter() { return _counter; }
34 static void init_counter (uint64_t val) { _counter = val; }
39 int string_assign (std::string);
41 static Glib::Mutex* counter_lock;
42 static uint64_t _counter;
46 std::ostream& operator<< (std::ostream& ostr, const PBD::ID&);
48 #endif /* __pbd_id_h__ */