Blame src/classdef.h

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 CLASSDEF_H
Packit Service 50c9f2
#define CLASSDEF_H
Packit Service 50c9f2
Packit Service 50c9f2
#include <qlist.h>
Packit Service 50c9f2
#include <qdict.h>
Packit Service 50c9f2
#include <qptrdict.h>
Packit Service 50c9f2
Packit Service 50c9f2
#include "definition.h"
Packit Service 50c9f2
Packit Service 50c9f2
struct Argument;
Packit Service 50c9f2
class MemberDef;
Packit Service 50c9f2
class MemberList;
Packit Service 50c9f2
class MemberDict;
Packit Service 50c9f2
class ClassList;
Packit Service 50c9f2
class ClassSDict;
Packit Service 50c9f2
class OutputList;
Packit Service 50c9f2
class FileDef;
Packit Service 50c9f2
class FileList;
Packit Service 50c9f2
class BaseClassList;
Packit Service 50c9f2
class NamespaceDef;
Packit Service 50c9f2
class MemberDef;
Packit Service 50c9f2
class ExampleSDict;
Packit Service 50c9f2
class MemberNameInfoSDict;
Packit Service 50c9f2
class UsesClassDict;
Packit Service 50c9f2
class ConstraintClassDict;
Packit Service 50c9f2
class MemberGroupSDict;
Packit Service 50c9f2
class QTextStream;
Packit Service 50c9f2
class PackageDef;
Packit Service 50c9f2
class GroupDef;
Packit Service 50c9f2
class StringDict;
Packit Service 50c9f2
struct IncludeInfo;
Packit Service 50c9f2
class ClassDefImpl;
Packit Service 50c9f2
class ArgumentList;
Packit Service 50c9f2
class FTextStream;
Packit Service 50c9f2
Packit Service 50c9f2
/** A class representing of a compound symbol.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 *  A compound can be a class, struct, union, interface, service, singleton,
Packit Service 50c9f2
 *  or exception.
Packit Service 50c9f2
 *  \note This class should be renamed to CompoundDef
Packit Service 50c9f2
 */
