Public Member Functions | List of all members
BaseClassList Class Reference

#include <classdef.h>

Inheritance diagram for BaseClassList:
QList< BaseClassDef > QGList

Public Member Functions

 ~BaseClassList ()
 
int compareValues (const BaseClassDef *item1, const BaseClassDef *item2) const
 
- Public Member Functions inherited from QList< BaseClassDef >
 QList ()
 
 QList (const QList< BaseClassDef > &l)
 
 ~QList ()
 
QList< BaseClassDef > & operator= (const QList< BaseClassDef > &l)
 
bool operator== (const QList< BaseClassDef > &list) const
 
uint count () const
 
bool isEmpty () const
 
bool insert (uint i, const BaseClassDef *d)
 
void inSort (const BaseClassDef *d)
 
void prepend (const BaseClassDef *d)
 
void append (const BaseClassDef *d)
 
bool remove (uint i)
 
bool remove (const BaseClassDef *d)
 
bool removeRef (const BaseClassDef *d)
 
bool removeFirst ()
 
bool removeLast ()
 
BaseClassDeftake (uint i)
 
void clear ()
 
void sort ()
 
int find (const BaseClassDef *d) const
 
int findRef (const BaseClassDef *d) const
 
uint contains (const BaseClassDef *d) const
 
uint containsRef (const BaseClassDef *d) const
 
BaseClassDefat (uint i) const
 
BaseClassDefgetFirst () const
 
BaseClassDefgetLast () const
 
void setAutoDelete (bool enable)
 

Detailed Description

List of base classes.

The classes are alphabetically sorted on name if inSort() is used.

Definition at line 545 of file classdef.h.

Constructor & Destructor Documentation

BaseClassList::~BaseClassList ( )
inline

Definition at line 548 of file classdef.h.

548 {}

Member Function Documentation

int BaseClassList::compareValues ( const BaseClassDef item1,
const BaseClassDef item2 
) const
inlinevirtual

Reimplemented from QList< BaseClassDef >.

Definition at line 549 of file classdef.h.

550  {
551  const ClassDef *c1=item1->classDef;
552  const ClassDef *c2=item2->classDef;
553  if (c1==0 || c2==0)
554  return FALSE;
555  else
556  return qstricmp(c1->name(),c2->name());
557  }
ClassDef * classDef
Definition: classdef.h:520
const bool FALSE
Definition: qglobal.h:370
const QCString & name() const
Definition: definition.h:114
int qstricmp(const char *str1, const char *str2)
Definition: qcstring.cpp:567

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