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

#include <function.h>

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

Public Member Functions

 ScriptedFunction (Common::SeekableReadStream *as, std::vector< Common::UString > constantPool, bool preloadThisFlag, bool preloadSuperFlag, bool preloadRootFlag)
 
 ~ScriptedFunction ()
 
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

Common::SeekableReadStream_stream
 
ASBuffer _buffer
 

Detailed Description

Definition at line 59 of file function.h.

Constructor & Destructor Documentation

◆ ScriptedFunction()

Aurora::ActionScript::ScriptedFunction::ScriptedFunction ( Common::SeekableReadStream as,
std::vector< Common::UString constantPool,
bool  preloadThisFlag,
bool  preloadSuperFlag,
bool  preloadRootFlag 
)

Definition at line 47 of file function.cpp.

References _buffer, and Aurora::ActionScript::ASBuffer::setConstantPool().

Here is the call graph for this function:

◆ ~ScriptedFunction()

Aurora::ActionScript::ScriptedFunction::~ScriptedFunction ( )

Definition at line 53 of file function.cpp.

References _stream.

Member Function Documentation

◆ operator()()

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

Implements Aurora::ActionScript::Function.

Definition at line 57 of file function.cpp.

References _buffer, Aurora::ActionScript::AVM::getReturnValue(), and Aurora::ActionScript::ASBuffer::run().

Here is the call graph for this function:

Member Data Documentation

◆ _buffer

ASBuffer Aurora::ActionScript::ScriptedFunction::_buffer
private

Definition at line 74 of file function.h.

Referenced by operator()(), and ScriptedFunction().

◆ _stream

Common::SeekableReadStream* Aurora::ActionScript::ScriptedFunction::_stream
private

Definition at line 73 of file function.h.

Referenced by ~ScriptedFunction().


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