Doxygen
DocNode类 参考abstract

Abstract node interface with type information. 更多...

#include <docparser.h>

+ 类 DocNode 继承关系图:
+ DocNode 的协作图:

Public 类型

enum  Kind {
  Kind_Root = 0, Kind_Word = 1, Kind_WhiteSpace = 2, Kind_Para = 3,
  Kind_AutoList = 4, Kind_AutoListItem = 5, Kind_Symbol = 6, Kind_URL = 7,
  Kind_StyleChange = 8, Kind_SimpleSect = 9, Kind_Title = 10, Kind_SimpleList = 11,
  Kind_SimpleListItem = 12, Kind_Section = 13, Kind_Verbatim = 14, Kind_XRefItem = 15,
  Kind_HtmlList = 16, Kind_HtmlListItem = 17, Kind_HtmlDescList = 18, Kind_HtmlDescData = 19,
  Kind_HtmlDescTitle = 20, Kind_HtmlTable = 21, Kind_HtmlRow = 22, Kind_HtmlCell = 23,
  Kind_HtmlCaption = 24, Kind_LineBreak = 25, Kind_HorRuler = 26, Kind_Anchor = 27,
  Kind_IndexEntry = 28, Kind_Internal = 29, Kind_HRef = 30, Kind_Include = 31,
  Kind_IncOperator = 32, Kind_HtmlHeader = 33, Kind_Image = 34, Kind_DotFile = 35,
  Kind_Link = 36, Kind_Ref = 37, Kind_Formula = 38, Kind_SecRefItem = 39,
  Kind_SecRefList = 40, Kind_SimpleSectSep = 41, Kind_LinkedWord = 42, Kind_ParamSect = 43,
  Kind_ParamList = 44, Kind_InternalRef = 45, Kind_Copy = 46, Kind_Text = 47,
  Kind_MscFile = 48, Kind_HtmlBlockQuote = 49, Kind_VhdlFlow = 50, Kind_ParBlock = 51,
  Kind_DiaFile = 52, Kind_Emoji = 53, Kind_Sep = 54
}
 

Public 成员函数

 DocNode (DocParser &parser)
 
virtual ~DocNode ()
 
virtual Kind kind () const =0
 
DocNodeparent () const
 
void setParent (DocNode *parent)
 
virtual void accept (DocVisitor *v)=0
 
bool isPreformatted () const
 

Protected 类型

enum  RefType { Unknown, Anchor, Section, Table }
 

Protected 成员函数

void setInsidePreformatted (bool p)
 

Protected 属性

DocNodem_parent = 0
 
DocParserm_parser
 

Private 属性

bool m_insidePre = false
 

详细描述

Abstract node interface with type information.

在文件 docparser.h96 行定义.

成员枚举类型说明

◆ Kind

Available node types.

枚举值
Kind_Root 
Kind_Word 
Kind_WhiteSpace 
Kind_Para 
Kind_AutoList 
Kind_AutoListItem 
Kind_Symbol 
Kind_URL 
Kind_StyleChange 
Kind_SimpleSect 
Kind_Title 
Kind_SimpleList 
Kind_SimpleListItem 
Kind_Section 
Kind_Verbatim 
Kind_XRefItem 
Kind_HtmlList 
Kind_HtmlListItem 
Kind_HtmlDescList 
Kind_HtmlDescData 
Kind_HtmlDescTitle 
Kind_HtmlTable 
Kind_HtmlRow 
Kind_HtmlCell 
Kind_HtmlCaption 
Kind_LineBreak 
Kind_HorRuler 
Kind_Anchor 
Kind_IndexEntry 
Kind_Internal 
Kind_HRef 
Kind_Include 
Kind_IncOperator 
Kind_HtmlHeader 
Kind_Image 
Kind_DotFile 
Kind_Link 
Kind_Ref 
Kind_Formula 
Kind_SecRefItem 
Kind_SecRefList 
Kind_SimpleSectSep 
Kind_LinkedWord 
Kind_ParamSect 
Kind_ParamList 
Kind_InternalRef 
Kind_Copy 
Kind_Text 
Kind_MscFile 
Kind_HtmlBlockQuote 
Kind_VhdlFlow 
Kind_ParBlock 
Kind_DiaFile 
Kind_Emoji 
Kind_Sep 

