Gnash  0.8.10
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:
gnash::as_function gnash::as_object gnash::GcResource gnash::builtin_function gnash::Function gnash::Function2

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 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::Function, gnash::Function2, and gnash::builtin_function.


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