used inside VariableStore to implement variable scoping More...
#include <Scope.hpp>
Public Types | |
enum | Type { GLOBAL_SCOPE, LOCAL_SCOPE, LOGICAL_BLOCK_SCOPE } |
enum for classifying type of scope More... | |
typedef xercesc::RefHash2KeysTableOf < VarHashEntry< TYPE > > | VarHash |
Public Member Functions | |
Scope (XPath2MemoryManager *memMgr, Type type) | |
constructor. | |
~Scope () | |
void | clear () |
Type | getType () const |
VarHashEntry< TYPE > * | get (unsigned int nsID, const XMLCh *name) |
void | put (unsigned int nsID, const XMLCh *name, VarHashEntry< TYPE > *value) |
void | remove (unsigned int nsID, const XMLCh *name) |
std::vector< std::pair < unsigned int, const XMLCh * > > | getVars () const |
Scope * | getNext () |
void | setNext (Scope *next) |
used inside VariableStore to implement variable scoping
typedef xercesc:: RefHash2KeysTableOf< VarHashEntry<TYPE> > Scope< TYPE >::VarHash |
enum Scope::Type |
Scope< TYPE >::Scope | ( | XPath2MemoryManager * | memMgr, | |
Type | type | |||
) | [inline] |
constructor.
void Scope< TYPE >::clear | ( | ) | [inline] |
VarHashEntry< TYPE > * Scope< TYPE >::get | ( | unsigned int | nsID, | |
const XMLCh * | name | |||
) | [inline] |
std::vector< std::pair< unsigned int, const XMLCh * > > Scope< TYPE >::getVars | ( | ) | const [inline] |
void Scope< TYPE >::put | ( | unsigned int | nsID, | |
const XMLCh * | name, | |||
VarHashEntry< TYPE > * | value | |||
) | [inline] |
References XPath2MemoryManager::getPooledString().
void Scope< TYPE >::remove | ( | unsigned int | nsID, | |
const XMLCh * | name | |||
) | [inline] |