]> Shamusworld >> Repos - architektonas/blobdiff - src/connection.cpp
Fixed duplicate Connection issue.
[architektonas] / src / connection.cpp
index 2dd8e2466e5e77b6d132c72acc9726f4efb64d24..7170c460c6d983e897711e8f0cb573c3d65b86d4 100644 (file)
@@ -26,3 +26,17 @@ Connection::~Connection()
 {
 }
 
+
+// Check for equality
+bool Connection::operator==(Connection const c)
+{
+       return (object == c.object) && (t == c.t);
+}
+
+
+// Check for inequality
+bool Connection::operator!=(Connection const c)
+{
+       return (object != c.object) || (t != c.t);
+}
+