xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Aurora::ActionScript::NativeFunction Class Reference

#include <function.h>

Inheritance diagram for Aurora::ActionScript::NativeFunction:
Inheritance graph
[legend]
Collaboration diagram for Aurora::ActionScript::NativeFunction:
Collaboration graph
[legend]

Public Member Functions

 NativeFunction (boost::function< Variable(AVM &)> function, bool preloadThisFlag, bool preloadSuperFlag, bool preloadRootFlag)
 
Variable operator() (AVM &avm)
 
- Public Member Functions inherited from Aurora::ActionScript::Function
 Function (bool preloadThisFlag, bool preloadSuperFlag, bool preloadRootFlag)
 
bool getPreloadThisFlag ()
 
bool getPreloadSuperFlag ()
 
bool getPreloadRootFlag ()
 
- Public Member Functions inherited from Aurora::ActionScript::Object
 Object ()
 
 Object (Object *object)
 
virtual ~Object ()
 
std::vector< Common::UStringgetSlots () const
 
bool hasMember (const Common::UString &id)
 
virtual Variable getMember (const Variable &id)
 
virtual void setMember (const Variable &id, const Variable &value)
 
virtual void setMember (const Common::UString &id, Function *function)
 
Variable call (const Common::UString &function, AVM &avm, const std::vector< Variable > &arguments=std::vector< Variable >())
 

Private Attributes

boost::function< Variable(AVM &)> _function
 

Detailed Description

Definition at line 77 of file function.h.

Constructor & Destructor Documentation

◆ NativeFunction()

Aurora::ActionScript::NativeFunction::NativeFunction ( boost::function< Variable(AVM &)>  function,
bool  preloadThisFlag,
bool  preloadSuperFlag,
bool  preloadRootFlag 
)

Definition at line 62 of file function.cpp.

Member Function Documentation

◆ operator()()

Variable Aurora::ActionScript::NativeFunction::operator() ( AVM avm)
virtual

Implements Aurora::ActionScript::Function.

Definition at line 66 of file function.cpp.

References _function.

Member Data Documentation

◆ _function

boost::function<Variable(AVM &)> Aurora::ActionScript::NativeFunction::_function
private

Definition at line 84 of file function.h.

Referenced by operator()().


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