在文件 docparser.h100 行定义.

100  { Kind_Root = 0,
101  Kind_Word = 1,
102  Kind_WhiteSpace = 2,
103  Kind_Para = 3,
104  Kind_AutoList = 4,
105  Kind_AutoListItem = 5,
106  Kind_Symbol = 6,
107  Kind_URL = 7,
108  Kind_StyleChange = 8,
109  Kind_SimpleSect = 9,
110  Kind_Title = 10,
111  Kind_SimpleList = 11,
112  Kind_SimpleListItem = 12,
113  Kind_Section = 13,
114  Kind_Verbatim = 14,
115  Kind_XRefItem = 15,
116  Kind_HtmlList = 16,
117  Kind_HtmlListItem = 17,
118  Kind_HtmlDescList = 18,
119  Kind_HtmlDescData = 19,
120  Kind_HtmlDescTitle = 20,
121  Kind_HtmlTable = 21,
122  Kind_HtmlRow = 22,
123  Kind_HtmlCell = 23,
124  Kind_HtmlCaption = 24,
125  Kind_LineBreak = 25,
126  Kind_HorRuler = 26,
127  Kind_Anchor = 27,
128  Kind_IndexEntry = 28,
129  Kind_Internal = 29,
130  Kind_HRef = 30,
131  Kind_Include = 31,
132  Kind_IncOperator = 32,
133  Kind_HtmlHeader = 33,
134  Kind_Image = 34,
135  Kind_DotFile = 35,
136  Kind_Link = 36,
137  Kind_Ref = 37,
138  Kind_Formula = 38,
139  Kind_SecRefItem = 39,
140  Kind_SecRefList = 40,
141  Kind_SimpleSectSep = 41,
142  Kind_LinkedWord = 42,
143  Kind_ParamSect = 43,
144  Kind_ParamList = 44,
145  Kind_InternalRef = 45,
146  Kind_Copy = 46,
147  Kind_Text = 47,
148  Kind_MscFile = 48,
149  Kind_HtmlBlockQuote = 49,
150  Kind_VhdlFlow = 50,
151  Kind_ParBlock = 51,
152  Kind_DiaFile = 52,
153  Kind_Emoji = 53,
154  Kind_Sep = 54
155  };

◆ RefType

enum DocNode::RefType
protected
枚举值
Unknown 
Anchor 
Section 
Table 

在文件 docparser.h183 行定义.

183 { Unknown, Anchor, Section, Table };

构造及析构函数说明

◆ DocNode()

DocNode::DocNode ( DocParser parser)
inline

Creates a new node

在文件 docparser.h157 行定义.

157 : m_parser(parser) {}

◆ ~DocNode()

virtual DocNode::~DocNode ( )
inlinevirtual

Destroys a node.

在文件 docparser.h160 行定义.

160 {}

成员函数说明

◆ accept()

virtual void DocNode::accept ( DocVisitor v)
pure virtual

Acceptor function for node visitors. Part of the visitor pattern.

参数
vAbstract visitor.

DocHtmlTable, DocSimpleListItem, DocParamList, DocSimpleSectSep, DocSimpleSect, DocIndexEntry, DocFormula, DocIncOperator, DocInclude, DocVerbatim, DocWhiteSpace, DocEmoji, DocSymbol, DocStyleChange, DocCite, DocAnchor, DocHorRuler, DocLineBreak, DocURL, DocLinkedWord, DocWord, CompAccept< T >, CompAccept< DocParamSect >, CompAccept< DocHtmlDescList >, CompAccept< DocHtmlCaption >, CompAccept< DocSimpleList >, CompAccept< DocRef >, CompAccept< DocParBlock >, CompAccept< DocXRefItem >, CompAccept< DocLink >, CompAccept< DocMscFile >, CompAccept< DocTitle >, CompAccept< DocHtmlRow >, CompAccept< DocHtmlBlockQuote >, CompAccept< DocHtmlDescTitle >, CompAccept< DocHtmlListItem >, CompAccept< DocInternal >, CompAccept< DocDiaFile >, CompAccept< DocImage >, CompAccept< DocRoot >, CompAccept< DocDotFile >, CompAccept< DocSection >, CompAccept< DocText >, CompAccept< DocHtmlList >, CompAccept< DocHtmlCell >, CompAccept< DocHRef >, CompAccept< DocAutoList >, CompAccept< DocPara >, CompAccept< DocHtmlDescData >, CompAccept< DocVhdlFlow >, CompAccept< DocSecRefItem >, CompAccept< DocInternalRef >, CompAccept< DocHtmlHeader >, CompAccept< DocHtmlTable >, CompAccept< DocSimpleSect >, CompAccept< DocSecRefList >, CompAccept< DocAutoListItem > , 以及 DocSeparator 内被实现.

