Doxygen
Loading...
Searching...
No Matches
DocVhdlFlow Class Referencefinal

Node representing a VHDL flow chart. More...

#include <src/docnode.h>

Inheritance diagram for DocVhdlFlow:
Collaboration diagram for DocVhdlFlow:

Public Member Functions

 DocVhdlFlow (DocParser *parser, DocNodeVariant *parent)
void parse ()
bool hasCaption () const
Public Member Functions inherited from DocCompoundNode
 DocCompoundNode (DocParser *parser, DocNodeVariant *parent)
DocNodeList & children ()
const DocNodeList & children () const
Public Member Functions inherited from DocNode
 DocNode (DocParser *parser, DocNodeVariant *parent)
 ~DocNode ()=default
DocNodeVariant * parent ()
const DocNodeVariant * parent () const
DocNodeVariant * thisVariant ()
const DocNodeVariant * thisVariant () const
void setThisVariant (DocNodeVariant *thisVariant)
DocParser * parser ()
const DocParser * parser () const
void setParent (DocNodeVariant *parent)
bool isPreformatted () const

Additional Inherited Members

Protected Types inherited from DocNode
enum  RefType {
  Unknown , Anchor , Section , Table ,
  Requirement
}
Protected Member Functions inherited from DocNode
void setInsidePreformatted (bool p)

Detailed Description

Node representing a VHDL flow chart.

Definition at line 757 of file docnode.h.

Constructor & Destructor Documentation

◆ DocVhdlFlow()

DocVhdlFlow::DocVhdlFlow ( DocParser * parser,
DocNodeVariant * parent )

Definition at line 1341 of file docnode.cpp.

1342{
1343}
DocCompoundNode(DocParser *parser, DocNodeVariant *parent)
Definition docnode.h:141
DocParser * parser()
Definition docnode.h:97
DocNodeVariant * parent()
Definition docnode.h:89

References DocCompoundNode::DocCompoundNode(), DocNode::parent(), and DocNode::parser().

Member Function Documentation

◆ hasCaption()

bool DocVhdlFlow::hasCaption ( ) const
inline

Definition at line 762 of file docnode.h.

762{ return !children().empty(); }
DocNodeList & children()
Definition docnode.h:143
bool empty() const
checks whether the container is empty
Definition growvector.h:140

References DocCompoundNode::children(), and GrowVector< T >::empty().

Referenced by HtmlDocVisitor::operator()().

◆ parse()

void DocVhdlFlow::parse ( )

Definition at line 1345 of file docnode.cpp.

1346{
1347 AUTO_TRACE();
1348 auto ns = AutoNodeStack(parser(),thisVariant());
1349
1351 Token tok = parser()->tokenizer.lex();
1352 while (!tok.is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1353 {
1354 if (!parser()->defaultHandleToken(thisVariant(),tok,children()))
1355 {
1356 parser()->errorHandleDefaultToken(thisVariant(),tok,children(),"\\vhdlflow");
1357 }
1358 tok = parser()->tokenizer.lex();
1359 }
1360 parser()->tokenizer.lex();
1361
1364
1365 VhdlDocGen::createFlowChart(parser()->context.memberDef);
1366}
DocNodeVariant * thisVariant()
Definition docnode.h:92
void handlePendingStyleCommands(DocNodeVariant *parent, DocNodeList &children, size_t numberOfElementsToClose=0)
DocTokenizer tokenizer
void errorHandleDefaultToken(DocNodeVariant *parent, Token tok, DocNodeList &children, const DString &txt)
void setStateTitle()
void setStatePara()
bool is_any_of(ARGS... args) const
static void createFlowChart(const MemberDef *)
#define AUTO_TRACE(...)
Definition docnode.cpp:53

References AUTO_TRACE, DocCompoundNode::children(), VhdlDocGen::createFlowChart(), DocParser::errorHandleDefaultToken(), DocParser::handlePendingStyleCommands(), Token::is_any_of(), DocTokenizer::lex(), DocNode::parser(), DocTokenizer::setStatePara(), DocTokenizer::setStateTitle(), DocNode::thisVariant(), and DocParser::tokenizer.


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