Skip to end of metadata
Go to start of metadata

JSAPIProxyPtr FB::JSAPIProxy::create ( const FB::JSAPIWeakPtr inner  )  [static]

Creates a JSAPIProxy that holds a weak_ptr reference to the JSAPI object provided.

Parameters:
inner the API to reference; a reference to this API will be weak and when inner is released this object will throw an exception in response to any access except requests for the "expired" property, which is reserved in JSAPIProxy and will return true if inner has been released.
Returns:
boost::shared_ptr<JSAPIProxy>
Since:
1.4a3

Definition at line 31 of file JSAPIProxy.cpp.

00032 {
00033     // This is necessary because you can't use shared_from_this in the constructor
00034     FB::JSAPIProxyPtr ptr(new FB::JSAPIProxy(inner));
00035     FB::JSAPIImplPtr impl(FB::ptr_cast<JSAPIImpl>(inner.lock()));
00036     if (impl)
00037         impl->registerProxy(ptr);
00038 
00039     return ptr;
00040 }


Generated on 25 May 2013 for FireBreath by  doxygen 1.6.1
Labels
  • None