A class for keeping reference to a persistent context.
V * GetPValue(const std::map< K, V * > &m, const K &k)
It finds for a given key in the map and returns a pointer if something is found or NULL otherwise...
std::map< std::string, JsContext * > m_ctxMap
A map from (JsContext id) to (JsContext instance).
A singleton for managing JavaScript contexts.
A class for keeping reference to a persistent context.
void add(const std::string &id, JsContext *ctx)
It adds a new context to be managed.
void clear()
It releases all contexts.
JsContext * getCtx(const std::string &id) const
It returns the context identified by id.