SourceForge.net Logo
Scope< TYPE > Class Template Reference

used inside VariableStore to implement variable scoping More...

#include <Scope.hpp>

Inheritance diagram for Scope< TYPE >:

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
 
ScopegetNext ()
 
void setNext (Scope *next)
 

Detailed Description

template<class TYPE>
class Scope< TYPE >

used inside VariableStore to implement variable scoping

Member Typedef Documentation

◆ VarHash

template<class TYPE>
typedef xercesc:: RefHash2KeysTableOf< VarHashEntry<TYPE> > Scope< TYPE >::VarHash

Member Enumeration Documentation

◆ Type

template<class TYPE>
enum Scope::Type

enum for classifying type of scope

Enumerator
GLOBAL_SCOPE 
LOCAL_SCOPE 
LOGICAL_BLOCK_SCOPE 

Constructor & Destructor Documentation

◆ Scope()

template<class TYPE>
Scope< TYPE >::Scope ( XPath2MemoryManager * memMgr,
Type type )

constructor.

Referenced by getNext(), and setNext().

◆ ~Scope()

template<class TYPE>
Scope< TYPE >::~Scope ( )

Member Function Documentation

◆ clear()

template<class TYPE>
void Scope< TYPE >::clear ( )

◆ get()

template<class TYPE>
VarHashEntry< TYPE > * Scope< TYPE >::get ( unsigned int nsID,
const XMLCh * name )

◆ getNext()

template<class TYPE>
Scope< TYPE > * Scope< TYPE >::getNext ( )

References Scope().

◆ getType()

template<class TYPE>
Scope< TYPE >::Type Scope< TYPE >::getType ( ) const

◆ getVars()

template<class TYPE>
std::vector< std::pair< unsigned int, const XMLCh * > > Scope< TYPE >::getVars ( ) const

◆ put()

template<class TYPE>
void Scope< TYPE >::put ( unsigned int nsID,
const XMLCh * name,
VarHashEntry< TYPE > * value )

◆ remove()

template<class TYPE>
void Scope< TYPE >::remove ( unsigned int nsID,
const XMLCh * name )

◆ setNext()

template<class TYPE>
void Scope< TYPE >::setNext ( Scope< TYPE > * next)

References Scope().


The documentation for this class was generated from the following file: