diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-10-02 11:48:54 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-10-02 11:48:54 -0400 |
commit | 2cb718a85b417fb6a58be04fe1f102f733b8d39c (patch) | |
tree | 26549f37c7307037f0bf8bf0d42b6c1da7eaeb4b /cpp/src/Ice/Proxy.cpp | |
parent | Fixed bug 2503 (diff) | |
download | ice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.tar.bz2 ice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.tar.xz ice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.zip |
Squashed commit of the following:
commit 0ba15449d9dd44933d82cb643efded9dee12c5af
Author: Bernard Normier <bernard@zeroc.com>
Date: Tue Oct 2 11:48:07 2007 -0400
Documented updates
commit cf49ee5a73bc62d1b6814dec5d9f288f0f45901d
Author: Bernard Normier <bernard@zeroc.com>
Date: Tue Oct 2 11:38:25 2007 -0400
Optimized implementation of various Prx ice_xxx functions/methods
commit 706209d6d1a4e894fecf19dd1c0c3b6f12ef5842
Author: Bernard Normier <bernard@zeroc.com>
Date: Fri Sep 28 14:34:02 2007 -0400
Updated code-generation to "overwrite" various Ice::ObjectPrx ice_ operations.
Diffstat (limited to 'cpp/src/Ice/Proxy.cpp')
-rw-r--r-- | cpp/src/Ice/Proxy.cpp | 52 |
1 files changed, 29 insertions, 23 deletions
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp index fde808f5acd..b902dedaad1 100644 --- a/cpp/src/Ice/Proxy.cpp +++ b/cpp/src/Ice/Proxy.cpp @@ -323,7 +323,7 @@ IceProxy::Ice::Object::ice_identity(const Identity& newIdentity) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = new Object; proxy->setup(_reference->changeIdentity(newIdentity)); return proxy; } @@ -344,7 +344,7 @@ IceProxy::Ice::Object::ice_getContext() const ObjectPrx IceProxy::Ice::Object::ice_context(const Context& newContext) const { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeContext(newContext)); return proxy; } @@ -358,7 +358,7 @@ IceProxy::Ice::Object::ice_newContext(const Context& newContext) const ObjectPrx IceProxy::Ice::Object::ice_defaultContext() const { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->defaultContext()); return proxy; } @@ -378,7 +378,7 @@ IceProxy::Ice::Object::ice_facet(const string& newFacet) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = new Object; proxy->setup(_reference->changeFacet(newFacet)); return proxy; } @@ -405,7 +405,7 @@ IceProxy::Ice::Object::ice_adapterId(const string& newAdapterId) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeAdapterId(newAdapterId)); return proxy; } @@ -444,7 +444,7 @@ IceProxy::Ice::Object::ice_endpoints(const EndpointSeq& newEndpoints) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeEndpoints(endpoints)); return proxy; } @@ -471,7 +471,7 @@ IceProxy::Ice::Object::ice_locatorCacheTimeout(Int newTimeout) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeLocatorCacheTimeout(newTimeout)); return proxy; } @@ -492,7 +492,7 @@ IceProxy::Ice::Object::ice_connectionCached(bool newCache) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeCacheConnection(newCache)); return proxy; } @@ -513,7 +513,7 @@ IceProxy::Ice::Object::ice_endpointSelection(EndpointSelectionType newType) cons } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeEndpointSelection(newType)); return proxy; } @@ -534,7 +534,7 @@ IceProxy::Ice::Object::ice_secure(bool b) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeSecure(b)); return proxy; } @@ -555,7 +555,7 @@ IceProxy::Ice::Object::ice_preferSecure(bool b) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changePreferSecure(b)); return proxy; } @@ -578,7 +578,7 @@ IceProxy::Ice::Object::ice_router(const RouterPrx& router) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(ref); return proxy; } @@ -601,7 +601,7 @@ IceProxy::Ice::Object::ice_locator(const LocatorPrx& locator) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(ref); return proxy; } @@ -628,7 +628,7 @@ IceProxy::Ice::Object::ice_collocationOptimized(bool b) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeCollocationOptimization(b)); return proxy; } @@ -643,7 +643,7 @@ IceProxy::Ice::Object::ice_twoway() const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeMode(Reference::ModeTwoway)); return proxy; } @@ -664,7 +664,7 @@ IceProxy::Ice::Object::ice_oneway() const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeMode(Reference::ModeOneway)); return proxy; } @@ -685,7 +685,7 @@ IceProxy::Ice::Object::ice_batchOneway() const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeMode(Reference::ModeBatchOneway)); return proxy; } @@ -706,7 +706,7 @@ IceProxy::Ice::Object::ice_datagram() const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeMode(Reference::ModeDatagram)); return proxy; } @@ -727,7 +727,7 @@ IceProxy::Ice::Object::ice_batchDatagram() const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(_reference->changeMode(Reference::ModeBatchDatagram)); return proxy; } @@ -749,7 +749,7 @@ IceProxy::Ice::Object::ice_compress(bool b) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(ref); return proxy; } @@ -765,7 +765,7 @@ IceProxy::Ice::Object::ice_timeout(int t) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(ref); return proxy; } @@ -781,7 +781,7 @@ IceProxy::Ice::Object::ice_connectionId(const string& id) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(ref); return proxy; } @@ -803,7 +803,7 @@ IceProxy::Ice::Object::ice_threadPerConnection(bool b) const } else { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); + ObjectPrx proxy = __newInstance(); proxy->setup(ref); return proxy; } @@ -1088,6 +1088,12 @@ IceProxy::Ice::Object::__createDelegateD() return Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Ice::Object); } +IceProxy::Ice::Object* +IceProxy::Ice::Object::__newInstance() const +{ + return new Object; +} + void IceProxy::Ice::Object::setup(const ReferencePtr& ref) { |