SourceForge.net Logo
Public Member Functions | List of all members
VariableTypeStore Class Referenceabstract

This is the wrapper class for the variable store, which implements the lookup and scoping of simple variables. More...

#include <VariableTypeStore.hpp>

Inheritance diagram for VariableTypeStore:
Inheritance graph
[legend]

Public Member Functions

virtual ~VariableTypeStore ()
 default destructor More...
 
virtual void clear ()=0
 Clears all variable values and added scopes from the store. More...
 
virtual void addLocalScope ()=0
 Adds a new local scope to the store. More...
 
virtual void addLogicalBlockScope ()=0
 Adds a new logical block scope to the store. More...
 
virtual void removeScope ()=0
 Removes the top level scope from the store. More...
 
virtual void declareGlobalVar (const XMLCh *namespaceURI, const XMLCh *name, const StaticAnalysis &src, XQGlobalVariable *global)=0
 Declares and/or sets a variable in the global scope. More...
 
virtual const StaticAnalysisgetGlobalVar (const XMLCh *namespaceURI, const XMLCh *name, XQGlobalVariable **global=0) const =0
 Gets a variable from the global scope. More...
 
virtual void declareVar (const XMLCh *namespaceURI, const XMLCh *name, const StaticAnalysis &src)=0
 Declare a var in the top level scope (A full set of these namespaceURI/name pair methods should be made) More...
 
virtual const StaticAnalysisgetVar (const XMLCh *namespaceURI, const XMLCh *name, XQGlobalVariable **global=0) const =0
 Looks up the value of a variable in the current scope, using ident as an qname. More...
 
- Public Member Functions inherited from xercesc::XMemory
void * operator new (size_t size)
 This method overrides operator new. More...
 
void * operator new (size_t size, MemoryManager *memMgr)
 This method defines a custom operator new, that will use the provided memory manager to perform the allocation. More...
 
void * operator new (size_t size, void *ptr)
 This method overrides placement operator new. More...
 
void operator delete (void *p)
 This method overrides operator delete. More...
 
void operator delete (void *p, MemoryManager *memMgr)
 This method provides a matching delete for the custom operator new. More...
 
void operator delete (void *p, void *ptr)
 This method provides a matching delete for the placement new. More...
 

Additional Inherited Members

- Protected Member Functions inherited from xercesc::XMemory
 XMemory ()
 Protected default constructor. More...
 

Detailed Description

This is the wrapper class for the variable store, which implements the lookup and scoping of simple variables.

Constructor & Destructor Documentation

◆ ~VariableTypeStore()

virtual VariableTypeStore::~VariableTypeStore ( )
inlinevirtual

default destructor

Member Function Documentation

◆ addLocalScope()

virtual void VariableTypeStore::addLocalScope ( )
pure virtual

Adds a new local scope to the store.

◆ addLogicalBlockScope()

virtual void VariableTypeStore::addLogicalBlockScope ( )
pure virtual

Adds a new logical block scope to the store.

◆ clear()

virtual void VariableTypeStore::clear ( )
pure virtual

Clears all variable values and added scopes from the store.

◆ declareGlobalVar()

virtual void VariableTypeStore::declareGlobalVar ( const XMLCh *  namespaceURI,
const XMLCh *  name,
const StaticAnalysis src,
XQGlobalVariable *  global 
)
pure virtual

Declares and/or sets a variable in the global scope.

◆ declareVar()

virtual void VariableTypeStore::declareVar ( const XMLCh *  namespaceURI,
const XMLCh *  name,
const StaticAnalysis src 
)
pure virtual

Declare a var in the top level scope (A full set of these namespaceURI/name pair methods should be made)

◆ getGlobalVar()

virtual const StaticAnalysis* VariableTypeStore::getGlobalVar ( const XMLCh *  namespaceURI,
const XMLCh *  name,
XQGlobalVariable **  global = 0 
) const
pure virtual

Gets a variable from the global scope.

◆ getVar()

virtual const StaticAnalysis* VariableTypeStore::getVar ( const XMLCh *  namespaceURI,
const XMLCh *  name,
XQGlobalVariable **  global = 0 
) const
pure virtual

Looks up the value of a variable in the current scope, using ident as an qname.

Returns a boolean (true if successful), and the SequenceType value of the variable

◆ removeScope()

virtual void VariableTypeStore::removeScope ( )
pure virtual

Removes the top level scope from the store.

To be called at the end of methods to implement scoping.


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