Gnash  0.8.11dev
Public Types | Public Member Functions | Public Attributes | List of all members
gnash::fn_call Class Reference

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

#include <fn_call.h>

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=nullptr, bool isNew=false)
 Construct a fn_call. More...
 
 fn_call (as_object *this_in, const as_environment &env_in)
 
 fn_call (const fn_call &fn)
 Copy constructor. More...
 
VMgetVM () const
 Return the VM this fn_call is running from. More...
 
bool isInstantiation () const
 Return true if this call is an object instantiation. More...
 
const Args::value_typearg (unsigned int n) const
 Access a particular argument. More...
 
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. More...
 
void resetArgs ()
 
void pushArg (const Args::value_type &arg)
 

Public Attributes

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

Detailed Description

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

Member Typedef Documentation

§ Args

Constructor & Destructor Documentation

§ fn_call() [1/3]

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

Construct a fn_call.

Parameters
isNewPass true if this is a constructing fn_call, i.e. if it is called as a result of 'new'.
superPass 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().

§ fn_call() [2/3]

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

§ fn_call() [3/3]

gnash::fn_call::fn_call ( const fn_call fn)
inline

Copy constructor.

Member Function Documentation

§ arg()

const Args::value_type& gnash::fn_call::arg ( unsigned int  n) const
inline

Access a particular argument.

References gnash::key::n.

Referenced by gnash::arrayKey(), gnash::bevelfilter_class_init(), gnash::DisplayObject::blendMode(), gnash::blurfilter_class_init(), gnash::Function2::call(), gnash::Function::call(), gnash::BufferedAudioStreamer::cleanAudioQueue(), gnash::color_class_init(), gnash::contextmenuitem_class_init(), gnash::dbus_ext_setsockname(), gnash::dejagnu_fail(), gnash::dejagnu_pass(), gnash::dropshadowfilter_class_init(), gnash::Error_class_init(), gnash::abc::Machine::executeFunction(), gnash::externalinterface_class_init(), gnash::fileio_asyncmode(), gnash::fileio_fopen(), gnash::fileio_fputc(), gnash::fileio_fputs(), gnash::fileio_fseek(), gnash::fileio_fwrite(), gnash::fileio_putchar(), gnash::fileio_puts(), gnash::fileio_scandir(), gnash::fileio_unlink(), gnash::function_class_init(), gnash::getArguments(), gnash::glowfilter_class_init(), gnash::gradientbevelfilter_class_init(), gnash::gradientglowfilter_class_init(), gnash::gtkext_button_new_with_label(), gnash::gtkext_container_add(), gnash::gtkext_container_set_border_width(), gnash::gtkext_signal_connect(), gnash::gtkext_signal_connect_swapped(), gnash::gtkext_widget_show(), gnash::AsBroadcaster::init(), gnash::initObjectClass(), gnash::key_is_down(), gnash::lirc_ext_init(), gnash::loadvars_class_init(), gnash::Global_as::makeObject(), gnash::math_class_init(), gnash::matrix_class_init(), gnash::moviecliploader_class_init(), gnash::mysql_connect(), gnash::mysql_qetData(), gnash::mysql_query(), gnash::point_class_init(), gnash::rectangle_class_init(), gnash::registerBitmapDataNative(), gnash::registerBooleanNative(), gnash::registerColorTransformNative(), gnash::registerDateNative(), gnash::registerLocalConnectionNative(), gnash::registerMovieClipNative(), gnash::registerSelectionNative(), gnash::registerSharedObjectNative(), gnash::registerSoundNative(), gnash::registerStageNative(), gnash::registerSystemNative(), gnash::registerTextFieldNative(), gnash::registerVideoNative(), gnash::registerXMLNative(), gnash::registerXMLSocketNative(), gnash::string_class_init(), gnash::textformat_class_init(), gnash::transform_class_init(), gnash::NetConnection_as::update(), and gnash::xmlnode_class_init().

§ drop_bottom()

void gnash::fn_call::drop_bottom ( )
inline

§ dump_args()

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

§ env()

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

§ getArgs()

const Args::container_type& gnash::fn_call::getArgs ( ) const
inline

§ getVM()

VM& gnash::fn_call::getVM ( ) const
inline

Return the VM this fn_call is running from.

References _env.

Referenced by gnash::getGlobal(), gnash::getRoot(), gnash::getStringTable(), gnash::getSWFVersion(), and gnash::getVM().

§ isInstantiation()

bool gnash::fn_call::isInstantiation ( ) const
inline

§ pushArg()

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

References _env.

§ resetArgs()

void gnash::fn_call::resetArgs ( )
inline

Member Data Documentation

§ callerDef

const movie_definition* gnash::fn_call::callerDef

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

Referenced by gnash::invoke(), gnash::registerSoundNative(), and gnash::string_class_init().

§ nargs

Args::size_type gnash::fn_call::nargs

Number of arguments to this ActionScript function call.

Referenced by gnash::arrayKey(), gnash::bevelfilter_class_init(), gnash::DisplayObject::blendMode(), gnash::blurfilter_class_init(), gnash::Function2::call(), gnash::Function::call(), gnash::BufferedAudioStreamer::cleanAudioQueue(), gnash::color_class_init(), gnash::contextmenuitem_class_init(), gnash::dbus_ext_setsockname(), gnash::dejagnu_fail(), gnash::dejagnu_pass(), gnash::dropshadowfilter_class_init(), gnash::Error_class_init(), gnash::abc::Machine::executeFunction(), gnash::externalinterface_class_init(), gnash::fileio_fopen(), gnash::fileio_scandir(), gnash::filereference_class_init(), gnash::filereferencelist_ctor(), gnash::function_class_init(), gnash::getArguments(), gnash::glowfilter_class_init(), gnash::gradientbevelfilter_class_init(), gnash::gradientglowfilter_class_init(), gnash::gtkext_button_new_with_label(), gnash::gtkext_container_add(), gnash::gtkext_container_set_border_width(), gnash::gtkext_signal_connect(), gnash::gtkext_signal_connect_swapped(), gnash::gtkext_widget_show(), gnash::AsBroadcaster::init(), gnash::initObjectClass(), gnash::key_is_down(), gnash::lirc_ext_getkey(), gnash::lirc_ext_init(), gnash::loadvars_class_init(), gnash::Global_as::makeObject(), gnash::math_class_init(), gnash::matrix_class_init(), gnash::moviecliploader_class_init(), gnash::mysql_connect(), gnash::mysql_fetch(), gnash::mysql_qetData(), gnash::mysql_query(), gnash::point_class_init(), gnash::rectangle_class_init(), gnash::registerBitmapDataNative(), gnash::registerBooleanNative(), gnash::registerColorTransformNative(), gnash::registerDateNative(), gnash::registerLocalConnectionNative(), gnash::registerMovieClipNative(), gnash::registerSelectionNative(), gnash::registerSharedObjectNative(), gnash::registerSoundNative(), gnash::registerStageNative(), gnash::registerSystemNative(), gnash::registerTextFieldNative(), gnash::registerVideoNative(), gnash::registerXMLNative(), gnash::registerXMLSocketNative(), gnash::string_class_init(), gnash::textformat_class_init(), gnash::transform_class_init(), gnash::NetConnection_as::update(), and gnash::xmlnode_class_init().

§ super

as_object* gnash::fn_call::super

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(), gnash::Function::call(), and gnash::invoke().

§ this_ptr

as_object* gnash::fn_call::this_ptr

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