Public Member Functions | Protected Member Functions

gnash::UserFunction Class Reference

A UserFunction is a callable function defined in ActionScript. More...

#include <UserFunction.h>

Inheritance diagram for gnash::UserFunction:
Inheritance graph
[legend]
Collaboration diagram for gnash::UserFunction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual boost::uint8_t registers () const =0
 Return the number of local registers needed.

Protected Member Functions

 UserFunction (Global_as &gl)
virtual ~UserFunction ()=0
 This is an abstract base class!

Detailed Description

A UserFunction is a callable function defined in ActionScript.

Gnash has two types of UserFunction: 1. Function: functions parsed from a SWF 2. builtin_function: functions implemented in C++ as though they were These are used to implement what the API functions that the proprietary player implements in a startup script.


Constructor & Destructor Documentation

gnash::UserFunction::UserFunction ( Global_as gl  )  [inline, protected]
gnash::UserFunction::~UserFunction (  )  [inline, protected, pure virtual]

This is an abstract base class!


Member Function Documentation

virtual boost::uint8_t gnash::UserFunction::registers (  )  const [pure virtual]

Return the number of local registers needed.

Only Function2 functions require local registers; for all others the value should be 0.

Implemented in gnash::builtin_function, gnash::Function, and gnash::Function2.


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