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 Member Functions inherited from IDocNodeAST

Public Attributes

DocNodeVariant root
 

Detailed Description

Class representing the abstract syntax tree of a documentation block.

Definition at line 1445 of file docnode.h.

Constructor & Destructor Documentation

◆ DocNodeAST()

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

Definition at line 1451 of file docnode.h.

1451 : root(std::move(r))
1452 {
1453 std::get_if<DocNode>(&root)->setThisVariant(&root);
1454 }
DocNodeVariant root
Definition docnode.h:1467

References root.

Member Function Documentation

◆ isEmpty()

bool DocNodeAST::isEmpty ( ) const
inlineoverridevirtual

Implements IDocNodeAST.

Definition at line 1455 of file docnode.h.

1456 {
1457 if (std::holds_alternative<DocRoot>(root))
1458 {
1459 return std::get<DocRoot>(root).isEmpty();
1460 }
1461 else if (std::holds_alternative<DocText>(root))
1462 {
1463 return std::get<DocText>(root).isEmpty();
1464 }
1465 return false;
1466 }

References root.

Member Data Documentation

◆ root


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