被这些函数引用 ManGenerator::writeDoc(), RTFGenerator::writeDoc(), HtmlGenerator::writeDoc(), LatexGenerator::writeDoc() , 以及 DocbookGenerator::writeDoc().

◆ isPreformatted()

bool DocNode::isPreformatted ( ) const
inline

Returns TRUE iff this node is inside a preformatted section

在文件 docparser.h177 行定义.

177 { return m_insidePre; }

引用了 m_insidePre.

被这些函数引用 insidePRE(), HtmlDocVisitor::visitPost() , 以及 HtmlDocVisitor::visitPre().

◆ kind()

virtual Kind DocNode::kind ( ) const
pure virtual

◆ parent()

DocNode* DocNode::parent ( ) const
inline

Returns the parent of this node or 0 for the root node.

在文件 docparser.h166 行定义.

166 { return m_parent; }

引用了 m_parent.

被这些函数引用 DocAnchor::DocAnchor(), DocAutoList::DocAutoList(), DocAutoListItem::DocAutoListItem(), DocCite::DocCite(), DocDiaFile::DocDiaFile(), DocDotFile::DocDotFile(), DocEmoji::DocEmoji(), DocFormula::DocFormula(), DocHorRuler::DocHorRuler(), DocHRef::DocHRef(), DocHtmlBlockQuote::DocHtmlBlockQuote(), DocHtmlCaption::DocHtmlCaption(), DocHtmlCell::DocHtmlCell(), DocHtmlDescData::DocHtmlDescData(), DocHtmlDescList::DocHtmlDescList(), DocHtmlDescTitle::DocHtmlDescTitle(), DocHtmlHeader::DocHtmlHeader(), DocHtmlList::DocHtmlList(), DocHtmlListItem::DocHtmlListItem(), DocHtmlRow::DocHtmlRow(), DocHtmlTable::DocHtmlTable(), DocImage::DocImage(), DocInclude::DocInclude(), DocIncOperator::DocIncOperator(), DocIndexEntry::DocIndexEntry(), DocInternal::DocInternal(), DocInternalRef::DocInternalRef(), DocLineBreak::DocLineBreak(), DocLink::DocLink(), DocLinkedWord::DocLinkedWord(), DocMscFile::DocMscFile(), DocPara::DocPara(), DocParamList::DocParamList(), DocParamSect::DocParamSect(), DocParBlock::DocParBlock(), DocRef::DocRef(), DocSecRefItem::DocSecRefItem(), DocSecRefList::DocSecRefList(), DocSection::DocSection(), DocSeparator::DocSeparator(), DocSimpleList::DocSimpleList(), DocSimpleListItem::DocSimpleListItem(), DocSimpleSect::DocSimpleSect(), DocSimpleSectSep::DocSimpleSectSep(), DocStyleChange::DocStyleChange(), DocSymbol::DocSymbol(), DocTitle::DocTitle(), DocURL::DocURL(), DocVerbatim::DocVerbatim(), DocVhdlFlow::DocVhdlFlow(), DocWhiteSpace::DocWhiteSpace(), DocWord::DocWord(), DocXRefItem::DocXRefItem(), HtmlDocVisitor::forceEndParagraph(), HtmlDocVisitor::forceStartParagraph(), getParagraphContext(), insideLI(), insideOL(), insidePRE(), insideTable(), insideUL(), listIsNested(), DocPara::parse(), DocParamList::parse(), setParent(), tableIsNested(), XmlDocVisitor::visit(), HtmlDocVisitor::visitPost(), LatexDocVisitor::visitPost(), ManDocVisitor::visitPost(), RTFDocVisitor::visitPost(), ManDocVisitor::visitPre(), HtmlDocVisitor::visitPre(), DocbookDocVisitor::visitPre(), LatexDocVisitor::visitPre(), RTFDocVisitor::visitPre() , 以及 PerlModDocVisitor::visitPre().