Packit Service 50c9f2
class ClassDef : public Definition
Packit Service 50c9f2
{
Packit Service 50c9f2
  public:
Packit Service 50c9f2
    /** The various compound types */
Packit Service 50c9f2
    enum CompoundType { Class,     //=Entry::CLASS_SEC, 
Packit Service 50c9f2
                        Struct,    //=Entry::STRUCT_SEC, 
Packit Service 50c9f2
                        Union,     //=Entry::UNION_SEC,
Packit Service 50c9f2
                        Interface, //=Entry::INTERFACE_SEC,
Packit Service 50c9f2
                        Protocol,  //=Entry::PROTOCOL_SEC,
Packit Service 50c9f2
                        Category,  //=Entry::CATEGORY_SEC,
Packit Service 50c9f2
                        Exception, //=Entry::EXCEPTION_SEC
Packit Service 50c9f2
                        Service,   //=Entry::CLASS_SEC
Packit Service 50c9f2
                        Singleton, //=Entry::CLASS_SEC
Packit Service 50c9f2
                      };
Packit Service 50c9f2
Packit Service 50c9f2
    /** Creates a new compound definition.
Packit Service 50c9f2
     *  \param fileName  full path and file name in which this compound was
Packit Service 50c9f2
     *                   found.
Packit Service 50c9f2
     *  \param startLine line number where the definition of this compound
Packit Service 50c9f2
     *                   starts.
Packit Service 50c9f2
     *  \param startColumn column number where the definition of this compound
Packit Service 50c9f2
     *                   starts.
Packit Service 50c9f2
     *  \param name      the name of this compound (including scope)
Packit Service 50c9f2
     *  \param ct        the kind of Compound
Packit Service 50c9f2
     *  \param ref       the tag file from which this compound is extracted
Packit Service 50c9f2
     *                   or 0 if the compound doesn't come from a tag file
Packit Service 50c9f2
     *  \param fName     the file name as found in the tag file. 
Packit Service 50c9f2
     *                   This overwrites the file that doxygen normally 
Packit Service 50c9f2
     *                   generates based on the compound type & name.
Packit Service 50c9f2
     *  \param isSymbol  If TRUE this class name is added as a publicly 
Packit Service 50c9f2
     *                   visible (and referencable) symbol.
Packit Service 50c9f2
     *  \param isJavaEnum If TRUE this class is actually a Java enum.
Packit Service 50c9f2
     *                    I didn't add this to CompoundType to avoid having
Packit Service 50c9f2
     *                    to adapt all translators.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    ClassDef(const char *fileName,int startLine,int startColumn,
Packit Service 50c9f2
             const char *name,CompoundType ct,
Packit Service 50c9f2
             const char *ref=0,const char *fName=0,
Packit Service 50c9f2
             bool isSymbol=TRUE,bool isJavaEnum=FALSE);
Packit Service 50c9f2
    /** Destroys a compound definition. */
Packit Service 50c9f2
   ~ClassDef();
Packit Service 50c9f2
Packit Service 50c9f2
    //-----------------------------------------------------------------------------------
Packit Service 50c9f2
    // --- getters 
Packit Service 50c9f2
    //-----------------------------------------------------------------------------------
Packit Service 50c9f2
Packit Service 50c9f2
    /** Used for RTTI, this is a class */
Packit Service 50c9f2
    DefType definitionType() const { return TypeClass; }
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the unique base name (without extension) of the class's file on disk */
Packit Service 50c9f2
    QCString getOutputFileBase() const;
Packit Service 50c9f2
    QCString getInstanceOutputFileBase() const; 
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the base name for the source code file */
Packit Service 50c9f2
    QCString getSourceFileBase() const; 
Packit Service 50c9f2
Packit Service 50c9f2
    /** If this class originated from a tagfile, this will return the tag file reference */
Packit Service 50c9f2
    QCString getReference() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE if this class is imported via a tag file */
Packit Service 50c9f2
    bool isReference() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE if this is a local class definition, see EXTRACT_LOCAL_CLASSES */
Packit Service 50c9f2
    bool isLocal() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** returns the classes nested into this class */
Packit Service 50c9f2
    ClassSDict *getClassSDict() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** returns TRUE if this class has documentation */
Packit Service 50c9f2
    bool hasDocumentation() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** returns TRUE if this class has a non-empty detailed description */
Packit Service 50c9f2
    bool hasDetailedDescription() const;
Packit Service 50c9f2
    
Packit Service 50c9f2
    /** returns the file name to use for the collaboration graph */
Packit Service 50c9f2
    QCString collaborationGraphFileName() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** returns the file name to use for the inheritance graph */
Packit Service 50c9f2
    QCString inheritanceGraphFileName() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the name as it is appears in the documentation */
Packit Service 50c9f2
    QCString displayName(bool includeScope=TRUE) const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the type of compound this is, i.e. class/struct/union/.. */
Packit Service 50c9f2
    CompoundType compoundType() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the type of compound as a string */
Packit Service 50c9f2
    QCString compoundTypeString() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the list of base classes from which this class directly
Packit Service 50c9f2
     *  inherits.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    BaseClassList *baseClasses() const;
Packit Service 50c9f2
    
Packit Service 50c9f2
    /** Returns the list of sub classes that directly derive from this class
Packit Service 50c9f2
     */
Packit Service 50c9f2
    BaseClassList *subClasses() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns a dictionary of all members. This includes any inherited 
Packit Service 50c9f2
     *  members. Members are sorted alphabetically.
Packit Service 50c9f2
     */ 
Packit Service 50c9f2
    MemberNameInfoSDict *memberNameInfoSDict() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Return the protection level (Public,Protected,Private) in which 
Packit Service 50c9f2
     *  this compound was found.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    Protection protection() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** returns TRUE iff a link is possible to this item within this project.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    bool isLinkableInProject() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** return TRUE iff a link to this class is possible (either within 
Packit Service 50c9f2
     *  this project, or as a cross-reference to another project).
Packit Service 50c9f2
     */
Packit Service 50c9f2
    bool isLinkable() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** the class is visible in a class diagram, or class hierarchy */
Packit Service 50c9f2
    bool isVisibleInHierarchy();
Packit Service 50c9f2
    
Packit Service 50c9f2
    /** show this class in the declaration section of its parent? */
Packit Service 50c9f2
    bool visibleInParentsDeclList() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the template arguments of this class 
Packit Service 50c9f2
     *  Will return 0 if not applicable.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    ArgumentList *templateArguments() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the namespace this compound is in, or 0 if it has a global
Packit Service 50c9f2
     *  scope.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    NamespaceDef *getNamespaceDef() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the file in which this compound's definition can be found.
Packit Service 50c9f2
     *  Should not return 0 (but it might be a good idea to check anyway).
Packit Service 50c9f2
     */
Packit Service 50c9f2
    FileDef      *getFileDef() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the Java package this class is in or 0 if not applicable. 
Packit Service 50c9f2
     */ 
Packit Service 50c9f2
Packit Service 50c9f2
    MemberDef    *getMemberByName(const QCString &) const;
Packit Service 50c9f2
    
Packit Service 50c9f2
    /** Returns TRUE iff \a bcd is a direct or indirect base class of this
Packit Service 50c9f2
     *  class. This function will recusively traverse all branches of the
Packit Service 50c9f2
     *  inheritance tree.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    bool isBaseClass(ClassDef *bcd,bool followInstances,int level=0);
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE iff \a bcd is a direct or indirect sub class of this
Packit Service 50c9f2
     *  class.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    bool isSubClass(ClassDef *bcd,int level=0);
Packit Service 50c9f2
Packit Service 50c9f2
    /** returns TRUE iff \a md is a member of this class or of the
Packit Service 50c9f2
     *  the public/protected members of a base class 
Packit Service 50c9f2
     */
Packit Service 50c9f2
    bool isAccessibleMember(MemberDef *md);
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns a sorted dictionary with all template instances found for
Packit Service 50c9f2
     *  this template class. Returns 0 if not a template or no instances.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    QDict<ClassDef> *getTemplateInstances() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the template master of which this class is an instance.
Packit Service 50c9f2
     *  Returns 0 if not applicable.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    ClassDef *templateMaster() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE if this class is a template */
Packit Service 50c9f2
    bool isTemplate() const;
Packit Service 50c9f2
Packit Service 50c9f2
    IncludeInfo *includeInfo() const;
Packit Service 50c9f2
    
Packit Service 50c9f2
    UsesClassDict *usedImplementationClasses() const;
Packit Service 50c9f2
Packit Service 50c9f2
    UsesClassDict *usedByImplementationClasses() const;
Packit Service 50c9f2
Packit Service 50c9f2
    UsesClassDict *usedInterfaceClasses() const;
Packit Service 50c9f2
Packit Service 50c9f2
    ConstraintClassDict *templateTypeConstraints() const;
Packit Service 50c9f2
Packit Service 50c9f2
    bool isTemplateArgument() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the definition of a nested compound if
Packit Service 50c9f2
     *  available, or 0 otherwise.
Packit Service 50c9f2
     *  @param name The name of the nested compound
Packit Service 50c9f2
     */
Packit Service 50c9f2
    virtual Definition *findInnerCompound(const char *name) const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the template parameter lists that form the template
Packit Service 50c9f2
     *  declaration of this class.
Packit Service 50c9f2
     *  
Packit Service 50c9f2
     *  Example: template<class T> class TC {};
Packit Service 50c9f2
     *  will return a list with one ArgumentList containing one argument
Packit Service 50c9f2
     *  with type="class" and name="T".
Packit Service 50c9f2
     */
Packit Service 50c9f2
    void getTemplateParameterLists(QList<ArgumentList> &lists) const;
Packit Service 50c9f2
Packit Service 50c9f2
    QCString qualifiedNameWithTemplateParameters(
Packit Service 50c9f2
        QList<ArgumentList> *actualParams=0,int *actualParamIndex=0) const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE if there is at least one pure virtual member in this
Packit Service 50c9f2
     *  class.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    bool isAbstract() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE if this class is implemented in Objective-C */
Packit Service 50c9f2
    bool isObjectiveC() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE if this class is implemented in C# */
Packit Service 50c9f2
    bool isCSharp() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE if this class is marked as final */
Packit Service 50c9f2
    bool isFinal() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE if this class is marked as sealed */
Packit Service 50c9f2
    bool isSealed() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE if this class is marked as published */
Packit Service 50c9f2
    bool isPublished() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE if this class represents an Objective-C 2.0 extension (nameless category) */
Packit Service 50c9f2
    bool isExtension() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns TRUE if this class represents a forward declaration of a template class */
Packit Service 50c9f2
    bool isForwardDeclared() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the class of which this is a category (Objective-C only) */
Packit Service 50c9f2
    ClassDef *categoryOf() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the name of the class including outer classes, but not
Packit Service 50c9f2
     *  including namespaces.
Packit Service 50c9f2
     */
Packit Service 50c9f2
    QCString className() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the members in the list identified by \a lt */
Packit Service 50c9f2
    MemberList *getMemberList(MemberListType lt);
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the list containing the list of members sorted per type */
Packit Service 50c9f2
    const QList<MemberList> &getMemberLists() const;
Packit Service 50c9f2
Packit Service 50c9f2
    /** Returns the member groups defined for this class */
Packit Service 50c9f2
    MemberGroupSDict *getMemberGroupSDict() const;
Packit Service 50c9f2
Packit Service 50c9f2
    QDict<int> *getTemplateBaseClassNames() const;
Packit Service 50c9f2
Packit Service 50c9f2
    ClassDef *getVariableInstance(const char *templSpec);
Packit Service 50c9f2
Packit Service 50c9f2
    bool isUsedOnly() const;
Packit Service 50c9f2
Packit Service 50c9f2
    QCString anchor() const;
Packit Service 50c9f2
    bool isEmbeddedInOuterScope() const;
Packit Service 50c9f2
Packit Service 50c9f2
    bool isSimple() const;
Packit Service 50c9f2
Packit Service 50c9f2
    const ClassList *taggedInnerClasses() const;
Packit Service 50c9f2
    ClassDef *tagLessReference() const;
Packit Service 50c9f2
Packit Service 50c9f2
    MemberDef *isSmartPointer() const;
Packit Service 50c9f2
Packit Service 50c9f2
    bool isJavaEnum() const;
Packit Service 50c9f2
Packit Service 50c9f2
    bool isGeneric() const;
Packit Service 50c9f2
    bool isAnonymous() const;
Packit Service 50c9f2
    const ClassSDict *innerClasses() const;
Packit Service 50c9f2
    QCString title() const;
Packit Service 50c9f2
Packit Service 50c9f2
    QCString generatedFromFiles() const;
Packit Service 50c9f2
    const FileList &usedFiles() const;
Packit Service 50c9f2
Packit Service 50c9f2
    const ArgumentList *typeConstraints() const;
Packit Service 50c9f2
    const ExampleSDict *exampleList() const;
Packit Service 50c9f2
    bool hasExamples() const;
Packit Service 50c9f2
    QCString getMemberListFileName() const;
Packit Service 50c9f2
    bool subGrouping() const;
Packit Service 50c9f2
Packit Service 50c9f2
Packit Service 50c9f2
    //-----------------------------------------------------------------------------------
Packit Service 50c9f2
    // --- setters ----
Packit Service 50c9f2
    //-----------------------------------------------------------------------------------
Packit Service 50c9f2
Packit Service 50c9f2
    void insertBaseClass(ClassDef *,const char *name,Protection p,Specifier s,const char *t=0);
Packit Service 50c9f2
    void insertSubClass(ClassDef *,Protection p,Specifier s,const char *t=0);
Packit Service 50c9f2
    void setIncludeFile(FileDef *fd,const char *incName,bool local,bool force); 
Packit Service 50c9f2
    void insertMember(MemberDef *);
Packit Service 50c9f2
    void insertUsedFile(FileDef *);
Packit Service 50c9f2
    bool addExample(const char *anchor,const char *name, const char *file);
Packit Service 50c9f2
    void mergeCategory(ClassDef *category);
Packit Service 50c9f2
    void setNamespace(NamespaceDef *nd);
Packit Service 50c9f2
    void setFileDef(FileDef *fd);
Packit Service 50c9f2
    void setSubGrouping(bool enabled);
Packit Service 50c9f2
    void setProtection(Protection p);
Packit Service 50c9f2
    void setGroupDefForAllMembers(GroupDef *g,Grouping::GroupPri_t pri,const QCString &fileName,int startLine,bool hasDocs);
Packit Service 50c9f2
    void addInnerCompound(Definition *d);
Packit Service 50c9f2
    ClassDef *insertTemplateInstance(const QCString &fileName,int startLine,int startColumn,
Packit Service 50c9f2
                                const QCString &templSpec,bool &freshInstance);
Packit Service 50c9f2
    void addUsedClass(ClassDef *cd,const char *accessName,Protection prot);
Packit Service 50c9f2
    void addUsedByClass(ClassDef *cd,const char *accessName,Protection prot);
Packit Service 50c9f2
    void setIsStatic(bool b);
Packit Service 50c9f2
    void setCompoundType(CompoundType t);
Packit Service 50c9f2
    void setClassName(const char *name);
Packit Service 50c9f2
    void setClassSpecifier(uint64 spec);
Packit Service 50c9f2
Packit Service 50c9f2
    void setTemplateArguments(ArgumentList *al);
Packit Service 50c9f2
    void setTemplateBaseClassNames(QDict<int> *templateNames);
Packit Service 50c9f2
    void setTemplateMaster(ClassDef *tm);
Packit Service 50c9f2
    void setTypeConstraints(ArgumentList *al);
Packit Service 50c9f2
    void addMembersToTemplateInstance(ClassDef *cd,const char *templSpec);
Packit Service 50c9f2
    void makeTemplateArgument(bool b=TRUE);
Packit Service 50c9f2
    void setCategoryOf(ClassDef *cd);
Packit Service 50c9f2
    void setUsedOnly(bool b);
Packit Service 50c9f2
Packit Service 50c9f2
    void addTaggedInnerClass(ClassDef *cd);
Packit Service 50c9f2
    void setTagLessReference(ClassDef *cd);
Packit Service 50c9f2
    void setName(const char *name);
Packit Service 50c9f2
Packit Service 50c9f2
    //-----------------------------------------------------------------------------------
Packit Service 50c9f2
    // --- actions ----
Packit Service 50c9f2
    //-----------------------------------------------------------------------------------
Packit Service 50c9f2
Packit Service 50c9f2
    void findSectionsInDocumentation();
Packit Service 50c9f2
    void addMembersToMemberGroup();
Packit Service 50c9f2
    void addListReferences();
Packit Service 50c9f2
    void addTypeConstraints();
Packit Service 50c9f2
    void computeAnchors();
Packit Service 50c9f2
    void mergeMembers();
Packit Service 50c9f2
    void sortMemberLists();
Packit Service 50c9f2
    void distributeMemberGroupDocumentation();
Packit Service 50c9f2
    void writeDocumentation(OutputList &ol);
Packit Service 50c9f2
    void writeDocumentationForInnerClasses(OutputList &ol);
Packit Service 50c9f2
    void writeMemberPages(OutputList &ol);
Packit Service 50c9f2
    void writeMemberList(OutputList &ol);
Packit Service 50c9f2
    void writeDeclaration(OutputList &ol,MemberDef *md,bool inGroup,
Packit Service 50c9f2
                          ClassDef *inheritedFrom,const char *inheritId);
Packit Service 50c9f2
    void writeQuickMemberLinks(OutputList &ol,MemberDef *md) const;
Packit Service 50c9f2
    void writeSummaryLinks(OutputList &ol);
Packit Service 50c9f2
    void reclassifyMember(MemberDef *md,MemberType t);
Packit Service 50c9f2
    void writeInlineDocumentation(OutputList &ol);
Packit Service 50c9f2
    void writeDeclarationLink(OutputList &ol,bool &found,
Packit Service 50c9f2
                              const char *header,bool localNames);
Packit Service 50c9f2
    void removeMemberFromLists(MemberDef *md);
Packit Service 50c9f2
    void addGroupedInheritedMembers(OutputList &ol,MemberListType lt,
Packit Service 50c9f2
                              ClassDef *inheritedFrom,const QCString &inheritId);
Packit Service 50c9f2
    int countMembersIncludingGrouped(MemberListType lt,ClassDef *inheritedFrom,bool additional);
Packit Service 50c9f2
    int countInheritanceNodes();
Packit Service 50c9f2
    void writeTagFile(FTextStream &);
Packit Service 50c9f2
    
Packit Service 50c9f2
    bool visited;
Packit Service 50c9f2
Packit Service 50c9f2
  protected:
Packit Service 50c9f2
    void addUsedInterfaceClasses(MemberDef *md,const char *typeStr);
Packit Service 50c9f2
    bool hasNonReferenceSuperClass();
Packit Service 50c9f2
    void showUsedFiles(OutputList &ol);
Packit Service 50c9f2
Packit Service 50c9f2
  private: 
Packit Service 50c9f2
    void writeDocumentationContents(OutputList &ol,const QCString &pageTitle);
Packit Service 50c9f2
    void internalInsertMember(MemberDef *md,Protection prot,bool addToAllList);
Packit Service 50c9f2
    void addMemberToList(MemberListType lt,MemberDef *md,bool isBrief);
Packit Service 50c9f2
    MemberList *createMemberList(MemberListType lt);
Packit Service 50c9f2
    void writeInheritedMemberDeclarations(OutputList &ol,MemberListType lt,int lt2,const QCString &title,ClassDef *inheritedFrom,bool invert,bool showAlways,QPtrDict<void> *visitedClasses);
Packit Service 50c9f2
    void writeMemberDeclarations(OutputList &ol,MemberListType lt,const QCString &title,
Packit Service 50c9f2
                                 const char *subTitle=0,bool showInline=FALSE,ClassDef *inheritedFrom=0,int lt2=-1,bool invert=FALSE,bool showAlways=FALSE,QPtrDict<void> *visitedClasses=0);
Packit Service 50c9f2
    void writeMemberDocumentation(OutputList &ol,MemberListType lt,const QCString &title,bool showInline=FALSE);
Packit Service 50c9f2
    void writeSimpleMemberDocumentation(OutputList &ol,MemberListType lt);
Packit Service 50c9f2
    void writePlainMemberDeclaration(OutputList &ol,MemberListType lt,bool inGroup,ClassDef *inheritedFrom,const char *inheritId);
Packit Service 50c9f2
    void writeBriefDescription(OutputList &ol,bool exampleFlag);
Packit Service 50c9f2
    void writeDetailedDescription(OutputList &ol,const QCString &pageType,bool exampleFlag,
Packit Service 50c9f2
                                  const QCString &title,const QCString &anchor=QCString());
Packit Service 50c9f2
    void writeIncludeFiles(OutputList &ol);
Packit Service 50c9f2
    //void writeAllMembersLink(OutputList &ol);
Packit Service 50c9f2
    void writeInheritanceGraph(OutputList &ol);
Packit Service 50c9f2
    void writeCollaborationGraph(OutputList &ol);
Packit Service 50c9f2
    void writeMemberGroups(OutputList &ol,bool showInline=FALSE);
Packit Service 50c9f2
    void writeNestedClasses(OutputList &ol,const QCString &title);
Packit Service 50c9f2
    void writeInlineClasses(OutputList &ol);
Packit Service 50c9f2
    void startMemberDeclarations(OutputList &ol);
Packit Service 50c9f2
    void endMemberDeclarations(OutputList &ol);
Packit Service 50c9f2
    void startMemberDocumentation(OutputList &ol);
Packit Service 50c9f2
    void endMemberDocumentation(OutputList &ol);
Packit Service 50c9f2
    void writeAuthorSection(OutputList &ol);
Packit Service 50c9f2
    void writeMoreLink(OutputList &ol,const QCString &anchor);
Packit Service 50c9f2
    void writeDetailedDocumentationBody(OutputList &ol);
Packit Service 50c9f2
    
Packit Service 50c9f2
    int countAdditionalInheritedMembers();
Packit Service 50c9f2
    void writeAdditionalInheritedMembers(OutputList &ol);
Packit Service 50c9f2
    void addClassAttributes(OutputList &ol);
Packit Service 50c9f2
    int countMemberDeclarations(MemberListType lt,ClassDef *inheritedFrom,
Packit Service 50c9f2
                                int lt2,bool invert,bool showAlways,QPtrDict<void> *visitedClasses);
Packit Service 50c9f2
    int countInheritedDecMembers(MemberListType lt,
Packit Service 50c9f2
                                 ClassDef *inheritedFrom,bool invert,bool showAlways,
Packit Service 50c9f2
                                 QPtrDict<void> *visitedClasses);
Packit Service 50c9f2
    void getTitleForMemberListType(MemberListType type,
Packit Service 50c9f2
               QCString &title,QCString &subtitle);
Packit Service 50c9f2
    QCString includeStatement() const;
Packit Service 50c9f2
    void addTypeConstraint(const QCString &typeConstraint,const QCString &type);
Packit Service 50c9f2
Packit Service 50c9f2
    ClassDefImpl *m_impl;
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
//------------------------------------------------------------------------
Packit Service 50c9f2
Packit Service 50c9f2
/** Class that contains information about a usage relation. 
Packit Service 50c9f2
 */
Packit Service 50c9f2
struct UsesClassDef
Packit Service 50c9f2
{
Packit Service 50c9f2
  UsesClassDef(ClassDef *cd) : classDef(cd) 
Packit Service 50c9f2
  { 
Packit Service 50c9f2
    accessors = new QDict<void>(17); 
Packit Service 50c9f2
    containment = TRUE;
Packit Service 50c9f2
  }
Packit Service 50c9f2
 ~UsesClassDef()
Packit Service 50c9f2
  {
Packit Service 50c9f2
    delete accessors;
Packit Service 50c9f2
  }
Packit Service 50c9f2
  void addAccessor(const char *s)
Packit Service 50c9f2
  {
Packit Service 50c9f2
    if (accessors->find(s)==0)
Packit Service 50c9f2
    {
Packit Service 50c9f2
      accessors->insert(s,(void *)666);
Packit Service 50c9f2
    }
Packit Service 50c9f2
  }
Packit Service 50c9f2
  /** Class definition that this relation uses. */
Packit Service 50c9f2
  ClassDef *classDef;
Packit Service 50c9f2
Packit Service 50c9f2
  /** Dictionary of member variable names that form the edge labels of the
Packit Service 50c9f2
   *  usage relation.
Packit Service 50c9f2
   */
Packit Service 50c9f2
  QDict<void> *accessors;
Packit Service 50c9f2
Packit Service 50c9f2
  /** Template arguments used for the base class */
Packit Service 50c9f2
  QCString templSpecifiers;
Packit Service 50c9f2
Packit Service 50c9f2
  bool containment;
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
/** Dictionary of usage relations. 
Packit Service 50c9f2
 */
Packit Service 50c9f2
class UsesClassDict : public QDict<UsesClassDef>
Packit Service 50c9f2
{
Packit Service 50c9f2
  public:
Packit Service 50c9f2
    UsesClassDict(int size) : QDict<UsesClassDef>(size) {}
Packit Service 50c9f2
   ~UsesClassDict() {}
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
/** Iterator class to iterate over a dictionary of usage relations. 
Packit Service 50c9f2
 */
Packit Service 50c9f2
class UsesClassDictIterator : public QDictIterator<UsesClassDef>
Packit Service 50c9f2
{
Packit Service 50c9f2
  public:
Packit Service 50c9f2
    UsesClassDictIterator(const QDict<UsesClassDef> &d) 
Packit Service 50c9f2
      : QDictIterator<UsesClassDef>(d) {}
Packit Service 50c9f2
   ~UsesClassDictIterator() {}
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
//------------------------------------------------------------------------
Packit Service 50c9f2
Packit Service 50c9f2
/** Class that contains information about an inheritance relation. 
Packit Service 50c9f2
 */
Packit Service 50c9f2
struct BaseClassDef
Packit Service 50c9f2
{
Packit Service 50c9f2
  BaseClassDef(ClassDef *cd,const char *n,Protection p,
Packit Service 50c9f2
               Specifier v,const char *t) : 
Packit Service 50c9f2
        classDef(cd), usedName(n), prot(p), virt(v), templSpecifiers(t) {}
Packit Service 50c9f2
Packit Service 50c9f2
  /** Class definition that this relation inherits from. */
Packit Service 50c9f2
  ClassDef *classDef;
Packit Service 50c9f2
Packit Service 50c9f2
  /** name used in the inheritance list 
Packit Service 50c9f2
   * (may be a typedef name instead of the class name)
Packit Service 50c9f2
   */
Packit Service 50c9f2
  QCString   usedName; 
Packit Service 50c9f2
  
Packit Service 50c9f2
  /** Protection level of the inheritance relation: 
Packit Service 50c9f2
   *  Public, Protected, or Private 
Packit Service 50c9f2
   */
Packit Service 50c9f2
  Protection prot;     
Packit Service 50c9f2
Packit Service 50c9f2
  /** Virtualness of the inheritance relation:
Packit Service 50c9f2
   *  Normal, or Virtual
Packit Service 50c9f2
   */
Packit Service 50c9f2
  Specifier  virt;
Packit Service 50c9f2
Packit Service 50c9f2
  /** Template arguments used for the base class */
Packit Service 50c9f2
  QCString templSpecifiers;
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
/** List of base classes.
Packit Service 50c9f2
 *  
Packit Service 50c9f2
 *  The classes are alphabetically sorted on name if inSort() is used.
Packit Service 50c9f2
 */
Packit Service 50c9f2
class BaseClassList : public QList<BaseClassDef>
Packit Service 50c9f2
{
Packit Service 50c9f2
  public:
Packit Service 50c9f2
   ~BaseClassList() {}
Packit Service 50c9f2
    int compareValues(const BaseClassDef *item1,const BaseClassDef *item2) const
Packit Service 50c9f2
    {
Packit Service 50c9f2
      const ClassDef *c1=item1->classDef;
Packit Service 50c9f2
      const ClassDef *c2=item2->classDef;
Packit Service 50c9f2
      if (c1==0 || c2==0)
Packit Service 50c9f2
        return FALSE;
Packit Service 50c9f2
      else
Packit Service 50c9f2
        return qstricmp(c1->name(),c2->name());
Packit Service 50c9f2
    }
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
/** Iterator for a list of base classes.
Packit Service 50c9f2
 */
Packit Service 50c9f2
class BaseClassListIterator : public QListIterator<BaseClassDef>
Packit Service 50c9f2
{
Packit Service 50c9f2
  public:
Packit Service 50c9f2
    BaseClassListIterator(const BaseClassList &bcl) : 
Packit Service 50c9f2
      QListIterator<BaseClassDef>(bcl) {}
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
//------------------------------------------------------------------------
Packit Service 50c9f2
Packit Service 50c9f2
Packit Service 50c9f2
/** Class that contains information about a type constraint relations.
Packit Service 50c9f2
 */
Packit Service 50c9f2
struct ConstraintClassDef
Packit Service 50c9f2
{
Packit Service 50c9f2
  ConstraintClassDef(ClassDef *cd) : classDef(cd)
Packit Service 50c9f2
  {
Packit Service 50c9f2
    accessors = new QDict<void>(17);
Packit Service 50c9f2
  }
Packit Service 50c9f2
 ~ConstraintClassDef()
Packit Service 50c9f2
  {
Packit Service 50c9f2
    delete accessors;
Packit Service 50c9f2
  }
Packit Service 50c9f2
  void addAccessor(const char *s)
Packit Service 50c9f2
  {
Packit Service 50c9f2
    if (accessors->find(s)==0)
Packit Service 50c9f2
    {
Packit Service 50c9f2
      accessors->insert(s,(void *)666);
Packit Service 50c9f2
    }
Packit Service 50c9f2
  }
Packit Service 50c9f2
  /** Class definition that this relation uses. */
Packit Service 50c9f2
  ClassDef *classDef;
Packit Service 50c9f2
Packit Service 50c9f2
  /** Dictionary of member types names that form the edge labels of the
Packit Service 50c9f2
   *  constraint relation.
Packit Service 50c9f2
   */
Packit Service 50c9f2
  QDict<void> *accessors;
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
/** Dictionary of constraint relations.
Packit Service 50c9f2
 */
Packit Service 50c9f2
class ConstraintClassDict : public QDict<ConstraintClassDef>
Packit Service 50c9f2
{
Packit Service 50c9f2
  public:
Packit Service 50c9f2
    ConstraintClassDict(int size) : QDict<ConstraintClassDef>(size) {}
Packit Service 50c9f2
   ~ConstraintClassDict() {}
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
/** Iterator class to iterate over a dictionary of constraint relations.
Packit Service 50c9f2
 */
Packit Service 50c9f2
class ConstraintClassDictIterator : public QDictIterator<ConstraintClassDef>
Packit Service 50c9f2
{
Packit Service 50c9f2
  public:
Packit Service 50c9f2
    ConstraintClassDictIterator(const QDict<ConstraintClassDef> &d)
Packit Service 50c9f2
      : QDictIterator<ConstraintClassDef>(d) {}
Packit Service 50c9f2
   ~ConstraintClassDictIterator() {}
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
//------------------------------------------------------------------------
Packit Service 50c9f2
Packit Service 50c9f2
#endif