Beispiel #1
0
ProxyObjectPtr ProxyObject::getParentProxy() const {
    if (getParent() == SpaceObjectReference::null()) {
        return ProxyObjectPtr();
    }
    ProxyObjectPtr parentProxy(getProxyManager()->getProxyObject(getParent()));
    return parentProxy;
}
Beispiel #2
0
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();
}
Beispiel #3
0
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;
}
Beispiel #4
0
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();
}
Beispiel #5
0
ProxyObjectPtr ProxyObject::getParentProxy() const {
    return ProxyObjectPtr();
}