|
Packit Service |
50c9f2 |
/******************************************************************************
|
|
Packit Service |
50c9f2 |
*
|
|
Packit Service |
50c9f2 |
*
|
|
Packit Service |
50c9f2 |
*
|
|
Packit Service |
50c9f2 |
* Copyright (C) 1997-2015 by Dimitri van Heesch.
|
|
Packit Service |
50c9f2 |
*
|
|
Packit Service |
50c9f2 |
* Permission to use, copy, modify, and distribute this software and its
|
|
Packit Service |
50c9f2 |
* documentation under the terms of the GNU General Public License is hereby
|
|
Packit Service |
50c9f2 |
* granted. No representations are made about the suitability of this software
|
|
Packit Service |
50c9f2 |
* for any purpose. It is provided "as is" without express or implied warranty.
|
|
Packit Service |
50c9f2 |
* See the GNU General Public License for more details.
|
|
Packit Service |
50c9f2 |
*
|
|
Packit Service |
50c9f2 |
* Documents produced by Doxygen are derivative works derived from the
|
|
Packit Service |
50c9f2 |
* input used in their production; they are not affected by this license.
|
|
Packit Service |
50c9f2 |
*
|
|
Packit Service |
50c9f2 |
*/
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
#ifndef CLASSLIST_H
|
|
Packit Service |
50c9f2 |
#define CLASSLIST_H
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
#include <qlist.h>
|
|
Packit Service |
50c9f2 |
#include <qdict.h>
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
#include "classdef.h"
|
|
Packit Service |
50c9f2 |
#include "sortdict.h"
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
class Definition;
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
/** A list of ClassDef objects. */
|
|
Packit Service |
50c9f2 |
class ClassList : public QList<ClassDef>
|
|
Packit Service |
50c9f2 |
{
|
|
Packit Service |
50c9f2 |
public:
|
|
Packit Service |
50c9f2 |
ClassList();
|
|
Packit Service |
50c9f2 |
~ClassList();
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
private:
|
|
Packit Service |
50c9f2 |
int compareValues(const ClassDef *item1,const ClassDef *item2) const;
|
|
Packit Service |
50c9f2 |
};
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
/** An iterator for ClassDef objects in a ClassList. */
|
|
Packit Service |
50c9f2 |
class ClassListIterator : public QListIterator<ClassDef>
|
|
Packit Service |
50c9f2 |
{
|
|
Packit Service |
50c9f2 |
public:
|
|
Packit Service |
50c9f2 |
ClassListIterator(const ClassList &list);
|
|
Packit Service |
50c9f2 |
};
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
/** An unsorted dictionary of ClassDef objects. */
|
|
Packit Service |
50c9f2 |
class ClassDict : public QDict<ClassDef>
|
|
Packit Service |
50c9f2 |
{
|
|
Packit Service |
50c9f2 |
public:
|
|
Packit Service |
50c9f2 |
ClassDict(int size) : QDict<ClassDef>(size) {}
|
|
Packit Service |
50c9f2 |
~ClassDict() {}
|
|
Packit Service |
50c9f2 |
};
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
/** A sorted dictionary of ClassDef objects. */
|
|
Packit Service |
50c9f2 |
class ClassSDict : public SDict<ClassDef>
|
|
Packit Service |
50c9f2 |
{
|
|
Packit Service |
50c9f2 |
public:
|
|
Packit Service |
50c9f2 |
ClassSDict(int size=17) : SDict<ClassDef>(size) {}
|
|
Packit Service |
50c9f2 |
~ClassSDict() {}
|
|
Packit Service |
50c9f2 |
void writeDeclaration(OutputList &ol,const ClassDef::CompoundType *filter=0,
|
|
Packit Service |
50c9f2 |
const char *header=0,bool localNames=FALSE);
|
|
Packit Service |
50c9f2 |
void writeDocumentation(OutputList &ol,Definition *container=0);
|
|
Packit Service |
50c9f2 |
bool declVisible(const ClassDef::CompoundType *filter=0) const;
|
|
Packit Service |
50c9f2 |
private:
|
|
Packit Service |
50c9f2 |
int compareValues(const ClassDef *item1,const ClassDef *item2) const;
|
|
Packit Service |
50c9f2 |
};
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
class GenericsCollection : public QIntDict<ClassDef>
|
|
Packit Service |
50c9f2 |
{
|
|
Packit Service |
50c9f2 |
public:
|
|
Packit Service |
50c9f2 |
GenericsCollection() : QIntDict<ClassDef>(17) {}
|
|
Packit Service |
50c9f2 |
~GenericsCollection() {}
|
|
Packit Service |
50c9f2 |
};
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
class GenericsSDict
|
|
Packit Service |
50c9f2 |
{
|
|
Packit Service |
50c9f2 |
public:
|
|
Packit Service |
50c9f2 |
GenericsSDict() : m_dict(17) { m_dict.setAutoDelete(TRUE); }
|
|
Packit Service |
50c9f2 |
~GenericsSDict() {}
|
|
Packit Service |
50c9f2 |
void insert(const QCString &key,ClassDef *cd);
|
|
Packit Service |
50c9f2 |
ClassDef *find(const QCString &key);
|
|
Packit Service |
50c9f2 |
private:
|
|
Packit Service |
50c9f2 |
SDict<GenericsCollection> m_dict;
|
|
Packit Service |
50c9f2 |
};
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
#endif
|