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
InheritanceListContext Class Reference

#include <context.h>

Inheritance diagram for InheritanceListContext:
RefCountedContext TemplateListIntf

Classes

class  Private
 

Public Member Functions

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 InheritanceListContextalloc (const BaseClassList *list, bool baseClasses)
 

Private Member Functions

 InheritanceListContext (const BaseClassList *list, bool baseClasses)
 
 ~InheritanceListContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 929 of file context.h.

Constructor & Destructor Documentation

InheritanceListContext::InheritanceListContext ( const BaseClassList list,
bool  baseClasses 
)
private

Definition at line 8430 of file context.cpp.

References InheritanceListContext::Private::addClass(), BaseClassDef::classDef, ClassDef::displayName(), insertTemplateSpecifierInScope(), p, Private, and BaseClassDef::templSpecifiers.

Referenced by alloc().

: RefCountedContext("InheritanceListContext")
{
p = new Private;
if (list)
{
for (li.toFirst();(bcd=li.current());++li)
{
ClassDef *cd=bcd->classDef;
QCString name;
if (baseClasses)
{
}
else
{
name = cd->displayName();
}
//printf("InheritanceListContext: adding %s baseClass=%d\n",name.data(),baseClasses);
p->addClass(cd,name);
}
}
}
InheritanceListContext::~InheritanceListContext ( )
private

Definition at line 8456 of file context.cpp.

References p.

{
delete p;
}

Member Function Documentation

virtual int InheritanceListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 939 of file context.h.

References RefCountedContext::addRef().

static InheritanceListContext* InheritanceListContext::alloc ( const BaseClassList list,
bool  baseClasses 
)
inlinestatic

Definition at line 932 of file context.h.

References InheritanceListContext().

Referenced by ClassContext::Private::inheritedBy(), and ClassContext::Private::inherits().

{ return new InheritanceListContext(list,baseClasses); }
TemplateVariant InheritanceListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 8467 of file context.cpp.

References GenericNodeListContext::at(), and p.

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

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 8462 of file context.cpp.

References GenericNodeListContext::count(), and p.

{
return p->count();
}
TemplateListIntf::ConstIterator * InheritanceListContext::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 8472 of file context.cpp.

References GenericNodeListContext::createIterator(), and p.

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

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 940 of file context.h.

References RefCountedContext::release().

Member Data Documentation

Private* InheritanceListContext::p
private

Definition at line 945 of file context.h.

Referenced by at(), count(), createIterator(), InheritanceListContext(), and ~InheritanceListContext().


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