Gnash  0.8.11dev
Public Types | Public Member Functions | List of all members
gnash::SharedObjectLibrary Class Reference

#include <SharedObject_as.h>

Public Types

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

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. More...
 
void markReachableResources () const
 
void clear ()
 

Member Typedef Documentation

§ SoLib

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

Constructor & Destructor Documentation

§ SharedObjectLibrary()

gnash::SharedObjectLibrary::SharedObjectLibrary ( VM vm)

§ ~SharedObjectLibrary()

gnash::SharedObjectLibrary::~SharedObjectLibrary ( )

References clear().

Member Function Documentation

§ 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().

§ getLocal()

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 _, and gnash::log_security().

Referenced by gnash::registerSharedObjectNative().

§ markReachableResources()

void gnash::SharedObjectLibrary::markReachableResources ( ) const

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