Doxygen
NamespaceLinkedRefMap类 参考

#include <namespacedef.h>

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

Public 成员函数

void writeDeclaration (OutputList &ol, const QCString &title, bool isConstantGroup=false, bool localName=FALSE)
 
bool declVisible (bool isContantGroup) const
 
- Public 成员函数 继承自 LinkedRefMap< const NamespaceDef >
const const NamespaceDeffind (const std::string &key) const
 find an object given the key. 更多...
 
const const NamespaceDeffind (const QCString &key) const
 find an object given the key. 更多...
 
const const NamespaceDeffind (const char *key) const
 find an object given the key. 更多...
 
const NamespaceDeffind (const char *key)
 non-const wrapper for find() const 更多...
 
const NamespaceDeffind (const QCString &key)
 
const NamespaceDeffind (const std::string &key)
 non-const wrapper for find() const 更多...
 
bool add (const char *k, const NamespaceDef *obj)
 Adds an object reference to the ordered vector if it was not added already. 更多...
 
bool add (const QCString &k, const NamespaceDef *obj)
 
bool prepend (const char *k, const NamespaceDef *obj)
 Prepends an object reference to the ordered vector if it was not added already. 更多...
 
bool prepend (const QCString &key, const NamespaceDef *obj)
 
bool del (const QCString &key)
 Removes an object from the container and deletes it. 更多...
 
Ptroperator[] (size_t pos)
 
const Ptroperator[] (size_t pos) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
bool empty () const
 
size_t size () const
 
void clear ()
 

额外继承的成员函数

- Public 类型 继承自 LinkedRefMap< const NamespaceDef >
using Ptr = const NamespaceDef *
 
using Vec = std::vector< Ptr >
 
using iterator = typename Vec::iterator
 
using const_iterator = typename Vec::const_iterator
 
using reverse_iterator = typename Vec::reverse_iterator
 
using const_reverse_iterator = typename Vec::const_reverse_iterator
 

详细描述

在文件 namespacedef.h45 行定义.

成员函数说明

◆ declVisible()

bool NamespaceLinkedRefMap::declVisible ( bool  isContantGroup) const

在文件 namespacedef.cpp1284 行定义.

1285 {
1286  bool found=false;
1287  for (const auto &nd : *this)
1288  {
1289  if (nd->isLinkable() && nd->hasDocumentation())
1290  {
1291  SrcLangExt lang = nd->getLanguage();
1292  if (SrcLangExt_IDL==lang)
1293  {
1294  if (isConstantGroup == nd->isConstantGroup())
1295  {
1296  found=true;
1297  break;
1298  }
1299  }
1300  else if (!isConstantGroup) // ensure we only get extra section in IDL
1301  {
1302  if (nd->isConstantGroup())
1303  {
1304  err("Internal inconsistency: constant group but not IDL?\n");
1305  }
1306  found=true;
1307  break;
1308  }
1309  }
1310  }
1311  return found;
1312 }

引用了 err() , 以及 SrcLangExt_IDL.

被这些函数引用 writeDeclaration(), FileDefImpl::writeSummaryLinks(), NamespaceDefImpl::writeSummaryLinks() , 以及 GroupDefImpl::writeSummaryLinks().

◆ writeDeclaration()

void NamespaceLinkedRefMap::writeDeclaration ( OutputList ol,
const QCString title,
bool  isConstantGroup = false,
bool  localName = FALSE 
)

在文件 namespacedef.cpp1314 行定义.

