Doxygen
DocParamSect类 参考

Node representing a parameter section 更多...

#include <docparser.h>

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

Public 类型

enum  Type {
  Unknown, Param, RetVal, Exception,
  TemplateParam
}
 
enum  Direction { In =1, Out =2, InOut =3, Unspecified =0 }
 
- Public 类型 继承自 DocNode
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 成员函数

 DocParamSect (DocParser &parser, DocNode *parent, Type t)
 
int parse (const QCString &cmdName, bool xmlContext, Direction d)
 
Kind kind () const override
 
Type type () const
 
bool hasInOutSpecifier () const
 
bool hasTypeSpecifier () const
 
- Public 成员函数 继承自 CompAccept< DocParamSect >
 CompAccept (DocParser &parser)
 
void accept (DocVisitor *v) override
 
const DocNodeListchildren () const
 
DocNodeListchildren ()
 
- Public 成员函数 继承自 DocNode
 DocNode (DocParser &parser)
 
virtual ~DocNode ()
 
DocNodeparent () const
 
void setParent (DocNode *parent)
 
bool isPreformatted () const
 

Private 属性

Type m_type = Unknown
 
bool m_hasInOutSpecifier = false
 
bool m_hasTypeSpecifier = false
 

友元

class DocParamList
 

额外继承的成员函数

- Protected 类型 继承自 DocNode
enum  RefType { Unknown, Anchor, Section, Table }
 
- Protected 成员函数 继承自 DocNode
void setInsidePreformatted (bool p)
 
- Protected 属性 继承自 CompAccept< DocParamSect >
DocNodeList m_children
 
- Protected 属性 继承自 DocNode
DocNodem_parent = 0
 
DocParserm_parser
 

详细描述

Node representing a parameter section

在文件 docparser.h1150 行定义.

成员枚举类型说明

◆ Direction

枚举值
In 
Out 
InOut 
Unspecified 

在文件 docparser.h1158 行定义.

1159  {
1160  In=1, Out=2, InOut=3, Unspecified=0
1161  };

◆ Type

枚举值
Unknown 
Param 
RetVal 
Exception 
TemplateParam 

在文件 docparser.h1154 行定义.

1155  {
1157  };

构造及析构函数说明

◆ DocParamSect()

DocParamSect::DocParamSect ( DocParser parser,
DocNode parent,
Type  t 
)
inline

在文件 docparser.h1162 行定义.

引用了 DocNode::m_parent , 以及 DocNode::parent().

成员函数说明

◆ hasInOutSpecifier()

bool DocParamSect::hasInOutSpecifier ( ) const
inline

◆ hasTypeSpecifier()

bool DocParamSect::hasTypeSpecifier ( ) const
inline

◆ kind()

Kind DocParamSect::kind ( ) const
inlineoverridevirtual

Returns the kind of node. Provides runtime type information

实现了 DocNode.

在文件 docparser.h1166 行定义.

1166 { return Kind_ParamSect; }

引用了 DocNode::Kind_ParamSect.

◆ parse()

int DocParamSect::parse ( const QCString cmdName,
bool  xmlContext,
Direction  d 
)

在文件 docparser.cpp4672 行定义.

4673 {
4674  int retval=RetVal_OK;
4675  DBG(("DocParamSect::parse() start\n"));
4676  auto ns = AutoNodeStack(m_parser,this);
4677 
4678  if (d!=Unspecified)
4679  {
4681  }
4682 
4683  DocParamList *pl = new DocParamList(m_parser,this,m_type,d);
4684  if (m_children.empty())
4685  {
4686  pl->markFirst();
4687  pl->markLast();
4688  }
4689  else
4690  {
4691  ASSERT(m_children.back()->kind()==DocNode::Kind_ParamList);
4692  ((DocParamList *)m_children.back().get())->markLast(FALSE);
4693  pl->markLast();
4694  }
4695  m_children.push_back(std::unique_ptr<DocParamList>(pl));
4696  if (xmlContext)
4697  {
4698  retval = pl->parseXml(cmdName);
4699  }
4700  else
4701  {
4702  retval = pl->parse(cmdName);
4703  }
4704  if (retval==RetVal_EndParBlock)
4705  {
4706  retval = RetVal_OK;
4707  }
4708 
4709  DBG(("DocParamSect::parse() end retval=%d\n",retval));
4710  return retval;
4711 }

