summaryrefslogtreecommitdiff
path: root/matlab/lib/+Ice/Connection.m
diff options
context:
space:
mode:
Diffstat (limited to 'matlab/lib/+Ice/Connection.m')
-rwxr-xr-xmatlab/lib/+Ice/Connection.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/matlab/lib/+Ice/Connection.m b/matlab/lib/+Ice/Connection.m
index efdd01700fa..7d747d9a2fa 100755
--- a/matlab/lib/+Ice/Connection.m
+++ b/matlab/lib/+Ice/Connection.m
@@ -21,6 +21,19 @@ classdef Connection < IceInternal.WrapperObject
obj = obj@IceInternal.WrapperObject(impl);
obj.communicator = communicator;
end
+ function r = eq(obj, other)
+ %
+ % Override == operator.
+ %
+ if isempty(other) || ~isa(other, 'Ice.Connection')
+ r = false;
+ else
+ %
+ % Call into C++ to compare the two objects.
+ %
+ r = obj.callWithResult_('equals', other.impl_);
+ end
+ end
function close(obj, mode)
obj.call_('close', mode);
end