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;
98 Class* found = getScriptInternal(name);
100 if (found || !getParent())
return found;
102 mRecursePrevent =
true;
103 found = getParent()->getScript(name);
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;
Definition: GnashKey.h:147
bool addScript(string_table::key name, Class *a)
Definition: Namespace.h:83
void unsetProtected()
Definition: Namespace.h:115
string_table::key getPrefix() const
What is the XML prefix?
Definition: Namespace.h:79
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
Namespace()
Create an empty namespace.
Definition: Namespace.h:53
bool isPrivate()
Definition: Namespace.h:112
Represent an ActionScript Namespace.
Definition: Namespace.h:48
Register all of the ActionScript classes, with their dependencies.
Definition: ClassHierarchy.h:40
A general use string table.
Definition: string_table.h:41
void setParent(Namespace *p)
Our parent (for protected)
Definition: Namespace.h:68
A class to represent AS3 Classes.
Definition: Class.h:75
Class * getScript(string_table::key name)
Definition: Namespace.h:94
void setURI(string_table::key name)
Set the uri.
Definition: Namespace.h:73
void markReachableResources() const
Definition: Namespace.h:65
bool isProtected()
Definition: Namespace.h:116
void unsetPrivate()
Definition: Namespace.h:111
Namespace * getParent()
Definition: Namespace.h:70
void setPackage()
Definition: Namespace.h:118
string_table::key getURI() const
What is the Uri of the namespace?
Definition: Namespace.h:76
Definition: GnashKey.h:162
Definition: GnashKey.h:155
void unsetPackage()
Definition: Namespace.h:119
void setPrivate()
Definition: Namespace.h:110
std::size_t key
Definition: string_table.h:83
bool isPackage()
Definition: Namespace.h:120
std::string name
Definition: LocalConnection_as.cpp:149
void setProtected()
Definition: Namespace.h:114