Gnash
0.8.10
|
#include <SharedObject_as.h>
Public Types | |
typedef std::map< std::string, SharedObject_as * > | SoLib |
Public Member Functions | |
SharedObjectLibrary (VM &vm) | |
~SharedObjectLibrary () | |
as_object * | getLocal (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 () |
typedef std::map<std::string, SharedObject_as*> gnash::SharedObjectLibrary::SoLib |
gnash::SharedObjectLibrary::SharedObjectLibrary | ( | VM & | vm | ) |
gnash::SharedObjectLibrary::~SharedObjectLibrary | ( | ) |
References clear().
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 |
References gnash::foreachSecond().