Go to the documentation of this file.
19 #ifndef GNASH_AS_NAMESPACE_H
20 #define GNASH_AS_NAMESPACE_H
59 mRecursePrevent(false),
85 if (getScriptInternal(
name))
return false;
86 _scripts[
static_cast<std::size_t
>(
name)] =
a;
96 if (mRecursePrevent)
return NULL;
102 mRecursePrevent =
true;
104 mRecursePrevent =
false;
128 typedef std::map<string_table::key, Class*> container;
130 mutable bool mRecursePrevent;
138 container::const_iterator
i;
140 if (_scripts.empty())
return NULL;
142 i = _scripts.find(
name);
144 if (
i == _scripts.end())
return NULL;
void setName(string_table::key name)
Set our Name.
Definition: Class.h:109
Class * getScript(string_table::key name)
Definition: Namespace.h:94
void dump(string_table &st)
Definition: Namespace.cpp:43
string_table::key getURI() const
What is the Uri of the namespace?
Definition: Namespace.h:76
void unsetPackage()
Definition: Namespace.h:119
std::string name
Definition: LocalConnection_as.cpp:149
bool isPackage()
Definition: Namespace.h:120
A general use string table.
Definition: string_table.h:42
const std::string & value(key to_find) const
Find a string by its key.
Definition: string_table.h:102
void log_debug(StringType msg, Args... args)
Definition: log.h:301
Represent an ActionScript Namespace.
Definition: Namespace.h:49
@ i
Definition: GnashKey.h:155
bool isPrivate()
Definition: Namespace.h:112
void stubPrototype(ClassHierarchy &ch, string_table::key name)
Definition: Namespace.cpp:35
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
void setProtected()
Definition: Namespace.h:114
@ s
Definition: GnashKey.h:165
@ t
Definition: GnashKey.h:166
@ a
Definition: GnashKey.h:147
bool addScript(string_table::key name, Class *a)
Definition: Namespace.h:83
void setParent(Namespace *p)
Our parent (for protected)
Definition: Namespace.h:68
void unsetPrivate()
Definition: Namespace.h:111
@ p
Definition: GnashKey.h:162
A class to represent AS3 Classes.
Definition: Class.h:76
bool isProtected()
Definition: Namespace.h:116
string_table::key getPrefix() const
What is the XML prefix?
Definition: Namespace.h:79
Namespace()
Create an empty namespace.
Definition: Namespace.h:53
void setPackage()
Definition: Namespace.h:118
void markReachableResources() const
Definition: Namespace.h:65
std::size_t key
Definition: string_table.h:83
Register all of the ActionScript classes, with their dependencies.
Definition: ClassHierarchy.h:41
void unsetProtected()
Definition: Namespace.h:115
Namespace * getParent()
Definition: Namespace.h:70
@ e
Definition: GnashKey.h:151
void setPrivate()
Definition: Namespace.h:110
void setURI(string_table::key name)
Set the uri.
Definition: Namespace.h:73