Skip to main content

The AutoNodeStack Class Reference

Declaration

class AutoNodeStack { ... }

Included Headers

#include <src/docparser_p.h>

Public Constructors Index

AutoNodeStack (DocParser *parser, DocNodeVariant *node)

Public Destructor Index

~AutoNodeStack ()

Private Member Attributes Index

DocParser *m_parser
const DocNodeVariant *m_node

Definition at line 147 of file docparser_p.h.

Public Constructors

AutoNodeStack()

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

Definition at line 150 of file docparser_p.h.

151 : m_parser(parser), m_node(node) { m_parser->context.nodeStack.push(node); }

References m_node and m_parser.

Public Destructor

~AutoNodeStack()

AutoNodeStack::~AutoNodeStack ()
inline

Definition at line 152 of file docparser_p.h.

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

References m_node and m_parser.

Private Member Attributes

m_node

const DocNodeVariant* AutoNodeStack::m_node

Definition at line 169 of file docparser_p.h.

Referenced by AutoNodeStack and ~AutoNodeStack.

m_parser

DocParser* AutoNodeStack::m_parser

Definition at line 168 of file docparser_p.h.

Referenced by AutoNodeStack and ~AutoNodeStack.


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


Generated via doxygen2docusaurus by Doxygen 1.14.0.