引用了 ASSERT, DBG, DocParamList, FALSE, DocNode::Kind_ParamList, CompAccept< DocParamSect >::m_children, m_hasInOutSpecifier, DocNode::m_parser, m_type, DocParamList::markFirst(), DocParamList::markLast(), DocParamList::parse(), DocParamList::parseXml(), RetVal_EndParBlock, RetVal_OK, TRUE , 以及 Unspecified.

被这些函数引用 DocPara::handleParamSection().

◆ type()

友元及相关函数文档

◆ DocParamList

friend class DocParamList
friend

在文件 docparser.h1152 行定义.

被这些函数引用 parse().

类成员变量说明

◆ m_hasInOutSpecifier

bool DocParamSect::m_hasInOutSpecifier = false
private

在文件 docparser.h1173 行定义.

被这些函数引用 hasInOutSpecifier() , 以及 parse().

◆ m_hasTypeSpecifier

bool DocParamSect::m_hasTypeSpecifier = false
private

在文件 docparser.h1174 行定义.

被这些函数引用 hasTypeSpecifier().

◆ m_type

Type DocParamSect::m_type = Unknown
private

在文件 docparser.h1172 行定义.

被这些函数引用 parse() , 以及 type().


该类的文档由以下文件生成:
DocParamSect::In
@ In
Definition: docparser.h:1160
CompAccept< DocParamSect >
DocParamSect::Out
@ Out
Definition: docparser.h:1160
RetVal_OK
@ RetVal_OK
Command starting with \
Definition: doctokenizer.h:59
DocParamList::markLast
void markLast(bool b=TRUE)
Definition: docparser.h:1243
DocParamSect::InOut
@ InOut
Definition: docparser.h:1160
DocParamList::parse
int parse(const QCString &cmdName)
Definition: docparser.cpp:4528
DocParamSect::m_hasInOutSpecifier
bool m_hasInOutSpecifier
Definition: docparser.h:1173
DocParamSect::TemplateParam
@ TemplateParam
Definition: docparser.h:1156
DocParamSect::m_hasTypeSpecifier
bool m_hasTypeSpecifier
Definition: docparser.h:1174
DocParamSect::Unspecified
@ Unspecified
Definition: docparser.h:1160
DocParamList
Node representing a parameter list.
Definition: docparser.h:1228
DocParamList::markFirst
void markFirst(bool b=TRUE)
Definition: docparser.h:1242
DocNode::m_parser
DocParser & m_parser
Definition: docparser.h:184
TRUE
#define TRUE
Definition: qcstring.h:36
DocParamList::parseXml
int parseXml(const QCString &paramName)
Definition: docparser.cpp:4604
DocNode::Kind_ParamSect
@ Kind_ParamSect
Definition: docparser.h:143
DocNode::Kind_ParamList
@ Kind_ParamList
Definition: docparser.h:144
RetVal_EndParBlock
@ RetVal_EndParBlock
Definition: doctokenizer.h:82
DocParamSect::Exception
@ Exception
Definition: docparser.h:1156
DocParamSect::DocParamList
friend class DocParamList
Definition: docparser.h:1152
DocParamSect::m_type
Type m_type
Definition: docparser.h:1172
DocParamSect::Param
@ Param
Definition: docparser.h:1156
DocParamSect::Unknown
@ Unknown
Definition: docparser.h:1156
AutoNodeStack
Definition: docparser.cpp:186
ASSERT
#define ASSERT(x)
Definition: qcstring.h:44
DocParamSect::RetVal
@ RetVal
Definition: docparser.h:1156
DocNode::parent
DocNode * parent() const
Definition: docparser.h:166
DBG
#define DBG(x)
Definition: docparser.cpp:58
CompAccept< DocParamSect >::m_children
DocNodeList m_children
Definition: docparser.h:211
DocNode::m_parent
DocNode * m_parent
Definition: docparser.h:182
FALSE
#define FALSE
Definition: qcstring.h:33