Public Types | Public Member Functions | Public Attributes

gnash::fn_call Class Reference

Parameters/environment for builtin or user-defined functions callable from ActionScript. More...

#include <fn_call.h>

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

List of all members.

Public Types

typedef FunctionArgs< as_valueArgs

Public Member Functions

 fn_call (as_object *this_in, const as_environment &env_in, Args &args, as_object *sup=0, bool isNew=false)
 Construct a fn_call.
 fn_call (as_object *this_in, const as_environment &env_in)
 fn_call (const fn_call &fn)
 Copy constructor.
VMgetVM () const
 Return the VM this fn_call is running from.
bool isInstantiation () const
 Return true if this call is an object instantiation.
const Args::value_typearg (unsigned int n) const
 Access a particular argument.
const Args::container_typegetArgs () const
void drop_bottom ()
const as_environmentenv () const
void dump_args (std::ostream &os) const
 Dump arguments to given output stream.
void resetArgs ()
void pushArg (const Args::value_type &arg)

Public Attributes

as_objectthis_ptr
as_objectsuper
 The "super" object in this function call context.
Args::size_type nargs
 Number of arguments to this ActionScript function call.
const movie_definitioncallerDef
 Definition containing caller code. 0 if spontaneous (system event).

Detailed Description

Parameters/environment for builtin or user-defined functions callable from ActionScript.


Member Typedef Documentation


Constructor & Destructor Documentation

gnash::fn_call::fn_call ( as_object this_in,
const as_environment env_in,
Args args,
as_object sup = 0,
bool  isNew = false 
) [inline]

Construct a fn_call.

Parameters:
isNew Pass true if this is a constructing fn_call, i.e. if it is called as a result of 'new'.
super Pass an overridden super value to the function call. If this is 0, the super reference will be calculated from the this pointer (if that is not null) whenever a function requires it.

References gnash::FunctionArgs< T >::swap().

gnash::fn_call::fn_call ( as_object this_in,
const as_environment env_in 
) [inline]
gnash::fn_call::fn_call ( const fn_call fn  )  [inline]

Copy constructor.


Member Function Documentation

const Args::value_type& gnash::fn_call::arg ( unsigned int  n  )  const [inline]
void gnash::fn_call::drop_bottom (  )  [inline]

References nargs.

void gnash::fn_call::dump_args ( std::ostream &  os  )  const [inline]

Dump arguments to given output stream.

References arg(), gnash::key::i, and nargs.

Referenced by gnash::fileio_fopen().

const as_environment& gnash::fn_call::env (  )  const [inline]

Referenced by mysqldb::size_method().

const Args::container_type& gnash::fn_call::getArgs (  )  const [inline]
VM& gnash::fn_call::getVM (  )  const [inline]
bool gnash::fn_call::isInstantiation (  )  const [inline]

Return true if this call is an object instantiation.

void gnash::fn_call::pushArg ( const Args::value_type arg  )  [inline]

References nargs.

void gnash::fn_call::resetArgs (  )  [inline]

References nargs.


Member Data Documentation

Definition containing caller code. 0 if spontaneous (system event).

Referenced by gnash::invoke().

The "super" object in this function call context.

If this is 0, the super may be constructed from the this pointer.

Referenced by gnash::Function2::call(), and gnash::invoke().


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