Gnash  0.8.10
Public Types | Public Member Functions
gnash::SharedObjectLibrary Class Reference

#include <SharedObject_as.h>

List of all members.

Public Types

typedef std::map< std::string,
SharedObject_as * > 

Public Member Functions

 SharedObjectLibrary (VM &vm)
 ~SharedObjectLibrary ()
as_objectgetLocal (const std::string &name, const std::string &root)
 Return a local shared object with given name and with given root.
void markReachableResources () const
void clear ()

Member Typedef Documentation

typedef std::map<std::string, SharedObject_as*> gnash::SharedObjectLibrary::SoLib

Constructor & Destructor Documentation

gnash::SharedObjectLibrary::SharedObjectLibrary ( VM vm)
gnash::SharedObjectLibrary::~SharedObjectLibrary ( )

References clear().

Member Function Documentation

void gnash::SharedObjectLibrary::clear ( )

The SharedObjectLibrary keeps all known SharedObjects alive. They must be flushed on clear(). This is called at the latest by the dtor, which is called at the latest by VM's dtor (currently earlier to avoid problems with the GC).

References gnash::renderer::opengl::for_each().

Referenced by ~SharedObjectLibrary().

as_object * gnash::SharedObjectLibrary::getLocal ( const std::string &  name,
const std::string &  root 

Return a local shared object with given name and with given root.

May return NULL if name is invalid or can't access the given root

Don't set to 0, or it will initialize a property.

References assert, _, _vm, gnash::VM::getRoot(), gnash::movie_root::runResources(), gnash::RunResources::streamProvider(), gnash::StreamProvider::baseURL(), gnash::URL::hostname(), gnash::URL::path(), gnash::VM::getGlobal(), and data.

void gnash::SharedObjectLibrary::markReachableResources ( ) const

The documentation for this class was generated from the following files: