1 /******************************************************************************
3 * $Id: classlist.h,v 1.8 2001/03/19 19:27:39 root Exp $
5 * Copyright (C) 1997-2012 by Dimitri van Heesch.
7 * Permission to use, copy, modify, and distribute this software and its
8 * documentation under the terms of the GNU General Public License is hereby
9 * granted. No representations are made about the suitability of this software
10 * for any purpose. It is provided "as is" without express or implied warranty.
11 * See the GNU General Public License for more details.
13 * Documents produced by Doxygen are derivative works derived from the
14 * input used in their production; they are not affected by this license.
29 /** A list of ClassDef objects. */
30 class ClassList : public QList<ClassDef>
36 int compareItems(GCI item1,GCI item2);
39 /** An iterator for ClassDef objects in a ClassList. */
40 class ClassListIterator : public QListIterator<ClassDef>
43 ClassListIterator(const ClassList &list);
46 /** An unsorted dictionary of ClassDef objects. */
47 class ClassDict : public QDict<ClassDef>
50 ClassDict(int size) : QDict<ClassDef>(size) {}
54 /** A sorted dictionary of ClassDef objects. */
55 class ClassSDict : public SDict<ClassDef>
58 ClassSDict(int size=17) : SDict<ClassDef>(size) {}
60 int compareItems(GCI item1,GCI item2);
61 void writeDeclaration(OutputList &ol,const ClassDef::CompoundType *filter=0,
62 const char *header=0,bool localNames=FALSE);
63 void writeDocumentation(OutputList &ol,Definition *container=0);
64 bool declVisible(const ClassDef::CompoundType *filter=0) const;
67 class GenericsCollection : public QIntDict<ClassDef>
70 GenericsCollection() : QIntDict<ClassDef>(17) {}
71 ~GenericsCollection() {}
77 GenericsSDict() : m_dict(17) { m_dict.setAutoDelete(TRUE); }
79 void insert(const QCString &key,ClassDef *cd);
80 ClassDef *find(const QCString &key);
82 SDict<GenericsCollection> m_dict;