当前位置: 首页>>代码示例>>C++>>正文


C++ MemberGroup::writeDocumentationPage方法代码示例

本文整理汇总了C++中MemberGroup::writeDocumentationPage方法的典型用法代码示例。如果您正苦于以下问题:C++ MemberGroup::writeDocumentationPage方法的具体用法?C++ MemberGroup::writeDocumentationPage怎么用?C++ MemberGroup::writeDocumentationPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MemberGroup的用法示例。


在下文中一共展示了MemberGroup::writeDocumentationPage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: writeDocumentationPage

// separate member pages
void MemberList::writeDocumentationPage(OutputList &ol,
                     const char *scopeName, Definition *container)
{
  static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
  MemberListIterator mli(*this);
  MemberDef *md;
  for ( ; (md=mli.current()) ; ++mli)
  {
    if (md->isDetailedSectionLinkable())
    {
      QCString diskName=md->getOutputFileBase();
      QCString title=md->qualifiedName();
      startFile(ol,diskName,md->name(),title,HLI_None,!generateTreeView,diskName);
      if (!generateTreeView)
      {
        container->writeNavigationPath(ol);
        ol.endQuickIndices();
      }
      ol.startContents();

      if (generateTreeView)
      {
        md->writeDocumentation(this,ol,scopeName,container,m_inGroup);
        ol.endContents();
        endFileWithNavPath(container,ol);
      }
      else
      {
        ol.writeString("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n"
            "  <tr>\n"
            "   <td valign=\"top\">\n");

        container->writeQuickMemberLinks(ol,md);

        ol.writeString("   </td>\n");
        ol.writeString("   <td valign=\"top\" class=\"mempage\">\n");

        md->writeDocumentation(this,ol,scopeName,container,m_inGroup);

        ol.writeString("    </td>\n");
        ol.writeString("  </tr>\n");
        ol.writeString("</table>\n");

        endFile(ol);
      }
    }
    if (memberGroupList)
    {
      //printf("MemberList::writeDocumentation()  --  member groups\n");
      MemberGroupListIterator mgli(*memberGroupList);
      MemberGroup *mg;
      for (;(mg=mgli.current());++mgli)
      {
        mg->writeDocumentationPage(ol,scopeName,container);
      }
    }
  }
}
开发者ID:Acidburn0zzz,项目名称:doxygen,代码行数:59,代码来源:memberlist.cpp

示例2: writeDocumentationPage

void MemberList::writeDocumentationPage(OutputList &ol,
                     const char *scopeName, Definition *container)
{
  MemberListIterator mli(*this);
  MemberDef *md;
  for ( ; (md=mli.current()) ; ++mli)
  {
    QCString diskName=md->getOutputFileBase();
    QCString title=md->qualifiedName();
    startFile(ol,diskName,md->name(),title);
    container->writeNavigationPath(ol);

    ol.writeString("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n"
                   "  <tr>\n"
                   "   <td valign=\"top\">\n");

    container->writeQuickMemberLinks(ol,md);

    ol.writeString("   </td>\n");
    ol.writeString("   <td valign=\"top\">\n");
    
    md->writeDocumentation(this,ol,scopeName,container,m_inGroup);

    ol.writeString("    </td>\n");
    ol.writeString("  </tr>\n");
    ol.writeString("</table>\n");
    
    endFile(ol);
  }
  if (memberGroupList)
  {
    //printf("MemberList::writeDocumentation()  --  member groups\n");
    MemberGroupListIterator mgli(*memberGroupList);
    MemberGroup *mg;
    for (;(mg=mgli.current());++mgli)
    {
      mg->writeDocumentationPage(ol,scopeName,container);
    }
  }
}
开发者ID:terceiro,项目名称:doxyparse,代码行数:40,代码来源:memberlist.cpp

示例3: writeDocumentationPage

// separate member pages
void MemberList::writeDocumentationPage(OutputList &ol,
                                        const char *scopeName, Definition *container)
{
    static bool generateTreeView = Config_getBool(GENERATE_TREEVIEW);

    // count the number of overloaded members
    QDict<uint> overloadTotalDict(67);
    QDict<uint> overloadCountDict(67);
    overloadTotalDict.setAutoDelete(TRUE);
    overloadCountDict.setAutoDelete(TRUE);
    MemberListIterator mli(*this);
    MemberDef *md;
    for (mli.toFirst() ; (md=mli.current()) ; ++mli)
    {
        if (md->isDetailedSectionLinkable())
        {
            uint *pCount = overloadTotalDict.find(md->name());
            if (pCount)
            {
                (*pCount)++;
            }
            else
            {
                overloadTotalDict.insert(md->name(),new uint(1));
                overloadCountDict.insert(md->name(),new uint(1));
            }
        }
    }

    for ( mli.toFirst() ; (md=mli.current()) ; ++mli)
    {
        if (md->isDetailedSectionLinkable())
        {
            uint overloadCount = *overloadTotalDict.find(md->name());
            uint *pCount = overloadCountDict.find(md->name());
            QCString diskName=md->getOutputFileBase();
            QCString title=md->qualifiedName();
            startFile(ol,diskName,md->name(),title,HLI_None,!generateTreeView,diskName);
            if (!generateTreeView)
            {
                container->writeNavigationPath(ol);
                ol.endQuickIndices();
            }
            ol.startContents();

            if (generateTreeView)
            {
                md->writeDocumentation(this,*pCount,overloadCount,ol,scopeName,container,m_inGroup);
                (*pCount)++;
                ol.endContents();
                endFileWithNavPath(container,ol);
            }
            else
            {
                ol.writeString("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n"
                               "  <tr>\n"
                               "   <td valign=\"top\">\n");

                container->writeQuickMemberLinks(ol,md);

                ol.writeString("   </td>\n");
                ol.writeString("   <td valign=\"top\" class=\"mempage\">\n");

                md->writeDocumentation(this,*pCount,overloadCount,ol,scopeName,container,m_inGroup);
                (*pCount)++;

                ol.writeString("    </td>\n");
                ol.writeString("  </tr>\n");
                ol.writeString("</table>\n");

                endFile(ol);
            }
        }
    }
    if (memberGroupList)
    {
        //printf("MemberList::writeDocumentation()  --  member groups\n");
        MemberGroupListIterator mgli(*memberGroupList);
        MemberGroup *mg;
        for (; (mg=mgli.current()); ++mgli)
        {
            mg->writeDocumentationPage(ol,scopeName,container);
        }
    }
}
开发者ID:vscosta,项目名称:doxygen-yap,代码行数:86,代码来源:memberlist.cpp


注:本文中的MemberGroup::writeDocumentationPage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。