Public Types | Public Member Functions

gnash::SharedObjectLibrary Class Reference

#include <SharedObject_as.h>

Collaboration diagram for gnash::SharedObjectLibrary:
Collaboration graph
[legend]

List of all members.

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.
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::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 _, _vm, data, gnash::VM::getGlobal(), gnash::movie_root::getOriginalURL(), gnash::VM::getRoot(), gnash::URL::hostname(), and gnash::URL::path().

void gnash::SharedObjectLibrary::markReachableResources (  )  const

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