Classes | Public Types | Public Member Functions

gnash::ClassHierarchy Class Reference

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

#include <ClassHierarchy.h>

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

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.

Referenced by gnash::AVM1Global::registerClasses().

bool gnash::ClassHierarchy::declareClass ( const NativeClass c  ) 

Declare an ActionScript class and how to instantiate it from the core.

Parameters:
c The NativeClass structure which defines the class.
Returns:
true, unless the class with c.name already existed.
bool gnash::ClassHierarchy::declareClass ( ExtensionClass c  ) 

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

Parameters:
c The ExtensionClass structure which defines the class.
Returns:
true, unless the class with c.name already existed.
void gnash::ClassHierarchy::markReachableResources (  )  const

Mark objects for garbage collector.

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


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