bes  Updated for version 3.20.6
ncml_module::XMLNamespaceStack Class Reference
Collaboration diagram for ncml_module::XMLNamespaceStack:
Collaboration graph

Public Types

typedef std::vector< XMLNamespaceMap >::const_reverse_iterator const_iterator
 

Public Member Functions

XMLNamespaceStack::const_iterator begin () const
 
void clear ()
 
bool empty () const
 
XMLNamespaceStack::const_iterator end () const
 
void getFlattenedNamespacesUsingLexicalScoping (XMLNamespaceMap &nsFlattened) const
 
XMLNamespaceStackoperator= (const XMLNamespaceStack &rhs)
 
void pop ()
 
void push (const XMLNamespaceMap &nsMap)
 
const XMLNamespaceMaptop () const
 
 XMLNamespaceStack (const XMLNamespaceStack &proto)
 

Detailed Description

Definition at line 192 of file XMLHelpers.h.

Member Function Documentation

◆ begin()

XMLNamespaceStack::const_iterator ncml_module::XMLNamespaceStack::begin ( ) const

Starts from the top (most recently pushed) and iterates to the bottom (first pushed).

Definition at line 455 of file XMLHelpers.cc.

◆ getFlattenedNamespacesUsingLexicalScoping()

void ncml_module::XMLNamespaceStack::getFlattenedNamespacesUsingLexicalScoping ( XMLNamespaceMap nsFlattened) const

Scanning from the stack top downwards, add the first found new XMLNamespace (in terms of its prefix) into nsFlattened until the stack bottom is reached. Effectively finds all the namespaces visible on the stack currently. Note: Doesn't clear the nsFlattened, so it can be "seeded" with namespaces that should be shadowed on the stack (ie a local element's namespaces)

Parameters
nsFlattenednamespace container (could start !empty() which will contain the flattened namespaces using lexical scoping on the stack.

Definition at line 465 of file XMLHelpers.cc.


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