X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fconnection.cpp;h=f1ab3848f0004f4999dcfce2fdde21de13c2ba35;hb=742d2aa9bb46bce4f690474fa22f5980e175e55e;hp=2dd8e2466e5e77b6d132c72acc9726f4efb64d24;hpb=676007c81e292079daaa7188f4fbf2757ae77ef8;p=architektonas diff --git a/src/connection.cpp b/src/connection.cpp index 2dd8e24..f1ab384 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -8,21 +8,30 @@ // JLH = James Hammons // // 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); +}