Gnash 0.8.9
Classes | Public Types | Public Member Functions

gnash::ClassHierarchy Class Reference

Register all of the ActionScript classes, with their dependencies. More...

#include <ClassHierarchy.h>

List of all members.

Classes

struct  ExtensionClass
struct  NativeClass

Public Types

typedef std::vector< NativeClassNativeClasses

Public Member Functions

 ClassHierarchy (as_object *global, Extension *e)
 ~ClassHierarchy ()
 Delete our private namespaces.
bool declareClass (ExtensionClass &c)
bool declareClass (const NativeClass &c)
void declareAll (const NativeClasses &classes)
 Declare a list of native classes.
void markReachableResources () const
 Mark objects for garbage collector.

Detailed Description

Register all of the ActionScript classes, with their dependencies.


Member Typedef Documentation


Constructor & Destructor Documentation

gnash::ClassHierarchy::ClassHierarchy ( as_object global,
Extension e 
) [inline]

Construct the declaration object. Later set the global and extension objects using setGlobal and setExtension

gnash::ClassHierarchy::~ClassHierarchy ( )

Delete our private namespaces.


Member Function Documentation

void gnash::ClassHierarchy::declareAll ( const NativeClasses classes)

Declare a list of native classes.

References gnash::key::_1, declareClass(), gnash::key::f, and gnash::for_each().

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.

Parameters:
cThe NativeClass structure which defines the class.
Returns:
true, unless the class with c.name already existed.

References gnash::cpp::addVisibilityFlag(), gnash::PropFlags::dontEnum, and gnash::as_object::init_destructive_property().

bool gnash::ClassHierarchy::declareClass ( ExtensionClass c)

Declare an ActionScript class, with information on how to load it.

Parameters:
cThe ExtensionClass structure which defines the class.
Returns:
true, unless the class with c.name already existed.

References gnash::cpp::addVisibilityFlag(), gnash::PropFlags::dontEnum, and gnash::as_object::init_destructive_property().

Referenced by declareAll().

void gnash::ClassHierarchy::markReachableResources ( ) const [inline]

Mark objects for garbage collector.

Referenced by gnash::Global_as::markReachableResources().


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