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

Class representing the abstract syntax tree of a documentation block. More...

#include <src/docnode.h>

Inheritance diagram for DocNodeAST:
Collaboration diagram for DocNodeAST:

Public Member Functions

template<class DocNode>
 DocNodeAST (DocNode &&r)
bool isEmpty () const override

Public Attributes

DocNodeVariant root

Detailed Description

Class representing the abstract syntax tree of a documentation block.

Definition at line 1470 of file docnode.h.

Constructor & Destructor Documentation

◆ DocNodeAST()

template<class DocNode>
DocNodeAST::DocNodeAST ( DocNode && r)
inline

Definition at line 1476 of file docnode.h.

1476 : root(std::move(r))
1477 {
1478 std::get_if<DocNode>(&root)->setThisVariant(&root);
1479 }
DocNodeVariant root
Definition docnode.h:1496

References root.

Member Function Documentation

◆ isEmpty()

bool DocNodeAST::isEmpty ( ) const
inlineoverridevirtual

Implements IDocNodeAST.

Definition at line 1480 of file docnode.h.

1481 {
1482 if (std::holds_alternative<DocRoot>(root))
1483 {
1484 return std::get<DocRoot>(root).isEmpty();
1485 }
1486 else if (std::holds_alternative<DocText>(root))
1487 {
1488 return std::get<DocText>(root).isEmpty();
1489 }
1490 else if (std::holds_alternative<DocTitle>(root))
1491 {
1492 return std::get<DocTitle>(root).isEmpty();
1493 }
1494 return false;
1495 }

References root.

Member Data Documentation

◆ root


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