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

#include <array.h>

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

Public Member Functions

 Array (const std::list< Variable > &values=std::list< Variable >())
 
size_t length () const
 
void push (const Variable &v)
 
Variable pop ()
 
Variable getMember (const Variable &id)
 
void setMember (const Variable &id, const Variable &value)
 
- 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 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::list< Variable_values
 

Detailed Description

Definition at line 41 of file array.h.

Constructor & Destructor Documentation

◆ Array()

Aurora::ActionScript::Array::Array ( const std::list< Variable > &  values = std::list<Variable>())

Definition at line 48 of file array.cpp.

References Aurora::ActionScript::as_pop(), Aurora::ActionScript::as_push(), and setMember().

Here is the call graph for this function:

Member Function Documentation

◆ getMember()

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

Reimplemented from Aurora::ActionScript::Object.

Definition at line 67 of file array.cpp.

References _values, and Aurora::ActionScript::Object::getMember().

Here is the call graph for this function:

◆ length()

size_t Aurora::ActionScript::Array::length ( ) const

Definition at line 53 of file array.cpp.

References _values.

◆ pop()

Variable Aurora::ActionScript::Array::pop ( )

Definition at line 61 of file array.cpp.

References _values.

◆ push()

void Aurora::ActionScript::Array::push ( const Variable v)

Definition at line 57 of file array.cpp.

References _values.

◆ setMember()

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

Reimplemented from Aurora::ActionScript::Object.

Definition at line 80 of file array.cpp.

References _values, and Aurora::ActionScript::Object::setMember().

Referenced by Array().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _values

std::list<Variable> Aurora::ActionScript::Array::_values
private

Definition at line 54 of file array.h.

Referenced by getMember(), length(), pop(), push(), and setMember().


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