Doxygen
Loading...
Searching...
No Matches
AutoNodeStack Class Reference

#include <src/docparser_p.h>

+ Collaboration diagram for AutoNodeStack:

Public Member Functions

 AutoNodeStack (DocParser *parser, DocNodeVariant *node)
 
 ~AutoNodeStack ()
 

Private Attributes

DocParserm_parser
 
const DocNodeVariantm_node
 

Detailed Description

Definition at line 146 of file docparser_p.h.

Constructor & Destructor Documentation

◆ AutoNodeStack()

AutoNodeStack::AutoNodeStack ( DocParser * parser,
DocNodeVariant * node )
inline

Definition at line 149 of file docparser_p.h.

150 : m_parser(parser), m_node(node) { m_parser->context.nodeStack.push(node); }
DocParser * m_parser
const DocNodeVariant * m_node

References m_node, and m_parser.

◆ ~AutoNodeStack()

AutoNodeStack::~AutoNodeStack ( )
inline

Definition at line 151 of file docparser_p.h.

152 {
153#if defined(NDEBUG)
154 (void)m_node;
155 if (!m_parser->context.nodeStack.empty())
156 {
157 m_parser->context.nodeStack.pop(); // robust version that does not assert
158 }
159#else
160 assert(m_parser->context.nodeStack.top()==m_node);
161 m_parser->context.nodeStack.pop(); // error checking version
162#endif
163 }

References m_node, and m_parser.

Member Data Documentation

◆ m_node

const DocNodeVariant* AutoNodeStack::m_node
private

Definition at line 168 of file docparser_p.h.

Referenced by AutoNodeStack(), and ~AutoNodeStack().

◆ m_parser

DocParser* AutoNodeStack::m_parser
private

Definition at line 167 of file docparser_p.h.

Referenced by AutoNodeStack(), and ~AutoNodeStack().


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