Doxygen
InheritedMemberInfoListContext类 参考

#include <context.h>

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

class  Private
 

Public 成员函数

void addMemberList (const ClassDef *cd, MemberListType lt, const QCString &title, bool additionalList=TRUE)
 
virtual uint count () const
 Returns the number of elements in the list 更多...
 
virtual TemplateVariant at (uint index) const
 Returns the element at index position index. 更多...
 
virtual TemplateListIntf::ConstIteratorPtr createIterator () const
 Creates a new iterator for this list. 更多...
 
 InheritedMemberInfoListContext ()
 
virtual ~InheritedMemberInfoListContext ()
 
- Public 成员函数 继承自 TemplateListIntf
virtual ~TemplateListIntf ()
 Destroys the list 更多...
 

静态 Public 成员函数

static TemplateListIntfPtr alloc ()
 

Private 属性

std::unique_ptr< Privatep
 

额外继承的成员函数

- Public 类型 继承自 TemplateListIntf
using ConstIteratorPtr = std::unique_ptr< ConstIterator >
 

详细描述

在文件 context.h1140 行定义.

构造及析构函数说明

◆ InheritedMemberInfoListContext()

InheritedMemberInfoListContext::InheritedMemberInfoListContext ( )

在文件 context.cpp8160 行定义.

8160  : p(std::make_unique<Private>())
8161 {
8162 }

◆ ~InheritedMemberInfoListContext()

InheritedMemberInfoListContext::~InheritedMemberInfoListContext ( )
virtual

在文件 context.cpp8178 行定义.

8179 {
8180 }

成员函数说明

◆ addMemberList()

void InheritedMemberInfoListContext::addMemberList ( const ClassDef cd,
MemberListType  lt,
const QCString title,
bool  additionalList = TRUE 
)

在文件 context.cpp8164 行定义.

8166 {
8167  ClassDefSet visited;
8168  bool memberInSection = cd->countMembersIncludingGrouped(lt,cd,FALSE)>0;
8169  bool show = (additionalList && !memberInSection) || // inherited member to show in the additional inherited members list
8170  (!additionalList && memberInSection); // inherited member to show in a member list of the class
8171  //printf("%s:%s show=%d\n",qPrint(cd->name()),qPrint(MemberList::listTypeAsString(lt)),show);
8172  if (show)
8173  {
8174  p->findInheritedMembers(cd,cd,lt,-1,title,additionalList,visited);
8175  }
8176 }

引用了 ClassDef::countMembersIncludingGrouped(), FALSE , 以及 p.

◆ alloc()

static TemplateListIntfPtr InheritedMemberInfoListContext::alloc ( )
inlinestatic

在文件 context.h1143 行定义.

1144  { return std::static_pointer_cast<TemplateListIntf>(std::make_shared<InheritedMemberInfoListContext>()); }

被这些函数引用 ClassContext::Private::createAdditionalInheritedMembers() , 以及 MemberListInfoContext::Private::createInherited().

◆ at()

TemplateVariant InheritedMemberInfoListContext::at ( uint  index) const
virtual

Returns the element at index position index.

实现了 TemplateListIntf.

在文件 context.cpp8188 行定义.

8189 {
8190  return p->at(index);
8191 }

引用了 p.

◆ count()

uint InheritedMemberInfoListContext::count ( ) const
virtual

Returns the number of elements in the list

实现了 TemplateListIntf.

在文件 context.cpp8183 行定义.

8184 {
8185  return p->count();
8186 }

引用了 p.

◆ createIterator()

TemplateListIntf::ConstIteratorPtr InheritedMemberInfoListContext::createIterator ( ) const
virtual

Creates a new iterator for this list.

注解
the user should call delete on the returned pointer.

实现了 TemplateListIntf.

在文件 context.cpp8193 行定义.

8194 {
8195  return p->createIterator();
8196 }

引用了 p.

类成员变量说明

◆ p

std::unique_ptr<Private> InheritedMemberInfoListContext::p
private

在文件 context.h1156 行定义.

被这些函数引用 addMemberList(), at(), count() , 以及 createIterator().


该类的文档由以下文件生成:
ClassDef::countMembersIncludingGrouped
virtual int countMembersIncludingGrouped(MemberListType lt, const ClassDef *inheritedFrom, bool additional) const =0
InheritedMemberInfoListContext::p
std::unique_ptr< Private > p
Definition: context.h:1156
ClassDefSet
std::set< const ClassDef * > ClassDefSet
Definition: classdef.h:95
FALSE
#define FALSE
Definition: qcstring.h:33