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

8415  : RefCountedContext("InheritanceListContext")
8416 {
8417  p = new Private;
8418  if (list)
8419  {
8420  BaseClassListIterator li(*list);
8421  BaseClassDef *bcd;
8422  for (li.toFirst();(bcd=li.current());++li)
8423  {
8424  ClassDef *cd=bcd->classDef;
8425  QCString name;
8426  if (baseClasses)
8427  {
8429  cd->displayName(),bcd->templSpecifiers);
8430  }
8431  else
8432  {
8433  name = cd->displayName();
8434  }
8435  //printf("InheritanceListContext: adding %s baseClass=%d\n",name.data(),baseClasses);
8436  p->addClass(cd,name);
8437  }
8438  }
8439 }
static QCString name
Definition: declinfo.cpp:673
ClassDef * classDef
Definition: classdef.h:520
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
QCString displayName(bool includeScope=TRUE) const
Definition: classdef.cpp:312
QCString templSpecifiers
Definition: classdef.h:538
QCString insertTemplateSpecifierInScope(const QCString &scope, const QCString &templ)
Definition: util.cpp:5527
void addClass(ClassDef *cd, const QCString &name)
Definition: context.cpp:8409
InheritanceListContext::~InheritanceListContext ( )
private

Definition at line 8441 of file context.cpp.

8442 {
8443  delete p;
8444 }

Member Function Documentation

virtual int InheritanceListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 939 of file context.h.

939 { return RefCountedContext::addRef(); }
static InheritanceListContext* InheritanceListContext::alloc ( const BaseClassList list,
bool  baseClasses 
)
inlinestatic

Definition at line 932 of file context.h.

933  { return new InheritanceListContext(list,baseClasses); }
InheritanceListContext(const BaseClassList *list, bool baseClasses)
Definition: context.cpp:8415
TemplateVariant InheritanceListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 8452 of file context.cpp.

8453 {
8454  return p->at(index);
8455 }
TemplateVariant at(int index) const
Definition: context.cpp:181
int InheritanceListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 8447 of file context.cpp.

8448 {
8449  return p->count();
8450 }
int count() const
Definition: context.cpp:177
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 8457 of file context.cpp.

8458 {
8459  return p->createIterator();
8460 }
TemplateListIntf::ConstIterator * createIterator() const
Definition: context.cpp:190
virtual int InheritanceListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 940 of file context.h.

940 { return RefCountedContext::release(); }

Member Data Documentation

Private* InheritanceListContext::p
private

Definition at line 945 of file context.h.


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