// 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);
+}