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

#include <object.h>

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

Public Member Functions

 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

std::map< Common::UString, Variable_members
 

Detailed Description

Definition at line 47 of file object.h.

Constructor & Destructor Documentation

◆ Object() [1/2]

Aurora::ActionScript::Object::Object ( )

Definition at line 37 of file object.cpp.

◆ Object() [2/2]

Aurora::ActionScript::Object::Object ( Object object)

Definition at line 40 of file object.cpp.

References _members.

◆ ~Object()

Aurora::ActionScript::Object::~Object ( )
virtual

Definition at line 44 of file object.cpp.

Member Function Documentation

◆ call()

Variable Aurora::ActionScript::Object::call ( const Common::UString function,
AVM avm,
const std::vector< Variable > &  arguments = std::vector<Variable>() 
)

◆ getMember()

Variable Aurora::ActionScript::Object::getMember ( const Variable id)
virtual

Reimplemented in Aurora::ActionScript::Array.

Definition at line 59 of file object.cpp.

References _members.

Referenced by call(), and Aurora::ActionScript::Array::getMember().

Here is the caller graph for this function:

◆ getSlots()

std::vector< Common::UString > Aurora::ActionScript::Object::getSlots ( ) const

Definition at line 47 of file object.cpp.

References _members.

◆ hasMember()

bool Aurora::ActionScript::Object::hasMember ( const Common::UString id)

Definition at line 55 of file object.cpp.

References _members.

Referenced by call().

Here is the caller graph for this function:

◆ setMember() [1/2]

void Aurora::ActionScript::Object::setMember ( const Variable id,
const Variable value 
)
virtual

Reimplemented in Aurora::ActionScript::Array.

Definition at line 72 of file object.cpp.

References _members.

Referenced by Aurora::ActionScript::Array::setMember().

Here is the caller graph for this function:

◆ setMember() [2/2]

void Aurora::ActionScript::Object::setMember ( const Common::UString id,
Function function 
)
virtual

Definition at line 79 of file object.cpp.

References _members.

Member Data Documentation

◆ _members

std::map<Common::UString, Variable> Aurora::ActionScript::Object::_members
private

Definition at line 64 of file object.h.

Referenced by getMember(), getSlots(), hasMember(), Object(), and setMember().


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