summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Context.h
diff options
context:
space:
mode:
authorJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-04 13:24:14 +0100
committerJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-04 13:24:14 +0100
commit22d6df9927970690136cb46c2728a21bb5830c41 (patch)
treeff87b5515a9c99db9298256ee5769f988a2ebf28 /Sencha-lang/Context.h
parent02bced0b5dbcd1dc9ccdc6f7bcd5c7ba09b28179 (diff)
downloadsencha-lang-22d6df9927970690136cb46c2728a21bb5830c41.tar.gz
sencha-lang-22d6df9927970690136cb46c2728a21bb5830c41.tar.bz2
sencha-lang-22d6df9927970690136cb46c2728a21bb5830c41.zip
More small improvements.
Diffstat (limited to 'Sencha-lang/Context.h')
-rw-r--r--Sencha-lang/Context.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Sencha-lang/Context.h b/Sencha-lang/Context.h
index 916cbd4..0a99731 100644
--- a/Sencha-lang/Context.h
+++ b/Sencha-lang/Context.h
@@ -34,13 +34,17 @@ public:
void add(std::string name, SenchaObject object);
void set(std::string name, SenchaObject object);
SenchaObject get(std::string name);
+ bool contains_function(std::string name);
+ bool contains_sfunction(std::string name);
+ bool contains_nfunction(std::string name);
+ std::map<std::string, PointerToNativeFunction> registered_functions;
+ std::map<std::string, SenchaFunction *> registered_sfunctions;
virtual ~Context();
private:
unsigned int index;
- std::map<std::string, PointerToNativeFunction> registered_functions;
- std::map<std::string, SenchaFunction *> registered_sfunctions;
+
std::map<std::string, SenchaObject> object_store;
};