ProxyObjectPtr ProxyObject::getParentProxy() const { if (getParent() == SpaceObjectReference::null()) { return ProxyObjectPtr(); } ProxyObjectPtr parentProxy(getProxyManager()->getProxyObject(getParent())); return parentProxy; }
ProxyObjectPtr ObjectHostProxyManager::getProxyObject(const SpaceObjectReference &id) const { if (id.space() == mSpaceID) { ProxyMap::const_iterator iter = mProxyMap.find(id.object()); if (iter != mProxyMap.end()) { return (*iter).second.obj; } } return ProxyObjectPtr(); }
ProxyObjectPtr HostedObject::self(const SpaceObjectReference& sor) { ProxyManagerPtr proxy_man = presence(sor); if (!proxy_man) return ProxyObjectPtr(); ProxyObjectPtr proxy_obj = proxy_man->getProxyObject(sor); return proxy_obj; }
ProxyObjectPtr ProxyManager::getProxyObject(const SpaceObjectReference &id) const { PROXYMAN_SERIALIZED(); assert(id.space() == mID.space()); ProxyMap::const_iterator iter = mProxyMap.find(id.object()); if (iter != mProxyMap.end()) return (*iter).second.ptr; return ProxyObjectPtr(); }
ProxyObjectPtr ProxyObject::getParentProxy() const { return ProxyObjectPtr(); }