My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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::ConstIterator
createIterator () 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
InheritedMemberInfoListContext
alloc ()
 

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 9219 of file context.cpp.

References p, and Private.

Referenced by alloc().

: RefCountedContext("InheritedMemberInfoListContext")
{
p = new Private;
}
InheritedMemberInfoListContext::~InheritedMemberInfoListContext ( )
private

Definition at line 9238 of file context.cpp.

References p.

{
delete p;
}

Member Function Documentation

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

Definition at line 9224 of file context.cpp.

References ClassDef::countMembersIncludingGrouped(), InheritedMemberInfoListContext::Private::findInheritedMembers(), and p.

Referenced by ClassContext::Private::additionalInheritedMembers(), and MemberListInfoContext::Private::inherited().

{
QPtrDict<void> visited(17);
bool memberInSection = cd->countMembersIncludingGrouped(lt,cd,FALSE)>0;
bool show = (additionalList && !memberInSection) || // inherited member to show in the additional inherited members list
(!additionalList && memberInSection); // inherited member to show in a member list of the class
//printf("%s:%s show=%d\n",cd->name().data(),MemberList::listTypeAsString(lt).data(),show);
if (show)
{
p->findInheritedMembers(cd,cd,lt,-1,title,additionalList,&visited);
}
}
virtual int InheritedMemberInfoListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 1101 of file context.h.

References RefCountedContext::addRef().

static InheritedMemberInfoListContext* InheritedMemberInfoListContext::alloc ( )
inlinestatic
TemplateVariant InheritedMemberInfoListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 9249 of file context.cpp.

References GenericNodeListContext::at(), and p.

{
return p->at(index);
}
int InheritedMemberInfoListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 9244 of file context.cpp.

References GenericNodeListContext::count(), and p.

{
return p->count();
}
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 9254 of file context.cpp.

References GenericNodeListContext::createIterator(), and p.

{
return p->createIterator();
}
virtual int InheritedMemberInfoListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 1102 of file context.h.

References RefCountedContext::release().

Member Data Documentation

Private* InheritedMemberInfoListContext::p
private

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