◆ setInsidePreformatted()

void DocNode::setInsidePreformatted ( bool  p)
inlineprotected

Sets whether or not this item is inside a preformatted section

在文件 docparser.h181 行定义.

181 { m_insidePre = p; }

引用了 m_insidePre.

被这些函数引用 DocPara::handleHtmlEndTag() , 以及 DocPara::handleHtmlStartTag().

◆ setParent()

void DocNode::setParent ( DocNode parent)
inline

Sets a new parent for this node.

在文件 docparser.h169 行定义.

169 { m_parent = parent; }

引用了 m_parent , 以及 parent().

被这些函数引用 flattenParagraphs().

类成员变量说明

◆ m_insidePre

bool DocNode::m_insidePre = false
private

在文件 docparser.h187 行定义.

被这些函数引用 isPreformatted() , 以及 setInsidePreformatted().

◆ m_parent

DocNode* DocNode::m_parent = 0
protected

在文件 docparser.h182 行定义.

被这些函数引用 DocAnchor::DocAnchor(), DocAutoList::DocAutoList(), DocAutoListItem::DocAutoListItem(), DocCite::DocCite(), DocDiaFile::DocDiaFile(), DocDotFile::DocDotFile(), DocEmoji::DocEmoji(), DocFormula::DocFormula(), DocHorRuler::DocHorRuler(), DocHRef::DocHRef(), DocHtmlBlockQuote::DocHtmlBlockQuote(), DocHtmlCaption::DocHtmlCaption(), DocHtmlCell::DocHtmlCell(), DocHtmlDescData::DocHtmlDescData(), DocHtmlDescList::DocHtmlDescList(), DocHtmlDescTitle::DocHtmlDescTitle(), DocHtmlHeader::DocHtmlHeader(), DocHtmlList::DocHtmlList(), DocHtmlListItem::DocHtmlListItem(), DocHtmlRow::DocHtmlRow(), DocHtmlTable::DocHtmlTable(), DocImage::DocImage(), DocInclude::DocInclude(), DocIncOperator::DocIncOperator(), DocIndexEntry::DocIndexEntry(), DocInternal::DocInternal(), DocInternalRef::DocInternalRef(), DocLineBreak::DocLineBreak(), DocLink::DocLink(), DocLinkedWord::DocLinkedWord(), DocMscFile::DocMscFile(), DocPara::DocPara(), DocParamList::DocParamList(), DocParamSect::DocParamSect(), DocParBlock::DocParBlock(), DocRef::DocRef(), DocSecRefItem::DocSecRefItem(), DocSecRefList::DocSecRefList(), DocSection::DocSection(), DocSeparator::DocSeparator(), DocSimpleList::DocSimpleList(), DocSimpleListItem::DocSimpleListItem(), DocSimpleSect::DocSimpleSect(), DocSimpleSectSep::DocSimpleSectSep(), DocStyleChange::DocStyleChange(), DocSymbol::DocSymbol(), DocTitle::DocTitle(), DocURL::DocURL(), DocVerbatim::DocVerbatim(), DocVhdlFlow::DocVhdlFlow(), DocWhiteSpace::DocWhiteSpace(), DocWord::DocWord(), DocXRefItem::DocXRefItem(), parent() , 以及 setParent().

◆ m_parser

DocParser& DocNode::m_parser
protected

在文件 docparser.h184 行定义.

