Go to the documentation of this file.
20 #ifndef GNASH_CLASS_HIERARCHY_H
21 #define GNASH_CLASS_HIERARCHY_H
void markReachableResources() const
Mark objects for garbage collector.
Definition: ClassHierarchy.h:115
The base class for all ActionScript objects.
Definition: as_object.h:162
as_object * toObject(const as_value &v, VM &vm)
Convert an as_value to an object.
Definition: VM.cpp:457
string_table::key getName(const ObjectURI &o)
Get the name element of an ObjectURI.
Definition: ObjectURI.h:116
InitFunc initializer
Definition: ClassHierarchy.h:80
void log_debug(StringType msg, Args... args)
Definition: log.h:301
@ onlySWF9Up
Only visible by VM initialized for version 9 or higher.
Definition: PropFlags.h:57
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
@ g
Definition: GnashKey.h:153
@ dontEnum
Protect from enumeration.
Definition: PropFlags.h:36
int version
The version at which this should be visible.
Definition: ClassHierarchy.h:86
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
void declareAll(const NativeClasses &classes)
Declare a list of native classes.
Definition: ClassHierarchy.cpp:123
void log_error(StringType msg, Args... args)
Definition: log.h:283
const ObjectURI uri
The name of the class.
Definition: ClassHierarchy.h:83
bool init_destructive_property(const ObjectURI &uri, as_function &getter, int flags=PropFlags::dontEnum)
Initialize a destructive getter property.
Definition: as_object.cpp:720
void for_each(C &container, R(T::*pmf)(const A &), const A &arg)
Definition: Renderer_ogl.cpp:690
void(* InitFunc)(as_object &obj, const ObjectURI &uri)
The type of function to use for initialization.
Definition: ClassHierarchy.h:68
bool declareClass(const NativeClass &c)
Definition: ClassHierarchy.cpp:112
@ _1
Definition: GnashKey.h:95
@ onlySWF8Up
Only visible by VM initialized for version 8 or higher.
Definition: PropFlags.h:54
int version
The version at which this should be added.
Definition: ClassHierarchy.h:61
ClassHierarchy(as_object *global)
Definition: ClassHierarchy.h:92
const ObjectURI uri
Definition: ClassHierarchy.h:58
@ onlySWF7Up
Only visible by VM initialized for version 7 or higher.
Definition: PropFlags.h:51
Definition: ClassHierarchy.h:65
@ onlySWF6Up
Only visible by VM initialized for version 6 or higher.
Definition: PropFlags.h:45
NativeClass(InitFunc init, ObjectURI u, int ver)
Definition: ClassHierarchy.h:70
@ f
Definition: GnashKey.h:152
@ c
Definition: GnashKey.h:149
string_table & getStringTable(const as_environment &env)
Definition: as_environment.cpp:639
Definition: ClassHierarchy.h:44
Register all of the ActionScript classes, with their dependencies.
Definition: ClassHierarchy.h:41
std::vector< NativeClass > NativeClasses
Definition: ClassHierarchy.h:101
@ u
Definition: GnashKey.h:167
A URI for describing as_objects.
Definition: ObjectURI.h:45
std::string file_name
The filename for the library relative to the plugins directory.
Definition: ClassHierarchy.h:46
~ClassHierarchy()
Delete our private namespaces.
Definition: ClassHierarchy.cpp:107
ActionScript Function, either builtin or SWF-defined.
Definition: as_function.h:63
std::string init_name
Definition: ClassHierarchy.h:56