]> Shamusworld >> Repos - architektonas/blobdiff - src/connection.cpp
Whitespace changes. :-P
[architektonas] / src / connection.cpp
index 2dd8e2466e5e77b6d132c72acc9726f4efb64d24..f1ab3848f0004f4999dcfce2fdde21de13c2ba35 100644 (file)
@@ -8,21 +8,30 @@
 // JLH = James Hammons <jlhamm@acm.org>
 //
 // Who  When        What
-// ---  ----------  -------------------------------------------------------------
+// ---  ----------  ------------------------------------------------------------
 // JLH  03/14/2013  Created this file
 //
 
 #include "connection.h"
 
-
 Connection::Connection(Object * o/*= NULL*/, double param/*= 0*/)
 {
        object = o;
        t = param;
 }
 
-
 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);
+}