]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/types.h
Other comparsion functions for OID added
[stg.git] / projects / stargazer / plugins / other / smux / types.h
index 26d6e24fbc6c665ebf194f25b0891105b8f3a508..7d7adac2f6e70e5ebed0be7019b2d13c5244feae 100644 (file)
@@ -23,9 +23,12 @@ class OID {
 
         OID & operator=(const OID & rvalue);
         bool operator==(const OID & rvalue) const;
+        bool operator!=(const OID & rvalue) const { return !operator==(rvalue); }
         bool operator<(const OID & rvalue) const;
+        bool operator>(const OID & rvalue) const
+        { return !operator==(rvalue) && !operator<(rvalue); }
 
-        std::ostream & operator<<(std::ostream & stream) const;
+        friend std::ostream & operator<<(std::ostream & stream, const OID & oid);
 
     private:
         std::vector<unsigned> arcs;