被这些函数引用 DocSimpleSect::appendLinkWord(), DocPara::handleCite(), DocPara::handleCommand(), DocPara::handleEmoji(), DocPara::handleFile(), DocPara::handleHtmlEndTag(), DocPara::handleHtmlHeader(), DocPara::handleHtmlStartTag(), DocPara::handleIline(), DocPara::handleImage(), DocPara::handleInclude(), DocPara::handleIncludeOperator(), DocPara::handleInheritDoc(), DocPara::handleLink(), DocPara::handleParamSection(), DocPara::handleRef(), DocPara::handleSection(), DocPara::handleSimpleSection(), DocPara::handleStartCode(), DocPara::handleVhdlFlow(), DocPara::handleXRefItem(), DocPara::injectToken(), DocInclude::parse(), DocIncOperator::parse(), DocIndexEntry::parse(), DocAutoList::parse(), DocAutoListItem::parse(), DocTitle::parse(), DocXRefItem::parse(), DocImage::parse(), DocDotFile::parse(), DocMscFile::parse(), DocDiaFile::parse(), DocVhdlFlow::parse(), DocLink::parse(), DocRef::parse(), DocInternalRef::parse(), DocHRef::parse(), DocHtmlHeader::parse(), DocHtmlDescTitle::parse(), DocHtmlDescList::parse(), DocSection::parse(), DocSecRefItem::parse(), DocSecRefList::parse(), DocInternal::parse(), DocParBlock::parse(), DocSimpleList::parse(), DocHtmlList::parse(), DocSimpleSect::parse(), DocParamSect::parse(), DocPara::parse(), DocParamList::parse(), DocSimpleListItem::parse(), DocHtmlListItem::parse(), DocHtmlDescData::parse(), DocHtmlCell::parse(), DocHtmlCaption::parse(), DocHtmlRow::parse(), DocHtmlTable::parse(), DocHtmlBlockQuote::parse(), DocText::parse(), DocRoot::parse(), DocTitle::parseFromString(), DocSimpleSect::parseRcs(), DocHtmlList::parseXml(), DocSimpleSect::parseXml(), DocParamList::parseXml(), DocHtmlListItem::parseXml(), DocHtmlCell::parseXml(), DocHtmlRow::parseXml() , 以及 DocHtmlTable::parseXml().


