#include <ElemStack.hpp>
Inheritance diagram for ElemStack:
Public Types | |
Mode_Attribute | |
Mode_Element | |
enum | MapModes { Mode_Attribute, Mode_Element } |
Public Member Functions | |
ElemStack (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
~ElemStack () | |
unsigned int | addLevel () |
unsigned int | addLevel (XMLElementDecl *const toSet, const unsigned int readerNum) |
const StackElem * | popTop () |
unsigned int | addChild (QName *const child, const bool toParent) |
const StackElem * | topElement () const |
void | setElement (XMLElementDecl *const toSet, const unsigned int readerNum) |
void | setValidationFlag (bool validationFlag) |
bool | getValidationFlag () |
void | setCurrentScope (int currentScope) |
int | getCurrentScope () |
void | setCurrentGrammar (Grammar *currentGrammar) |
Grammar * | getCurrentGrammar () |
void | setCurrentURI (unsigned int uri) |
unsigned int | getCurrentURI () |
void | addPrefix (const XMLCh *const prefixToAdd, const unsigned int uriId) |
unsigned int | mapPrefixToURI (const XMLCh *const prefixToMap, const MapModes mode, bool &unknown) const |
bool | isEmpty () const |
void | reset (const unsigned int emptyId, const unsigned int unknownId, const unsigned int xmlId, const unsigned int xmlNSId) |
Private Member Functions | |
ElemStack (const ElemStack &) | |
ElemStack & | operator= (const ElemStack &) |
void | expandMap (StackElem *const toExpand) |
void | expandStack () |
Private Attributes | |
unsigned int | fEmptyNamespaceId |
unsigned int | fGlobalPoolId |
XMLStringPool | fPrefixPool |
StackElem ** | fStack |
unsigned int | fStackCapacity |
unsigned int | fStackTop |
unsigned int | fUnknownNamespaceId |
unsigned int | fXMLNamespaceId |
unsigned int | fXMLPoolId |
unsigned int | fXMLNSNamespaceId |
unsigned int | fXMLNSPoolId |
MemoryManager * | fMemoryManager |
Classes | |
struct | PrefMapElem |
struct | StackElem |
Definition at line 164 of file ElemStack.hpp.
enum ElemStack::MapModes |
ElemStack::ElemStack | ( | MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager |
) |
ElemStack::~ElemStack | ( | ) |
ElemStack::ElemStack | ( | const ElemStack & | ) | [private] |
unsigned int ElemStack::addChild | ( | QName *const | child, | |
const bool | toParent | |||
) |
unsigned int ElemStack::addLevel | ( | XMLElementDecl *const | toSet, | |
const unsigned int | readerNum | |||
) |
unsigned int ElemStack::addLevel | ( | ) |
void ElemStack::addPrefix | ( | const XMLCh *const | prefixToAdd, | |
const unsigned int | uriId | |||
) |
void ElemStack::expandMap | ( | StackElem *const | toExpand | ) | [private] |
void ElemStack::expandStack | ( | ) | [private] |
Grammar * ElemStack::getCurrentGrammar | ( | ) | [inline] |
Definition at line 570 of file ElemStack.hpp.
References ElemStack::StackElem::fCurrentGrammar, fStack, and fStackTop.
int ElemStack::getCurrentScope | ( | ) | [inline] |
Definition at line 559 of file ElemStack.hpp.
References ElemStack::StackElem::fCurrentScope, fStack, and fStackTop.
unsigned int ElemStack::getCurrentURI | ( | ) | [inline] |
Definition at line 581 of file ElemStack.hpp.
References ElemStack::StackElem::fCurrentURI, fStack, and fStackTop.
bool ElemStack::getValidationFlag | ( | ) | [inline] |
Definition at line 548 of file ElemStack.hpp.
References fStack, fStackTop, and ElemStack::StackElem::fValidationFlag.
bool ElemStack::isEmpty | ( | ) | const [inline] |
unsigned int ElemStack::mapPrefixToURI | ( | const XMLCh *const | prefixToMap, | |
const MapModes | mode, | |||
bool & | unknown | |||
) | const |
const StackElem* ElemStack::popTop | ( | ) |
void ElemStack::reset | ( | const unsigned int | emptyId, | |
const unsigned int | unknownId, | |||
const unsigned int | xmlId, | |||
const unsigned int | xmlNSId | |||
) |
void ElemStack::setCurrentGrammar | ( | Grammar * | currentGrammar | ) | [inline] |
Definition at line 575 of file ElemStack.hpp.
References ElemStack::StackElem::fCurrentGrammar, fStack, and fStackTop.
void ElemStack::setCurrentScope | ( | int | currentScope | ) | [inline] |
Definition at line 564 of file ElemStack.hpp.
References ElemStack::StackElem::fCurrentScope, fStack, and fStackTop.
void ElemStack::setCurrentURI | ( | unsigned int | uri | ) | [inline] |
Definition at line 586 of file ElemStack.hpp.
References ElemStack::StackElem::fCurrentURI, fStack, and fStackTop.
void ElemStack::setElement | ( | XMLElementDecl *const | toSet, | |
const unsigned int | readerNum | |||
) |
void ElemStack::setValidationFlag | ( | bool | validationFlag | ) | [inline] |
Definition at line 553 of file ElemStack.hpp.
References fStack, fStackTop, and ElemStack::StackElem::fValidationFlag.
const StackElem* ElemStack::topElement | ( | ) | const |
unsigned int ElemStack::fEmptyNamespaceId [private] |
Definition at line 345 of file ElemStack.hpp.
unsigned int ElemStack::fGlobalPoolId [private] |
Definition at line 346 of file ElemStack.hpp.
MemoryManager* ElemStack::fMemoryManager [private] |
Definition at line 356 of file ElemStack.hpp.
XMLStringPool ElemStack::fPrefixPool [private] |
Definition at line 347 of file ElemStack.hpp.
StackElem** ElemStack::fStack [private] |
Definition at line 348 of file ElemStack.hpp.
Referenced by getCurrentGrammar(), getCurrentScope(), getCurrentURI(), getValidationFlag(), setCurrentGrammar(), setCurrentScope(), setCurrentURI(), and setValidationFlag().
unsigned int ElemStack::fStackCapacity [private] |
Definition at line 349 of file ElemStack.hpp.
unsigned int ElemStack::fStackTop [private] |
Definition at line 350 of file ElemStack.hpp.
Referenced by getCurrentGrammar(), getCurrentScope(), getCurrentURI(), getValidationFlag(), isEmpty(), setCurrentGrammar(), setCurrentScope(), setCurrentURI(), and setValidationFlag().
unsigned int ElemStack::fUnknownNamespaceId [private] |
Definition at line 351 of file ElemStack.hpp.
unsigned int ElemStack::fXMLNamespaceId [private] |
Definition at line 352 of file ElemStack.hpp.
unsigned int ElemStack::fXMLNSNamespaceId [private] |
Definition at line 354 of file ElemStack.hpp.
unsigned int ElemStack::fXMLNSPoolId [private] |
Definition at line 355 of file ElemStack.hpp.
unsigned int ElemStack::fXMLPoolId [private] |
Definition at line 353 of file ElemStack.hpp.