1316 {
1317 
1318 
1319  if (empty()) return; // no namespaces in the list
1320 
1321  if (Config_getBool(OPTIMIZE_OUTPUT_VHDL)) return;
1322 
1323  if (!declVisible(isConstantGroup)) return;
1324 
1325  // write list of namespaces
1326  ol.startMemberHeader(isConstantGroup ? "constantgroups" : "namespaces");
1327  //bool javaOpt = Config_getBool(OPTIMIZE_OUTPUT_JAVA);
1328  //bool fortranOpt = Config_getBool(OPTIMIZE_FOR_FORTRAN);
1329  ol.parseText(title);
1330  ol.endMemberHeader();
1331  ol.startMemberList();
1332  for (const auto &nd : *this)
1333  {
1334  if (nd->isLinkable() && nd->hasDocumentation())
1335  {
1336  SrcLangExt lang = nd->getLanguage();
1337  if (lang==SrcLangExt_IDL && (isConstantGroup != nd->isConstantGroup()))
1338  continue; // will be output in another pass, see layout_default.xml
1340  ol.startMemberItem(nd->getOutputFileBase(),0);
1341  QCString ct = nd->compoundTypeString();
1342  ol.docify(ct);
1343  ol.docify(" ");
1344  ol.insertMemberAlign();
1345  QCString name;
1346  if (localName)
1347  {
1348  name = nd->localName();
1349  }
1350  else
1351  {
1352  name = nd->displayName();
1353  }
1354  ol.writeObjectLink(nd->getReference(),nd->getOutputFileBase(),QCString(),name);
1355  ol.endMemberItem();
1356  if (!nd->briefDescription().isEmpty() && Config_getBool(BRIEF_MEMBER_DESC))
1357  {
1358  ol.startMemberDescription(nd->getOutputFileBase());
1359  ol.generateDoc(nd->briefFile(),nd->briefLine(),nd,0,nd->briefDescription(),FALSE,FALSE,
1360  QCString(),TRUE,FALSE,Config_getBool(MARKDOWN_SUPPORT));
1361  ol.endMemberDescription();
1362  }
1364  }
1365  }
1366  ol.endMemberList();
1367 }

引用了 Config_getBool, declVisible(), OutputList::docify(), LinkedRefMap< const NamespaceDef >::empty(), OutputList::endMemberDeclaration(), OutputList::endMemberDescription(), OutputList::endMemberHeader(), OutputList::endMemberItem(), OutputList::endMemberList(), FALSE, OutputList::generateDoc(), OutputList::insertMemberAlign(), OutputList::parseText(), SrcLangExt_IDL, OutputList::startMemberDeclaration(), OutputList::startMemberDescription(), OutputList::startMemberHeader(), OutputList::startMemberItem(), OutputList::startMemberList(), TRUE , 以及 OutputList::writeObjectLink().

被这些函数引用 NamespaceDefImpl::writeNamespaceDeclarations(), FileDefImpl::writeNamespaceDeclarations() , 以及 GroupDefImpl::writeNamespaces().


该类的文档由以下文件生成:
OutputList::startMemberDescription
void startMemberDescription(const QCString &anchor, const QCString &inheritId=QCString(), bool typ=false)
Definition: outputlist.h:306
LinkedRefMap< const NamespaceDef >::empty
bool empty() const
Definition: linkedmap.h:374
OutputList::startMemberList
void startMemberList()
Definition: outputlist.h:197
OutputList::endMemberDeclaration
void endMemberDeclaration(const QCString &anchor, const QCString &inheritId)
Definition: outputlist.h:312
OutputList::docify
void docify(const QCString &s)
Definition: outputlist.h:137
OutputList::endMemberDescription
void endMemberDescription()
Definition: outputlist.h:308
OutputList::insertMemberAlign
void insertMemberAlign(bool templ=FALSE)
Definition: outputlist.h:233
SrcLangExt
SrcLangExt
Language as given by extension
Definition: types.h:41
err
void err(const char *fmt,...)
Definition: message.cpp:203
OutputList::startMemberItem
void startMemberItem(const QCString &anchor, int i1, const QCString &id=QCString())
Definition: outputlist.h:209
OutputList::startMemberHeader
void startMemberHeader(const QCString &anchor, int typ=2)
Definition: outputlist.h:185
TRUE
#define TRUE
Definition: qcstring.h:36
OutputList::endMemberList
void endMemberList()
Definition: outputlist.h:199
OutputList::endMemberItem
void endMemberItem()
Definition: outputlist.h:211
OutputList::endMemberHeader
void endMemberHeader()
Definition: outputlist.h:187
Config_getBool
#define Config_getBool(name)
Definition: config.h:33
OutputList::parseText
void parseText(const QCString &textStr)
Definition: outputlist.cpp:179
NamespaceLinkedRefMap::declVisible
bool declVisible(bool isContantGroup) const
Definition: namespacedef.cpp:1284
SrcLangExt_IDL
@ SrcLangExt_IDL
Definition: types.h:44
OutputList::generateDoc
void generateDoc(const QCString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const QCString &docStr, bool indexWords, bool isExample, const QCString &exampleName, bool singleLine, bool linkFromIndex, bool markdownSupport)
Definition: outputlist.cpp:142
OutputList::writeObjectLink
void writeObjectLink(const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name)
Definition: outputlist.h:141
OutputList::startMemberDeclaration
void startMemberDeclaration()
Definition: outputlist.h:310
FALSE
#define FALSE
Definition: qcstring.h:33
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108