FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
public void FB::JSAPIProxy::changeObject ( const FB::JSAPIWeakPtr inner)

Changes the wrapped JSAPIWeakPtr to the given one.

Parameters
innerFB::JSAPIWeakPtr & New JSAPIWeakPtr
Since
1.4a3

Definition at line 96 of file JSAPIProxy.cpp.

References FB::ptr_cast().

97 {
98  if (FB::JSAPIImplPtr ptr = FB::ptr_cast<FB::JSAPIImpl>(m_apiWeak.lock())) {
99  ptr->unregisterProxy(shared_from_this());
100  }
101  this->m_api.reset();
102  this->m_apiWeak = inner;
103  FB::JSAPIImplPtr ptr = FB::ptr_cast<FB::JSAPIImpl>(inner.lock());
104  if (ptr)
105  ptr->registerProxy(shared_from_this());
106 }
JavaScript API base class implementation – provides basic functionality for C++ JSAPI objects...
Definition: JSAPIImpl.h:49
boost::shared_ptr< T > ptr_cast(boost::shared_ptr< U > const &r)
Convenience function for doing a dynamic cast of one boost::shared_ptr to another.
Definition: APITypes.h:339

Here is the call graph for this function: