Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
InheritedMemberInfoListContext Class Reference

#include <context.h>

Inheritance diagram for InheritedMemberInfoListContext:
RefCountedContext TemplateListIntf

Classes

class  Private
 

Public Member Functions

void addMemberList (ClassDef *cd, MemberListType lt, const QCString &title, bool additionalList=TRUE)
 
virtual int count () const
 
virtual TemplateVariant at (int index) const
 
virtual TemplateListIntf::ConstIteratorcreateIterator () const
 
virtual int addRef ()
 
virtual int release ()
 
- Public Member Functions inherited from RefCountedContext
 RefCountedContext (const char *)
 
virtual ~RefCountedContext ()
 
int addRef ()
 
int release ()
 
- Public Member Functions inherited from TemplateListIntf
virtual ~TemplateListIntf ()
 

Static Public Member Functions

static InheritedMemberInfoListContextalloc ()
 

Private Member Functions

 InheritedMemberInfoListContext ()
 
 ~InheritedMemberInfoListContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 1091 of file context.h.

Constructor & Destructor Documentation

InheritedMemberInfoListContext::InheritedMemberInfoListContext ( )
private

Definition at line 9204 of file context.cpp.

9204  : RefCountedContext("InheritedMemberInfoListContext")
9205 {
9206  p = new Private;
9207 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
InheritedMemberInfoListContext::~InheritedMemberInfoListContext ( )
private

Definition at line 9223 of file context.cpp.

9224 {
9225  delete p;
9226 }

Member Function Documentation

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

Definition at line 9209 of file context.cpp.

9211 {
9212  QPtrDict<void> visited(17);
9213  bool memberInSection = cd->countMembersIncludingGrouped(lt,cd,FALSE)>0;
9214  bool show = (additionalList && !memberInSection) || // inherited member to show in the additional inherited members list
9215  (!additionalList && memberInSection); // inherited member to show in a member list of the class
9216  //printf("%s:%s show=%d\n",cd->name().data(),MemberList::listTypeAsString(lt).data(),show);
9217  if (show)
9218  {
9219  p->findInheritedMembers(cd,cd,lt,-1,title,additionalList,&visited);
9220  }
9221 }
void findInheritedMembers(ClassDef *inheritedFrom, ClassDef *cd, MemberListType lt, int lt2, const QCString &title, bool additionalList, QPtrDict< void > *visitedClasses)
Definition: context.cpp:9168
const bool FALSE
Definition: qglobal.h:370
int countMembersIncludingGrouped(MemberListType lt, ClassDef *inheritedFrom, bool additional)
Definition: classdef.cpp:4213
virtual int InheritedMemberInfoListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 1101 of file context.h.

1101 { return RefCountedContext::addRef(); }
static InheritedMemberInfoListContext* InheritedMemberInfoListContext::alloc ( )
inlinestatic

Definition at line 1094 of file context.h.

TemplateVariant InheritedMemberInfoListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 9234 of file context.cpp.

9235 {
9236  return p->at(index);
9237 }
TemplateVariant at(int index) const
Definition: context.cpp:181
int InheritedMemberInfoListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 9229 of file context.cpp.

9230 {
9231  return p->count();
9232 }
int count() const
Definition: context.cpp:177
TemplateListIntf::ConstIterator * InheritedMemberInfoListContext::createIterator ( ) const
virtual

Creates a new iterator for this list.

Note
the user should call delete on the returned pointer.

Implements TemplateListIntf.

Definition at line 9239 of file context.cpp.

9240 {
9241  return p->createIterator();
9242 }
TemplateListIntf::ConstIterator * createIterator() const
Definition: context.cpp:190
virtual int InheritedMemberInfoListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 1102 of file context.h.

1102 { return RefCountedContext::release(); }

Member Data Documentation

Private* InheritedMemberInfoListContext::p
private

Definition at line 1107 of file context.h.


The documentation for this class was generated from the following files: