Pyrogenesis  trunk
Public Types | Public Member Functions | Public Attributes | List of all members
ScriptInterface_impl Struct Reference
Collaboration diagram for ScriptInterface_impl:
Collaboration graph
[legend]

Public Types

typedef std::map< ScriptInterface::CACHED_VAL, JS::PersistentRootedValue > ScriptValCache
 

Public Member Functions

 ScriptInterface_impl (const char *nativeScopeName, const shared_ptr< ScriptRuntime > &runtime)
 
 ~ScriptInterface_impl ()
 
void Register (const char *name, JSNative fptr, uint nargs)
 

Public Attributes

shared_ptr< ScriptRuntimem_runtime
 
JSContext * m_cx
 
JS::PersistentRootedObject m_glob
 
JSCompartment * m_comp
 
boost::rand48 * m_rng
 
JS::PersistentRootedObject m_nativeScope
 
ScriptValCache m_ScriptValCache
 

Member Typedef Documentation

typedef std::map<ScriptInterface::CACHED_VAL, JS::PersistentRootedValue> ScriptInterface_impl::ScriptValCache

Constructor & Destructor Documentation

ScriptInterface_impl::ScriptInterface_impl ( const char *  nativeScopeName,
const shared_ptr< ScriptRuntime > &  runtime 
)
ScriptInterface_impl::~ScriptInterface_impl ( )

Member Function Documentation

void ScriptInterface_impl::Register ( const char *  name,
JSNative  fptr,
uint  nargs 
)

Member Data Documentation

JSCompartment* ScriptInterface_impl::m_comp
JSContext* ScriptInterface_impl::m_cx
JS::PersistentRootedObject ScriptInterface_impl::m_glob
JS::PersistentRootedObject ScriptInterface_impl::m_nativeScope
boost::rand48* ScriptInterface_impl::m_rng
shared_ptr<ScriptRuntime> ScriptInterface_impl::m_runtime
ScriptValCache ScriptInterface_impl::m_ScriptValCache

The documentation for this struct was generated from the following file: