Gnash
0.8.10
|
Register all of the ActionScript classes, with their dependencies. More...
#include <ClassHierarchy.h>
Classes | |
struct | ExtensionClass |
struct | NativeClass |
Public Types | |
typedef std::vector< NativeClass > | NativeClasses |
Public Member Functions | |
ClassHierarchy (as_object *global, Extension *e) | |
~ClassHierarchy () | |
Delete our private namespaces. | |
bool | declareClass (const NativeClass &c) |
void | declareAll (const NativeClasses &classes) |
Declare a list of native classes. | |
void | markReachableResources () const |
Mark objects for garbage collector. |
Register all of the ActionScript classes, with their dependencies.
typedef std::vector<NativeClass> gnash::ClassHierarchy::NativeClasses |
Construct the declaration object. Later set the global and extension objects using setGlobal and setExtension
gnash::ClassHierarchy::~ClassHierarchy | ( | ) |
Delete our private namespaces.
void gnash::ClassHierarchy::declareAll | ( | const NativeClasses & | classes | ) |
Declare a list of native classes.
References gnash::key::f, declareClass(), gnash::renderer::opengl::for_each(), and gnash::key::_1.
Referenced by gnash::Global_as::registerClasses().
bool gnash::ClassHierarchy::declareClass | ( | const NativeClass & | c | ) |
Declare an ActionScript class and how to instantiate it from the core.
c | The NativeClass structure which defines the class. |
References gnash::ClassHierarchy::NativeClass::version, gnash::as_object::init_destructive_property(), and gnash::ClassHierarchy::NativeClass::uri.
Referenced by declareAll().
void gnash::ClassHierarchy::markReachableResources | ( | ) | const [inline] |
Mark objects for garbage collector.
Referenced by gnash::Global_as::markReachableResources().