该类的文档由以下文件生成:
DocNode::Kind_MscFile
@ Kind_MscFile
Definition: docparser.h:148
DocNode::Kind_HtmlDescData
@ Kind_HtmlDescData
Definition: docparser.h:119
DocNode::Kind_AutoListItem
@ Kind_AutoListItem
Definition: docparser.h:105
DocNode::Kind_DiaFile
@ Kind_DiaFile
Definition: docparser.h:152
DocNode::Kind_SecRefList
@ Kind_SecRefList
Definition: docparser.h:140
DocNode::Kind_Word
@ Kind_Word
Definition: docparser.h:101
DocNode::Kind_InternalRef
@ Kind_InternalRef
Definition: docparser.h:145
DocNode::Kind_HtmlHeader
@ Kind_HtmlHeader
Definition: docparser.h:133
DocNode::Kind_Include
@ Kind_Include
Definition: docparser.h:131
DocNode::Kind_HtmlDescTitle
@ Kind_HtmlDescTitle
Definition: docparser.h:120
DocNode::Kind_Emoji
@ Kind_Emoji
Definition: docparser.h:153
DocNode::Kind_ParBlock
@ Kind_ParBlock
Definition: docparser.h:151
DocNode::Kind_HtmlDescList
@ Kind_HtmlDescList
Definition: docparser.h:118
DocNode::Kind_Root
@ Kind_Root
Definition: docparser.h:100
DocNode::Kind_LineBreak
@ Kind_LineBreak
Definition: docparser.h:125
DocNode::Kind_Link
@ Kind_Link
Definition: docparser.h:136
DocNode::Kind_HtmlCell
@ Kind_HtmlCell
Definition: docparser.h:123
DocNode::Kind_HtmlRow
@ Kind_HtmlRow
Definition: docparser.h:122
DocNode::Kind_Section
@ Kind_Section
Definition: docparser.h:113
DocNode::Kind_SecRefItem
@ Kind_SecRefItem
Definition: docparser.h:139
DocNode::Kind_IncOperator
@ Kind_IncOperator
Definition: docparser.h:132
DocNode::Kind_HRef
@ Kind_HRef
Definition: docparser.h:130
DocNode::Kind_WhiteSpace
@ Kind_WhiteSpace
Definition: docparser.h:102
DocNode::Kind_Ref
@ Kind_Ref
Definition: docparser.h:137
DocNode::Kind_StyleChange
@ Kind_StyleChange
Definition: docparser.h:108
DocNode::Kind_DotFile
@ Kind_DotFile
Definition: docparser.h:135
DocNode::Section
@ Section
Definition: docparser.h:183
DocNode::Anchor
@ Anchor
Definition: docparser.h:183
DocNode::Kind_SimpleList
@ Kind_SimpleList
Definition: docparser.h:111
DocNode::Kind_Para
@ Kind_Para
Definition: docparser.h:103
DocNode::Kind_HtmlCaption
@ Kind_HtmlCaption
Definition: docparser.h:124
DocNode::m_parser
DocParser & m_parser
Definition: docparser.h:184
DocNode::Kind_HtmlList
@ Kind_HtmlList
Definition: docparser.h:116
DocNode::Kind_SimpleListItem
@ Kind_SimpleListItem
Definition: docparser.h:112
DocNode::Unknown
@ Unknown
Definition: docparser.h:183
DocNode::Kind_Verbatim
@ Kind_Verbatim
Definition: docparser.h:114
DocNode::Kind_ParamSect
@ Kind_ParamSect
Definition: docparser.h:143
DocNode::Kind_Internal
@ Kind_Internal
Definition: docparser.h:129
DocNode::Kind_ParamList
@ Kind_ParamList
Definition: docparser.h:144
DocNode::Kind_HtmlTable
@ Kind_HtmlTable
Definition: docparser.h:121
DocNode::Kind_VhdlFlow
@ Kind_VhdlFlow
Definition: docparser.h:150
DocNode::Kind_Copy
@ Kind_Copy
Definition: docparser.h:146
DocNode::Kind_Formula
@ Kind_Formula
Definition: docparser.h:138
DocNode::Kind_Sep
@ Kind_Sep
Definition: docparser.h:154
DocNode::Kind_Anchor
@ Kind_Anchor
Definition: docparser.h:127
DocNode::Kind_LinkedWord
@ Kind_LinkedWord
Definition: docparser.h:142
DocNode::Kind_HtmlBlockQuote
@ Kind_HtmlBlockQuote
Definition: docparser.h:149
DocNode::Kind_XRefItem
@ Kind_XRefItem
Definition: docparser.h:115
DocNode::m_insidePre
bool m_insidePre
Definition: docparser.h:187
DocNode::Kind_AutoList
@ Kind_AutoList
Definition: docparser.h:104
DocNode::Kind_Symbol
@ Kind_Symbol
Definition: docparser.h:106
DocNode::Kind_Title
@ Kind_Title
Definition: docparser.h:110
DocNode::Kind_Text
@ Kind_Text
Definition: docparser.h:147
DocNode::parent
DocNode * parent() const
Definition: docparser.h:166
DocNode::Kind_SimpleSect
@ Kind_SimpleSect
Definition: docparser.h:109
DocNode::Table
@ Table
Definition: docparser.h:183
DocNode::Kind_URL
@ Kind_URL
Definition: docparser.h:107
DocNode::Kind_SimpleSectSep
@ Kind_SimpleSectSep
Definition: docparser.h:141
DocNode::Kind_HorRuler
@ Kind_HorRuler
Definition: docparser.h:126
DocNode::Kind_Image
@ Kind_Image
Definition: docparser.h:134
DocNode::m_parent
DocNode * m_parent
Definition: docparser.h:182
DocNode::Kind_HtmlListItem
@ Kind_HtmlListItem
Definition: docparser.h:117
DocNode::Kind_IndexEntry
@ Kind_IndexEntry
Definition: docparser.h:128