X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fconnection.cpp;h=8e122344c04bcca446958e0156d0a90e3f9c1585;hb=0fcc2d879e1e0ca17eeaceae2159f5143a06586f;hp=2dd8e2466e5e77b6d132c72acc9726f4efb64d24;hpb=676007c81e292079daaa7188f4fbf2757ae77ef8;p=architektonas diff --git a/src/connection.cpp b/src/connection.cpp index 2dd8e24..8e12234 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -8,7 +8,7 @@ // JLH = James Hammons // // Who When What -// --- ---------- ------------------------------------------------------------- +// --- ---------- ------------------------------------------------------------ // JLH 03/14/2013 Created this 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); +} +