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)
DocNodeListchildren ()
const DocNodeListchildren () const
Public Member Functions inherited from DocNode
 DocNode (DocParser *parser, DocNodeVariant *parent)
 ~DocNode ()=default
DocNodeVariantparent ()
const DocNodeVariantparent () const
DocNodeVariantthisVariant ()
const DocNodeVariantthisVariant () const
void setThisVariant (DocNodeVariant *thisVariant)
DocParserparser ()
const DocParserparser () 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 1329 of file docnode.cpp.

1330{
1331}
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 1333 of file docnode.cpp.

1334{
1335 AUTO_TRACE();
1336 auto ns = AutoNodeStack(parser(),thisVariant());
1337
1339 Token tok = parser()->tokenizer.lex();
1340 while (!tok.is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1341 {
1342 if (!parser()->defaultHandleToken(thisVariant(),tok,children()))
1343 {
1344 parser()->errorHandleDefaultToken(thisVariant(),tok,children(),"\\vhdlflow");
1345 }
1346 tok = parser()->tokenizer.lex();
1347 }
1348 parser()->tokenizer.lex();
1349
1352
1353 VhdlDocGen::createFlowChart(parser()->context.memberDef);
1354}
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:51

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: