xoreos
0.0.5
|
#include <object.h>
Public Member Functions | |
Object () | |
Object (Object *object) | |
virtual | ~Object () |
std::vector< Common::UString > | getSlots () 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 | |
std::map< Common::UString, Variable > | _members |
Aurora::ActionScript::Object::Object | ( | ) |
Definition at line 37 of file object.cpp.
Aurora::ActionScript::Object::Object | ( | Object * | object | ) |
Definition at line 40 of file object.cpp.
References _members.
|
virtual |
Definition at line 44 of file object.cpp.
Variable Aurora::ActionScript::Object::call | ( | const Common::UString & | function, |
AVM & | avm, | ||
const std::vector< Variable > & | arguments = std::vector<Variable>() |
||
) |
Definition at line 83 of file object.cpp.
References Aurora::ActionScript::Variable::asObject(), getMember(), Aurora::ActionScript::Function::getPreloadRootFlag(), Aurora::ActionScript::Function::getPreloadThisFlag(), Aurora::ActionScript::AVM::getReturnValue(), Aurora::ActionScript::AVM::getVariable(), hasMember(), Aurora::ActionScript::AVM::setReturnValue(), and Aurora::ActionScript::AVM::storeRegister().
Reimplemented in Aurora::ActionScript::Array.
Definition at line 59 of file object.cpp.
References _members.
Referenced by call(), and Aurora::ActionScript::Array::getMember().
std::vector< Common::UString > Aurora::ActionScript::Object::getSlots | ( | ) | const |
Definition at line 47 of file object.cpp.
References _members.
bool Aurora::ActionScript::Object::hasMember | ( | const Common::UString & | id | ) |
Definition at line 55 of file object.cpp.
References _members.
Referenced by call().
|
virtual |
Reimplemented in Aurora::ActionScript::Array.
Definition at line 72 of file object.cpp.
References _members.
Referenced by Aurora::ActionScript::Array::setMember().
|
virtual |
Definition at line 79 of file object.cpp.
References _members.
|
private |
Definition at line 64 of file object.h.
Referenced by getMember(), getSlots(), hasMember(), Object(), and setMember().