diff options
Diffstat (limited to 'matlab/lib')
-rw-r--r-- | matlab/lib/+Ice/Communicator.m | 36 | ||||
-rwxr-xr-x | matlab/lib/+Ice/Connection.m | 40 | ||||
-rwxr-xr-x | matlab/lib/+Ice/Endpoint.m | 6 | ||||
-rw-r--r-- | matlab/lib/+Ice/Future.m | 8 | ||||
-rw-r--r-- | matlab/lib/+Ice/InterfaceByValue.m | 4 | ||||
-rw-r--r-- | matlab/lib/+Ice/Logger.m | 12 | ||||
-rw-r--r-- | matlab/lib/+Ice/ObjectPrx.m | 132 | ||||
-rw-r--r-- | matlab/lib/+Ice/OutputStream.m | 2 | ||||
-rw-r--r-- | matlab/lib/+Ice/Properties.m | 26 | ||||
-rw-r--r-- | matlab/lib/+Ice/UnknownSlicedValue.m | 8 | ||||
-rw-r--r-- | matlab/lib/+Ice/UserException.m | 8 | ||||
-rw-r--r-- | matlab/lib/+Ice/Value.m | 16 | ||||
-rw-r--r-- | matlab/lib/+IceInternal/EncapsDecoder.m | 10 | ||||
-rw-r--r-- | matlab/lib/+IceInternal/EncapsDecoder10.m | 4 | ||||
-rw-r--r-- | matlab/lib/+IceInternal/EncapsDecoder11.m | 4 | ||||
-rw-r--r-- | matlab/lib/+IceInternal/EncapsEncoder10.m | 2 | ||||
-rw-r--r-- | matlab/lib/+IceInternal/EncapsEncoder11.m | 2 | ||||
-rw-r--r-- | matlab/lib/+IceInternal/WrapperObject.m | 24 |
18 files changed, 163 insertions, 181 deletions
diff --git a/matlab/lib/+Ice/Communicator.m b/matlab/lib/+Ice/Communicator.m index c79c70cb7a0..f608e5b7b9c 100644 --- a/matlab/lib/+Ice/Communicator.m +++ b/matlab/lib/+Ice/Communicator.m @@ -30,17 +30,17 @@ classdef Communicator < IceInternal.WrapperObject end end function destroy(obj) - obj.call_('destroy'); + obj.iceCall('destroy'); end function f = destroyAsync(obj) future = libpointer('voidPtr'); - obj.call_('destroyAsync', future); + obj.iceCall('destroyAsync', future); assert(~isNull(future)); - f = Ice.Future(future, 'destroy', 0, 'Ice_SimpleFuture', @(fut) fut.call_('check')); + f = Ice.Future(future, 'destroy', 0, 'Ice_SimpleFuture', @(fut) fut.iceCall('check')); end function r = stringToProxy(obj, str) impl = libpointer('voidPtr'); - obj.call_('stringToProxy', str, impl); + obj.iceCall('stringToProxy', str, impl); if isNull(impl) r = []; else @@ -58,7 +58,7 @@ classdef Communicator < IceInternal.WrapperObject end function r = propertyToProxy(obj, prop) impl = libpointer('voidPtr'); - obj.call_('propertyToProxy', prop, impl); + obj.iceCall('propertyToProxy', prop, impl); if isNull(impl) r = []; else @@ -71,16 +71,16 @@ classdef Communicator < IceInternal.WrapperObject elseif ~isa(proxy, 'Ice.ObjectPrx') throw(MException('Ice:ArgumentException', 'expecting a proxy')); else - r = obj.callWithResult_('proxyToProperty', proxy.getImpl_(), prop); + r = obj.iceCallWithResult('proxyToProperty', proxy.iceGetImpl(), prop); end end function r = identityToString(obj, id) - r = obj.callWithResult_('identityToString', id); + r = obj.iceCallWithResult('identityToString', id); end function r = getProperties(obj) if isempty(obj.properties_) impl = libpointer('voidPtr'); - obj.call_('getProperties', impl); + obj.iceCall('getProperties', impl); obj.properties_ = Ice.Properties(impl); end r = obj.properties_; @@ -88,14 +88,14 @@ classdef Communicator < IceInternal.WrapperObject function r = getLogger(obj) if isempty(obj.logger) impl = libpointer('voidPtr'); - obj.call_('getLogger', impl); + obj.iceCall('getLogger', impl); obj.logger = Ice.Logger(impl); end r = obj.logger; end function r = getDefaultRouter(obj) impl = libpointer('voidPtr'); - obj.call_('getDefaultRouter', impl); + obj.iceCall('getDefaultRouter', impl); if ~isNull(impl) r = Ice.RouterPrx(impl, obj); else @@ -108,13 +108,13 @@ classdef Communicator < IceInternal.WrapperObject elseif ~isa(proxy, 'Ice.RouterPrx') throw(MException('Ice:ArgumentException', 'expecting a router proxy')); else - impl = proxy.getImpl_(); + impl = proxy.iceGetImpl(); end - obj.call_('setDefaultRouter', impl); + obj.iceCall('setDefaultRouter', impl); end function r = getDefaultLocator(obj) impl = libpointer('voidPtr'); - obj.call_('getDefaultLocator', impl); + obj.iceCall('getDefaultLocator', impl); if ~isNull(impl) r = Ice.LocatorPrx(impl, obj); else @@ -127,21 +127,21 @@ classdef Communicator < IceInternal.WrapperObject elseif ~isa(proxy, 'Ice.LocatorPrx') throw(MException('Ice:ArgumentException', 'expecting a locator proxy')); else - impl = proxy.getImpl_(); + impl = proxy.iceGetImpl(); end - obj.call_('setDefaultLocator', impl); + obj.iceCall('setDefaultLocator', impl); end function r = getValueFactoryManager(obj) r = obj.initData.valueFactoryManager; end function flushBatchRequests(obj, mode) - obj.call_('flushBatchRequests', mode); + obj.iceCall('flushBatchRequests', mode); end function f = flushBatchRequestsAsync(obj, mode) future = libpointer('voidPtr'); - obj.call_('flushBatchRequestsAsync', mode, future); + obj.iceCall('flushBatchRequestsAsync', mode, future); assert(~isNull(future)); - r = Ice.Future(future, 'flushBatchRequests', 0, 'Ice_SimpleFuture', @(fut) fut.call_('check')); + r = Ice.Future(future, 'flushBatchRequests', 0, 'Ice_SimpleFuture', @(fut) fut.iceCall('check')); end function r = getClassResolver(obj) if isempty(obj.classResolver) % Lazy initialization. diff --git a/matlab/lib/+Ice/Connection.m b/matlab/lib/+Ice/Connection.m index 7d747d9a2fa..1162c7e3853 100755 --- a/matlab/lib/+Ice/Connection.m +++ b/matlab/lib/+Ice/Connection.m @@ -31,45 +31,45 @@ classdef Connection < IceInternal.WrapperObject %
% Call into C++ to compare the two objects.
%
- r = obj.callWithResult_('equals', other.impl_);
+ r = obj.iceCallWithResult('equals', other.impl_);
end
end
function close(obj, mode)
- obj.call_('close', mode);
+ obj.iceCall('close', mode);
end
function f = closeAsync(obj)
future = libpointer('voidPtr');
- obj.call_('closeAsync', future);
+ obj.iceCall('closeAsync', future);
assert(~isNull(future));
- f = Ice.Future(future, 'close', 0, 'Ice_SimpleFuture', @(fut) fut.call_('check'));
+ f = Ice.Future(future, 'close', 0, 'Ice_SimpleFuture', @(fut) fut.iceCall('check'));
end
function r = createProxy(obj, id)
proxy = libpointer('voidPtr');
- obj.call_('createProxy', id, proxy);
+ obj.iceCall('createProxy', id, proxy);
r = Ice.ObjectPrx(obj.communicator, obj.communicator.getEncoding(), proxy);
end
function r = getEndpoint(obj)
endpoint = libpointer('voidPtr');
- obj.call_('getEndpoint', endpoint);
+ obj.iceCall('getEndpoint', endpoint);
r = Ice.Endpoint(endpoint);
end
function flushBatchRequests(obj, compress)
- obj.call_('flushBatchRequests', compress);
+ obj.iceCall('flushBatchRequests', compress);
end
function r = flushBatchRequestsAsync(obj)
future = libpointer('voidPtr');
- obj.call_('flushBatchRequestsAsync', future);
+ obj.iceCall('flushBatchRequestsAsync', future);
assert(~isNull(future));
- r = Ice.Future(future, 'flushBatchRequests', 0, 'Ice_SimpleFuture', @(fut) fut.call_('check'));
+ r = Ice.Future(future, 'flushBatchRequests', 0, 'Ice_SimpleFuture', @(fut) fut.iceCall('check'));
end
function heartbeat(obj)
- obj.call_('heartbeat');
+ obj.iceCall('heartbeat');
end
function r = heartbeatAsync(obj)
future = libpointer('voidPtr');
- obj.call_('heartbeatAsync', future);
+ obj.iceCall('heartbeatAsync', future);
assert(~isNull(future));
- r = Ice.Future(future, 'heartbeat', 0, 'Ice_SimpleFuture', @(fut) fut.call_('check'));
+ r = Ice.Future(future, 'heartbeat', 0, 'Ice_SimpleFuture', @(fut) fut.iceCall('check'));
end
function setACM(obj, timeout, close, heartbeat)
if timeout == Ice.Unset
@@ -81,10 +81,10 @@ classdef Connection < IceInternal.WrapperObject if heartbeat == Ice.Unset
heartbeat = [];
end
- obj.call_('setACM', timeout, close, heartbeat);
+ obj.iceCall('setACM', timeout, close, heartbeat);
end
function r = getACM(obj)
- r = obj.callWithResult_('getACM');
+ r = obj.iceCallWithResult('getACM');
if isempty(r.timeout)
r.timeout = Ice.Unset;
end
@@ -96,23 +96,23 @@ classdef Connection < IceInternal.WrapperObject end
end
function r = type(obj)
- r = obj.callWithResult_('type');
+ r = obj.iceCallWithResult('type');
end
function r = timeout(obj)
- r = obj.callWithResult_('timeout');
+ r = obj.iceCallWithResult('timeout');
end
function r = toString(obj)
- r = obj.callWithResult_('toString');
+ r = obj.iceCallWithResult('toString');
end
function r = getInfo(obj)
- info = obj.callWithResult_('getInfo');
+ info = obj.iceCallWithResult('getInfo');
r = obj.createConnectionInfo(info);
end
function setBufferSize(obj, rcvSize, sndSize)
- obj.call_('setBufferSize', rcvSize, sndSize);
+ obj.iceCall('setBufferSize', rcvSize, sndSize);
end
function throwException(obj)
- obj.call_('throwException');
+ obj.iceCall('throwException');
end
end
diff --git a/matlab/lib/+Ice/Endpoint.m b/matlab/lib/+Ice/Endpoint.m index 4bf46ea2c82..51771a29d46 100755 --- a/matlab/lib/+Ice/Endpoint.m +++ b/matlab/lib/+Ice/Endpoint.m @@ -27,14 +27,14 @@ classdef Endpoint < IceInternal.WrapperObject %
% Call into C++ to compare the two objects.
%
- r = obj.callWithResult_('equals', other.impl_);
+ r = obj.iceCallWithResult('equals', other.impl_);
end
end
function r = toString(obj)
- r = obj.callWithResult_('toString');
+ r = obj.iceCallWithResult('toString');
end
function r = getInfo(obj)
- info = obj.callWithResult_('getInfo');
+ info = obj.iceCallWithResult('getInfo');
r = obj.createEndpointInfo(info);
end
end
diff --git a/matlab/lib/+Ice/Future.m b/matlab/lib/+Ice/Future.m index 10575e0fc5f..1e788f08f5b 100644 --- a/matlab/lib/+Ice/Future.m +++ b/matlab/lib/+Ice/Future.m @@ -41,14 +41,14 @@ classdef Future < IceInternal.WrapperObject end function delete(obj) if ~isempty(obj.impl_) - obj.call_('_release'); + obj.iceCall('unref'); end obj.impl_ = []; end function ok = wait(obj) if ~isempty(obj.impl_) okPtr = libpointer('uint8Ptr', 0); % Output param - obj.call_('wait', okPtr); + obj.iceCall('wait', okPtr); ok = okPtr.Value == 1; else ok = true; @@ -75,12 +75,12 @@ classdef Future < IceInternal.WrapperObject end function cancel(obj) if ~isempty(obj.impl_) - obj.call_('cancel'); + obj.iceCall('cancel'); end end function r = get.State(obj) if ~isempty(obj.impl_) - obj.State = obj.callWithResult_('state'); + obj.State = obj.iceCallWithResult('state'); r = obj.State; else r = 'finished'; diff --git a/matlab/lib/+Ice/InterfaceByValue.m b/matlab/lib/+Ice/InterfaceByValue.m index dd79318cb35..4c79fa8e0b0 100644 --- a/matlab/lib/+Ice/InterfaceByValue.m +++ b/matlab/lib/+Ice/InterfaceByValue.m @@ -19,11 +19,11 @@ classdef InterfaceByValue < Ice.Value end end methods(Access=protected) - function iceWriteImpl_(obj, os) + function iceWriteImpl(obj, os) os.startSlice(obj.id, -1, true); os.endSlice(); end - function iceReadImpl_(obj, is) + function iceReadImpl(obj, is) is.startSlice(); is.endSlice(); end diff --git a/matlab/lib/+Ice/Logger.m b/matlab/lib/+Ice/Logger.m index e5ce7a357c1..5dc5facc0e3 100644 --- a/matlab/lib/+Ice/Logger.m +++ b/matlab/lib/+Ice/Logger.m @@ -18,23 +18,23 @@ classdef Logger < IceInternal.WrapperObject obj = obj@IceInternal.WrapperObject(impl); end function print(obj, message) - obj.call_('print', message); + obj.iceCall('print', message); end function trace(obj, category, message) - obj.call_('trace', category, message); + obj.iceCall('trace', category, message); end function warning(obj, message) - obj.call_('warning', message); + obj.iceCall('warning', message); end function error(obj, message) - obj.call_('error', message); + obj.iceCall('error', message); end function r = getPrefix(obj) - r = obj.callWithResult_('getPrefix'); + r = obj.iceCallWithResult('getPrefix'); end function r = cloneWithPrefix(obj, prefix) impl = libpointer('voidPtr'); - obj.call_('cloneWithPrefix', prefix, impl); + obj.iceCall('cloneWithPrefix', prefix, impl); if isNull(impl) r = obj; else diff --git a/matlab/lib/+Ice/ObjectPrx.m b/matlab/lib/+Ice/ObjectPrx.m index fa41016b7e5..a92027f2218 100644 --- a/matlab/lib/+Ice/ObjectPrx.m +++ b/matlab/lib/+Ice/ObjectPrx.m @@ -20,13 +20,13 @@ classdef ObjectPrx < IceInternal.WrapperObject end if ~isempty(impl) - obj.isTwoway = obj.callWithResult_('ice_isTwoway'); + obj.isTwoway = obj.iceCallWithResult('ice_isTwoway'); end end function delete(obj) if ~isempty(obj.impl_) - obj.call_('_release'); + obj.iceCall('unref'); obj.impl_ = []; end end @@ -48,7 +48,7 @@ classdef ObjectPrx < IceInternal.WrapperObject % obj.instantiate_(); other.instantiate_(); - r = obj.callWithResult_('equals', other.impl_); + r = obj.iceCallWithResult('equals', other.impl_); end end @@ -58,7 +58,7 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_toString(obj) obj.instantiate_(); - r = obj.callWithResult_('ice_toString'); + r = obj.iceCallWithResult('ice_toString'); end function r = ice_getCommunicator(obj) @@ -66,37 +66,37 @@ classdef ObjectPrx < IceInternal.WrapperObject end function ice_ping(obj, varargin) - obj.invoke_('ice_ping', 1, false, [], false, {}, varargin{:}); + obj.iceInvoke('ice_ping', 1, false, [], false, {}, varargin{:}); end function r = ice_pingAsync(obj, varargin) - r = obj.invokeAsync_('ice_ping', 1, false, [], 0, [], {}, varargin{:}); + r = obj.iceInvokeAsync('ice_ping', 1, false, [], 0, [], {}, varargin{:}); end function r = ice_isA(obj, id, varargin) - os = obj.startWriteParams_([]); + os = obj.iceStartWriteParams([]); os.writeString(id); - obj.endWriteParams_(os); - is = obj.invoke_('ice_isA', 1, true, os, true, {}, varargin{:}); + obj.iceEndWriteParams(os); + is = obj.iceInvoke('ice_isA', 1, true, os, true, {}, varargin{:}); is.startEncapsulation(); r = is.readBool(); is.endEncapsulation(); end function r = ice_isAAsync(obj, id, varargin) - os = obj.startWriteParams_([]); + os = obj.iceStartWriteParams([]); os.writeString(id); - obj.endWriteParams_(os); + obj.iceEndWriteParams(os); function varargout = unmarshal(is) is.startEncapsulation(); varargout{1} = is.readBool(); is.endEncapsulation(); end - r = obj.invokeAsync_('ice_isA', 1, true, os, 1, @unmarshal, {}, varargin{:}); + r = obj.iceInvokeAsync('ice_isA', 1, true, os, 1, @unmarshal, {}, varargin{:}); end function r = ice_id(obj, varargin) - is = obj.invoke_('ice_id', 1, true, [], true, {}, varargin{:}); + is = obj.iceInvoke('ice_id', 1, true, [], true, {}, varargin{:}); is.startEncapsulation(); r = is.readString(); is.endEncapsulation(); @@ -108,11 +108,11 @@ classdef ObjectPrx < IceInternal.WrapperObject varargout{1} = is.readString(); is.endEncapsulation(); end - r = obj.invokeAsync_('ice_id', 1, true, [], 1, @unmarshal, {}, varargin{:}); + r = obj.iceInvokeAsync('ice_id', 1, true, [], 1, @unmarshal, {}, varargin{:}); end function r = ice_ids(obj, varargin) - is = obj.invoke_('ice_ids', 1, true, [], true, {}, varargin{:}); + is = obj.iceInvoke('ice_ids', 1, true, [], true, {}, varargin{:}); is.startEncapsulation(); r = is.readStringSeq(); is.endEncapsulation(); @@ -124,12 +124,12 @@ classdef ObjectPrx < IceInternal.WrapperObject varargout{1} = is.readStringSeq(); is.endEncapsulation(); end - r = obj.invokeAsync_('ice_ids', 1, true, [], 1, @unmarshal, {}, varargin{:}); + r = obj.iceInvokeAsync('ice_ids', 1, true, [], 1, @unmarshal, {}, varargin{:}); end function r = ice_getIdentity(obj) obj.instantiate_(); - r = obj.callWithResult_('ice_getIdentity'); + r = obj.iceCallWithResult('ice_getIdentity'); end function r = ice_identity(obj, id) @@ -138,7 +138,7 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getContext(obj) obj.instantiate_(); - r = obj.callWithResult_('ice_getContext'); + r = obj.iceCallWithResult('ice_getContext'); end function r = ice_context(obj, ctx) @@ -147,7 +147,7 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getFacet(obj) obj.instantiate_(); - r = obj.callWithResult_('ice_getFacet'); + r = obj.iceCallWithResult('ice_getFacet'); end function r = ice_facet(obj, f) @@ -156,7 +156,7 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getAdapterId(obj) obj.instantiate_(); - r = obj.callWithResult_('ice_getAdapterId'); + r = obj.iceCallWithResult('ice_getAdapterId'); end function r = ice_adapterId(obj, id) @@ -165,11 +165,11 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getEndpoints(obj) obj.instantiate_(); - num = obj.callWithResult_('ice_getNumEndpoints'); + num = obj.iceCallWithResult('ice_getNumEndpoints'); r = {}; for i = 1:num impl = libpointer('voidPtr'); - e = obj.callWithResult_('ice_getEndpoint', i - 1, impl); % C-style index + e = obj.iceCallWithResult('ice_getEndpoint', i - 1, impl); % C-style index assert(~isNull(impl)); r{i} = Ice.Endpoint(impl); end @@ -187,16 +187,16 @@ classdef ObjectPrx < IceInternal.WrapperObject end end arr = libpointer('voidPtr'); - obj.call_('ice_createEndpointList', length(endpts), arr); + obj.iceCall('ice_createEndpointList', length(endpts), arr); for i = 1:length(endpts) - obj.call_('ice_setEndpoint', arr, i - 1, endpts{i}.impl_); % C-style index + obj.iceCall('ice_setEndpoint', arr, i - 1, endpts{i}.impl_); % C-style index end r = obj.factory_('ice_endpoints', true, arr); % The C function also destroys the temporary array. end function r = ice_getLocatorCacheTimeout(obj) obj.instantiate_(); - r = obj.callWithResult_('ice_getLocatorCacheTimeout'); + r = obj.iceCallWithResult('ice_getLocatorCacheTimeout'); end function r = ice_locatorCacheTimeout(obj, t) @@ -205,7 +205,7 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getInvocationTimeout(obj) obj.instantiate_(); - r = obj.callWithResult_('ice_getInvocationTimeout'); + r = obj.iceCallWithResult('ice_getInvocationTimeout'); end function r = ice_invocationTimeout(obj, t) @@ -214,7 +214,7 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getConnectionId(obj) obj.instantiate_(); - r = obj.callWithResult_('ice_getConnectionId'); + r = obj.iceCallWithResult('ice_getConnectionId'); end function r = ice_connectionId(obj, id) @@ -222,7 +222,7 @@ classdef ObjectPrx < IceInternal.WrapperObject end function r = ice_isConnectionCached(obj) - r = obj.callWithResult_('ice_isConnectionCached'); + r = obj.iceCallWithResult('ice_isConnectionCached'); end function r = ice_connectionCached(obj, b) @@ -236,7 +236,7 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getEndpointSelection(obj) obj.instantiate_(); - r = obj.callWithResult_('ice_getEndpointSelection'); + r = obj.iceCallWithResult('ice_getEndpointSelection'); end function r = ice_endpointSelection(obj, t) @@ -255,7 +255,7 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getRouter(obj) obj.instantiate_(); v = libpointer('voidPtr'); - obj.call_('ice_getRouter', v); + obj.iceCall('ice_getRouter', v); if isNull(v) r = []; else @@ -275,7 +275,7 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getLocator(obj) obj.instantiate_(); v = libpointer('voidPtr'); - obj.call_('ice_getLocator', v); + obj.iceCall('ice_getLocator', v); if isNull(v) r = []; else @@ -293,7 +293,7 @@ classdef ObjectPrx < IceInternal.WrapperObject end function r = ice_isSecure(obj) - r = obj.callWithResult_('ice_isSecure'); + r = obj.iceCallWithResult('ice_isSecure'); end function r = ice_secure(obj, b) @@ -306,7 +306,7 @@ classdef ObjectPrx < IceInternal.WrapperObject end function r = ice_isPreferSecure(obj) - r = obj.callWithResult_('ice_isPreferSecure'); + r = obj.iceCallWithResult('ice_isPreferSecure'); end function r = ice_preferSecure(obj, b) @@ -327,7 +327,7 @@ classdef ObjectPrx < IceInternal.WrapperObject end function r = ice_isOneway(obj) - r = obj.callWithResult_('ice_isOneway'); + r = obj.iceCallWithResult('ice_isOneway'); end function r = ice_oneway(obj) @@ -335,7 +335,7 @@ classdef ObjectPrx < IceInternal.WrapperObject end function r = ice_isBatchOneway(obj) - r = obj.callWithResult_('ice_isBatchOneway'); + r = obj.iceCallWithResult('ice_isBatchOneway'); end function r = ice_batchOneway(obj) @@ -343,7 +343,7 @@ classdef ObjectPrx < IceInternal.WrapperObject end function r = ice_isDatagram(obj) - r = obj.callWithResult_('ice_isDatagram'); + r = obj.iceCallWithResult('ice_isDatagram'); end function r = ice_datagram(obj) @@ -351,7 +351,7 @@ classdef ObjectPrx < IceInternal.WrapperObject end function r = ice_isBatchDatagram(obj) - r = obj.callWithResult_('ice_isBatchDatagram'); + r = obj.iceCallWithResult('ice_isBatchDatagram'); end function r = ice_batchDatagram(obj) @@ -374,7 +374,7 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getConnection(obj) obj.instantiate_(); v = libpointer('voidPtr'); - obj.call_('ice_getConnection', v); + obj.iceCall('ice_getConnection', v); if isNull(v) r = []; else @@ -385,11 +385,11 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getConnectionAsync(obj) obj.instantiate_(); future = libpointer('voidPtr'); - obj.call_('ice_getConnectionAsync', future); + obj.iceCall('ice_getConnectionAsync', future); assert(~isNull(future)); function varargout = fetch(f) con = libpointer('voidPtr', 0); % Output param - f.call_('fetch', con); + f.iceCall('fetch', con); assert(~isNull(con)); varargout{1} = Ice.Connection(con); end @@ -399,7 +399,7 @@ classdef ObjectPrx < IceInternal.WrapperObject function r = ice_getCachedConnection(obj) obj.instantiate_(); v = libpointer('voidPtr'); - obj.call_('ice_getCachedConnection', v); + obj.iceCall('ice_getCachedConnection', v); if isNull(v) r = []; else @@ -409,46 +409,46 @@ classdef ObjectPrx < IceInternal.WrapperObject function ice_flushBatchRequests(obj) obj.instantiate_(); - obj.call_('ice_flushBatchRequests'); + obj.iceCall('ice_flushBatchRequests'); end function r = ice_flushBatchRequestsAsync(obj) obj.instantiate_(); future = libpointer('voidPtr'); - obj.call_('ice_flushBatchRequestsAsync', future); + obj.iceCall('ice_flushBatchRequestsAsync', future); assert(~isNull(future)); - r = Ice.Future(future, 'ice_flushBatchRequests', 0, 'Ice_SimpleFuture', @(fut) fut.call_('check')); + r = Ice.Future(future, 'ice_flushBatchRequests', 0, 'Ice_SimpleFuture', @(fut) fut.iceCall('check')); end end methods(Hidden=true) - function write_(obj, os, encoding) + function iceWrite(obj, os, encoding) % % If we don't yet have a byte buffer representing the marshaled form of the proxy, then call into % C++ to marshal the proxy and then cache the bytes. % if isempty(obj.bytes) - obj.bytes = obj.callWithResult_('write', obj.communicator.impl_, encoding); + obj.bytes = obj.iceCallWithResult('write', obj.communicator.impl_, encoding); end os.writeBlob(obj.bytes); end - function r = getImpl_(obj) + function r = iceGetImpl(obj) obj.instantiate_(); r = obj.impl_; end end methods(Access=protected) - function os = startWriteParams_(obj, format) + function os = iceStartWriteParams(obj, format) os = obj.ice_createOutputStream(); os.startEncapsulation(format); end - function endWriteParams_(obj, os) + function iceEndWriteParams(obj, os) os.endEncapsulation(); end - function is = invoke_(obj, op, mode, twowayOnly, os, hasOutParams, exceptions, varargin) + function is = iceInvoke(obj, op, mode, twowayOnly, os, hasOutParams, exceptions, varargin) if isempty(obj.impl_) obj.instantiate_(); end @@ -475,7 +475,7 @@ classdef ObjectPrx < IceInternal.WrapperObject % % Avoid the string concatenation % - % res = obj.callWithResult_('ice_invoke', op, mode, buf, size, varargin{1}); + % res = obj.iceCallWithResult('ice_invoke', op, mode, buf, size, varargin{1}); % res = IceInternal.Util.callWithResult('Ice_ObjectPrx_ice_invoke', obj.impl_, op, mode, buf, ... size, varargin{1}); @@ -483,7 +483,7 @@ classdef ObjectPrx < IceInternal.WrapperObject % % Avoid the string concatenation % - % res = obj.callWithResult_('ice_invokeNC', op, mode, buf, size); + % res = obj.iceCallWithResult('ice_invokeNC', op, mode, buf, size); % res = IceInternal.Util.callWithResult('Ice_ObjectPrx_ice_invokeNC', obj.impl_, op, mode, buf, size); end @@ -501,7 +501,7 @@ classdef ObjectPrx < IceInternal.WrapperObject if obj.isTwoway if ~res.ok - obj.throwUserException_(is, exceptions{:}); + obj.iceThrowUserException(is, exceptions{:}); elseif ~hasOutParams is.skipEmptyEncapsulation(); end @@ -511,7 +511,7 @@ classdef ObjectPrx < IceInternal.WrapperObject end end - function fut = invokeAsync_(obj, op, mode, twowayOnly, os, numOutArgs, unmarshalFunc, exceptions, varargin) + function fut = iceInvokeAsync(obj, op, mode, twowayOnly, os, numOutArgs, unmarshalFunc, exceptions, varargin) if isempty(obj.impl_) obj.instantiate_(); end @@ -529,12 +529,12 @@ classdef ObjectPrx < IceInternal.WrapperObject % % Avoid the string concatenation % - % res = f.callWithResult_('results'); + % res = f.iceCallWithResult('results'); % res = IceInternal.Util.callWithResult('Ice_InvocationFuture_results', f.impl_); is = Ice.InputStream(obj.communicator, obj.encoding, IceInternal.Buffer(res.params)); if ~res.ok - obj.throwUserException_(is, exceptions{:}); + obj.iceThrowUserException(is, exceptions{:}); end if isempty(unmarshalFunc) is.skipEmptyEncapsulation(); @@ -547,7 +547,7 @@ classdef ObjectPrx < IceInternal.WrapperObject % % Avoid the string concatenation % - % f.call_('check'); + % f.iceCall('check'); % IceInternal.Util.call('Ice_InvocationFuture_check', f.impl_); end @@ -576,7 +576,7 @@ classdef ObjectPrx < IceInternal.WrapperObject % % Avoid the string concatenation % - % obj.call_('ice_invokeAsync', op, mode, buf, size, varargin{1}, futPtr); + % obj.iceCall('ice_invokeAsync', op, mode, buf, size, varargin{1}, futPtr); % IceInternal.Util.call('Ice_ObjectPrx_ice_invokeAsync', obj.impl_, op, mode, buf, size, ... varargin{1}, futPtr); @@ -584,7 +584,7 @@ classdef ObjectPrx < IceInternal.WrapperObject % % Avoid the string concatenation % - % obj.call_('ice_invokeAsyncNC', op, mode, buf, size, futPtr); + % obj.iceCall('ice_invokeAsyncNC', op, mode, buf, size, futPtr); % IceInternal.Util.call('Ice_ObjectPrx_ice_invokeAsyncNC', obj.impl_, op, mode, buf, size, futPtr); end @@ -595,7 +595,7 @@ classdef ObjectPrx < IceInternal.WrapperObject end end - function throwUserException_(obj, is, varargin) % Varargs are user exception type names + function iceThrowUserException(obj, is, varargin) % Varargs are user exception type names try is.startEncapsulation(); is.throwException(); @@ -625,7 +625,7 @@ classdef ObjectPrx < IceInternal.WrapperObject if length(varargin) == 0 r = p; else - r = Ice.ObjectPrx.checkedCast_(p, Ice.ObjectPrx.ice_staticId(), 'Ice.ObjectPrx', varargin{:}); + r = Ice.ObjectPrx.iceCheckedCast(p, Ice.ObjectPrx.ice_staticId(), 'Ice.ObjectPrx', varargin{:}); end end @@ -645,7 +645,7 @@ classdef ObjectPrx < IceInternal.WrapperObject end methods(Static,Access=protected) - function r = checkedCast_(p, id, cls, varargin) + function r = iceCheckedCast(p, id, cls, varargin) try hasFacet = false; facet = []; @@ -686,7 +686,7 @@ classdef ObjectPrx < IceInternal.WrapperObject end end - function r = uncheckedCast_(p, cls, varargin) + function r = iceUncheckedCast(p, cls, varargin) hasFacet = false; facet = []; if length(varargin) == 1 @@ -732,7 +732,7 @@ classdef ObjectPrx < IceInternal.WrapperObject obj.impl_ = impl; % Cache the twoway status - obj.isTwoway = obj.callWithResult_('ice_isTwoway'); + obj.isTwoway = obj.iceCallWithResult('ice_isTwoway'); end end @@ -745,7 +745,7 @@ classdef ObjectPrx < IceInternal.WrapperObject obj.instantiate_(); newImpl = libpointer('voidPtr'); - obj.call_(op, newImpl, varargin{:}); + obj.iceCall(op, newImpl, varargin{:}); if isNull(newImpl) r = obj; elseif keepType @@ -772,7 +772,7 @@ classdef ObjectPrx < IceInternal.WrapperObject % obj.instantiate_(); implPtr = libpointer('voidPtr'); % Output param - obj.call_('clone', implPtr); + obj.iceCall('clone', implPtr); r = implPtr; end end diff --git a/matlab/lib/+Ice/OutputStream.m b/matlab/lib/+Ice/OutputStream.m index 4e5c0512694..1cca8041697 100644 --- a/matlab/lib/+Ice/OutputStream.m +++ b/matlab/lib/+Ice/OutputStream.m @@ -301,7 +301,7 @@ classdef OutputStream < handle % Ice.Identity.ice_write(obj, []); else - v.write_(obj, obj.getEncoding()); + v.iceWrite(obj, obj.getEncoding()); end end function writeProxyOpt(obj, tag, v) diff --git a/matlab/lib/+Ice/Properties.m b/matlab/lib/+Ice/Properties.m index 0975ca25b7b..9710004a4f3 100644 --- a/matlab/lib/+Ice/Properties.m +++ b/matlab/lib/+Ice/Properties.m @@ -18,48 +18,48 @@ classdef Properties < IceInternal.WrapperObject obj = obj@IceInternal.WrapperObject(impl); end function r = getProperty(obj, key) - r = obj.callWithResult_('getProperty', key); + r = obj.iceCallWithResult('getProperty', key); end function r = getPropertyWithDefault(obj, key, def) - r = obj.callWithResult_('getPropertyWithDefault', key, def); + r = obj.iceCallWithResult('getPropertyWithDefault', key, def); end function r = getPropertyAsInt(obj, key) v = libpointer('int32Ptr', 0); - obj.call_('getPropertyAsInt', key, v); + obj.iceCall('getPropertyAsInt', key, v); r = v.Value; end function r = getPropertyAsIntWithDefault(obj, key, def) v = libpointer('int32Ptr', 0); - obj.call_('getPropertyAsIntWithDefault', key, def, v); + obj.iceCall('getPropertyAsIntWithDefault', key, def, v); r = v.Value; end function r = getPropertyAsList(obj, key) - r = obj.callWithResult_('getPropertyAsList', key); + r = obj.iceCallWithResult('getPropertyAsList', key); end function r = getPropertyAsListWithDefault(obj, key, def) - r = obj.callWithResult_('getPropertyAsListWithDefault', key, def); + r = obj.iceCallWithResult('getPropertyAsListWithDefault', key, def); end function r = getPropertiesForPrefix(obj, prefix) - r = obj.callWithResult_('getPropertiesForPrefix', prefix); + r = obj.iceCallWithResult('getPropertiesForPrefix', prefix); end function setProperty(obj, key, value) - obj.call_('setProperty', key, value); + obj.iceCall('setProperty', key, value); end function r = getCommandLineOptions(obj) - r = obj.callWithResult_('getCommandLineOptions'); + r = obj.iceCallWithResult('getCommandLineOptions'); end function r = parseCommandLineOptions(obj, prefix, options) - r = obj.callWithResult_('parseCommandLineOptions', prefix, options); + r = obj.iceCallWithResult('parseCommandLineOptions', prefix, options); end function r = parseIceCommandLineOptions(obj, options) - r = obj.callWithResult_('parseIceCommandLineOptions', options); + r = obj.iceCallWithResult('parseIceCommandLineOptions', options); end function load(obj, file) - obj.call_('load', file); + obj.iceCall('load', file); end function r = clone(obj) impl = libpointer('voidPtr'); - obj.call_('clone', impl); + obj.iceCall('clone', impl); r = Ice.Properties(impl); end end diff --git a/matlab/lib/+Ice/UnknownSlicedValue.m b/matlab/lib/+Ice/UnknownSlicedValue.m index c945dfa2417..684651e018c 100644 --- a/matlab/lib/+Ice/UnknownSlicedValue.m +++ b/matlab/lib/+Ice/UnknownSlicedValue.m @@ -20,11 +20,11 @@ classdef UnknownSlicedValue < Ice.Value function r = ice_getSlicedData(obj) r = obj.slicedData; end - function iceWrite_(obj, os) + function iceWrite(obj, os) os.startValue(obj.slicedData); os.endValue(); end - function obj = iceRead_(obj, is) + function obj = iceRead(obj, is) is.startValue(); obj.slicedData = is.endValue(true); end @@ -33,9 +33,9 @@ classdef UnknownSlicedValue < Ice.Value end end methods(Access=protected) - function iceWriteImpl_(obj, os) + function iceWriteImpl(obj, os) end - function obj = iceReadImpl_(obj, is) + function obj = iceReadImpl(obj, is) end end properties(Access=private) diff --git a/matlab/lib/+Ice/UserException.m b/matlab/lib/+Ice/UserException.m index 169ffd4f120..d44603f550e 100644 --- a/matlab/lib/+Ice/UserException.m +++ b/matlab/lib/+Ice/UserException.m @@ -19,18 +19,18 @@ classdef (Abstract) UserException < Ice.Exception end end methods(Hidden=true) - function obj = read_(obj, is) + function obj = iceRead(obj, is) is.startException(); - obj = obj.readImpl_(is); + obj = obj.iceReadImpl(is); is.endException(false); end - function obj = postUnmarshal_(obj) + function obj = icePostUnmarshal(obj) % % Overridden by subclasses that have class members. % end end methods(Abstract,Access=protected) - obj = readImpl_(obj, is) + obj = iceReadImpl(obj, is) end end diff --git a/matlab/lib/+Ice/Value.m b/matlab/lib/+Ice/Value.m index 4c3aee4d61e..480e653cebb 100644 --- a/matlab/lib/+Ice/Value.m +++ b/matlab/lib/+Ice/Value.m @@ -45,24 +45,24 @@ classdef (Abstract) Value < matlab.mixin.Copyable end end methods(Hidden=true) - function iceWrite_(obj, os) + function iceWrite(obj, os) os.startValue([]); - obj.iceWriteImpl_(os); + obj.iceWriteImpl(os); os.endValue(); end - function iceRead_(obj, is) + function iceRead(obj, is) is.startValue(); - obj.iceReadImpl_(is); + obj.iceReadImpl(is); is.endValue(false); end - function r = iceDelayPostUnmarshal_(obj) + function r = iceDelayPostUnmarshal(obj) % % Overridden by subclasses that need to do some post-processing after the initial round of % unmarshaling is complete. % r = false; end - function icePostUnmarshal_(obj) + function icePostUnmarshal(obj) % % Overridden by subclasses that need to do some post-processing after the initial round of % unmarshaling is complete. @@ -70,8 +70,8 @@ classdef (Abstract) Value < matlab.mixin.Copyable end end methods(Abstract,Access=protected) - iceWriteImpl_(obj, os) - iceReadImpl_(obj, is) + iceWriteImpl(obj, os) + iceReadImpl(obj, is) end properties(Hidden, NonCopyable) iceInternal_ int32 diff --git a/matlab/lib/+IceInternal/EncapsDecoder.m b/matlab/lib/+IceInternal/EncapsDecoder.m index 5431ef4bb5f..bf6d2d108bb 100644 --- a/matlab/lib/+IceInternal/EncapsDecoder.m +++ b/matlab/lib/+IceInternal/EncapsDecoder.m @@ -39,11 +39,11 @@ classdef (Abstract) EncapsDecoder < handle % if ~isempty(obj.delayedPostUnmarshal) % - % First call icePostUnmarshal_ on every instance. This allows the generated code to finish its tasks. + % First call icePostUnmarshal on every instance. This allows the generated code to finish its tasks. % for i = 1:length(obj.delayedPostUnmarshal) v = obj.delayedPostUnmarshal{i}; - v.icePostUnmarshal_(); + v.icePostUnmarshal(); end % % Then call ice_postUnmarshal on every instance. This is the application's interception point. @@ -176,7 +176,7 @@ classdef (Abstract) EncapsDecoder < handle % % Read the instance. % - v.iceRead_(obj.is); + v.iceRead(obj.is); if ~isempty(obj.patchMap) && obj.patchMap.isKey(index) % @@ -201,7 +201,7 @@ classdef (Abstract) EncapsDecoder < handle end if (isempty(obj.patchMap) || obj.patchMap.Count == 0) && isempty(obj.valueList) - if v.iceDelayPostUnmarshal_() + if v.iceDelayPostUnmarshal() obj.delayedPostUnmarshal{end + 1} = v; % See finish() else try @@ -223,7 +223,7 @@ classdef (Abstract) EncapsDecoder < handle % for i = 1:length(obj.valueList) p = obj.valueList{i}; - if p.iceDelayPostUnmarshal_() + if p.iceDelayPostUnmarshal() obj.delayedPostUnmarshal{end + 1} = p; % See finish() else try diff --git a/matlab/lib/+IceInternal/EncapsDecoder10.m b/matlab/lib/+IceInternal/EncapsDecoder10.m index eac0a7b5ee6..8723687fcb0 100644 --- a/matlab/lib/+IceInternal/EncapsDecoder10.m +++ b/matlab/lib/+IceInternal/EncapsDecoder10.m @@ -101,11 +101,11 @@ classdef EncapsDecoder10 < IceInternal.EncapsDecoder % % Exceptions are value types so we have to replace 'ex' with its new value after calling methods. % - ex = ex.read_(obj.is); + ex = ex.iceRead(obj.is); if usesClasses obj.readPendingValues(); end - ex = ex.postUnmarshal_(); + ex = ex.icePostUnmarshal(); throw(ex); else % diff --git a/matlab/lib/+IceInternal/EncapsDecoder11.m b/matlab/lib/+IceInternal/EncapsDecoder11.m index 31e9c91458d..21675d20538 100644 --- a/matlab/lib/+IceInternal/EncapsDecoder11.m +++ b/matlab/lib/+IceInternal/EncapsDecoder11.m @@ -97,8 +97,8 @@ classdef EncapsDecoder11 < IceInternal.EncapsDecoder % % Exceptions are value types so we have to replace 'ex' with its new value after calling methods. % - ex = ex.read_(obj.is); - ex = ex.postUnmarshal_(); + ex = ex.iceRead(obj.is); + ex = ex.icePostUnmarshal(); throw(ex); else % diff --git a/matlab/lib/+IceInternal/EncapsEncoder10.m b/matlab/lib/+IceInternal/EncapsEncoder10.m index 5ba9178db3c..6a356e6c2ac 100644 --- a/matlab/lib/+IceInternal/EncapsEncoder10.m +++ b/matlab/lib/+IceInternal/EncapsEncoder10.m @@ -109,7 +109,7 @@ classdef EncapsEncoder10 < IceInternal.EncapsEncoder obj.os.getCommunicator().getLogger().warning(msg); end - v.iceWrite_(obj.os); + v.iceWrite(obj.os); end end obj.os.writeSize(0); % Zero marker indicates end of sequence of sequences of instances. diff --git a/matlab/lib/+IceInternal/EncapsEncoder11.m b/matlab/lib/+IceInternal/EncapsEncoder11.m index b85f8887d18..0eacc9c3439 100644 --- a/matlab/lib/+IceInternal/EncapsEncoder11.m +++ b/matlab/lib/+IceInternal/EncapsEncoder11.m @@ -248,7 +248,7 @@ classdef EncapsEncoder11 < IceInternal.EncapsEncoder end obj.os.writeSize(1); % Class instance marker. - v.iceWrite_(obj.os); + v.iceWrite(obj.os); end end properties(Access=private) diff --git a/matlab/lib/+IceInternal/WrapperObject.m b/matlab/lib/+IceInternal/WrapperObject.m index 125c879958d..81f762bc51a 100644 --- a/matlab/lib/+IceInternal/WrapperObject.m +++ b/matlab/lib/+IceInternal/WrapperObject.m @@ -26,17 +26,17 @@ classdef (Abstract) WrapperObject < handle methods(Hidden) function delete(obj) if ~isempty(obj.impl_) - obj.call_('_release'); + obj.iceCall('unref'); end end - function call_(obj, fn, varargin) + function iceCall(obj, fn, varargin) name = strcat(obj.type_, '_', fn); ex = calllib('icematlab', name, obj.impl_, varargin{:}); if ~isempty(ex) ex.throwAsCaller(); end end - function r = callWithResult_(obj, fn, varargin) + function r = iceCallWithResult(obj, fn, varargin) name = strcat(obj.type_, '_', fn); result = calllib('icematlab', name, obj.impl_, varargin{:}); if isempty(result) @@ -47,24 +47,6 @@ classdef (Abstract) WrapperObject < handle r = result.result; end end - function callOnType_(obj, type, fn, varargin) - name = strcat(type, '_', fn); - ex = calllib('icematlab', name, obj.impl_, varargin{:}); - if ~isempty(ex) - ex.throwAsCaller(); - end - end - function r = callOnTypeWithResult_(obj, type, fn, varargin) - name = strcat(type, '_', fn); - result = calllib('icematlab', name, obj.impl_, varargin{:}); - if isempty(result) - r = result; - elseif ~isempty(result.exception) - result.exception.throwAsCaller(); - else - r = result.result; - end - end end properties(Hidden,SetAccess=protected) impl_ |