|
ISLEman
|
A class representing of a compound symbol. More...
#include <classdef.h>
Public Types | |
| enum | CompoundType { Class, Struct, Union, Interface, Protocol, Category, Exception, Service, Singleton } |
| The various compound types. | |
Public Types inherited from DefinitionIntf | |
| enum | DefType { TypeClass = 0, TypeFile = 1, TypeNamespace = 2, TypeMember = 3, TypeGroup = 4, TypePackage = 5, TypePage = 6, TypeDir = 7, TypeSymbolList = 8 } |
Public Member Functions | |
| ClassDef (const char *fileName, int startLine, int startColumn, const char *name, CompoundType ct, const char *ref=0, const char *fName=0, bool isSymbol=TRUE, bool isJavaEnum=FALSE) | |
| Creates a new compound definition. More... | |
| ~ClassDef () | |
| Destroys a compound definition. More... | |
| DefType | definitionType () const |
| Used for RTTI, this is a class. | |
| QCString | getOutputFileBase () const |
| Returns the unique base name (without extension) of the class's file on disk. | |
| QCString | getInstanceOutputFileBase () const |
| QCString | getSourceFileBase () const |
| Returns the base name for the source code file. | |
| QCString | getReference () const |
| If this class originated from a tagfile, this will return the tag file reference. | |
| bool | isReference () const |
| Returns TRUE if this class is imported via a tag file. | |
| bool | isLocal () const |
| Returns TRUE if this is a local class definition, see EXTRACT_LOCAL_CLASSES. | |
| ClassSDict * | getClassSDict () |
| returns the classes nested into this class | |
| bool | hasDocumentation () const |
| returns TRUE if this class has documentation | |
| bool | hasDetailedDescription () const |
| returns TRUE if this class has a non-empty detailed description | |
| QCString | collaborationGraphFileName () const |
| returns the file name to use for the collaboration graph | |
| QCString | inheritanceGraphFileName () const |
| returns the file name to use for the inheritance graph | |
| QCString | displayName (bool includeScope=TRUE) const |
| Returns the name as it is appears in the documentation. | |
| CompoundType | compoundType () const |
| Returns the type of compound this is, i.e. More... | |
| QCString | compoundTypeString () const |
| Returns the type of compound as a string. | |
| BaseClassList * | baseClasses () const |
| Returns the list of base classes from which this class directly inherits. | |
| BaseClassList * | subClasses () const |
| Returns the list of sub classes that directly derive from this class. | |
| MemberNameInfoSDict * | memberNameInfoSDict () const |
| Returns a dictionary of all members. More... | |
| Protection | protection () const |
| Return the protection level (Public,Protected,Private) in which this compound was found. | |
| bool | isLinkableInProject () const |
| returns TRUE iff a link is possible to this item within this project. More... | |
| bool | isLinkable () const |
| return TRUE iff a link to this class is possible (either within this project, or as a cross-reference to another project). | |
| bool | isVisibleInHierarchy () |
| the class is visible in a class diagram, or class hierarchy More... | |
| bool | visibleInParentsDeclList () const |
| show this class in the declaration section of its parent? | |
| ArgumentList * | templateArguments () const |
| Returns the template arguments of this class Will return 0 if not applicable. | |
| NamespaceDef * | getNamespaceDef () const |
| Returns the namespace this compound is in, or 0 if it has a global scope. | |
| FileDef * | getFileDef () const |
| Returns the file in which this compound's definition can be found. More... | |
| MemberDef * | getMemberByName (const QCString &) const |
| Returns the Java package this class is in or 0 if not applicable. | |
| bool | isBaseClass (ClassDef *bcd, bool followInstances, int level=0) |
| Returns TRUE iff bcd is a direct or indirect base class of this class. More... | |
| bool | isSubClass (ClassDef *bcd, int level=0) |
| Returns TRUE iff bcd is a direct or indirect sub class of this class. | |
| bool | isAccessibleMember (MemberDef *md) |
| returns TRUE iff md is a member of this class or of the the public/protected members of a base class | |
| QDict< ClassDef > * | getTemplateInstances () const |
| Returns a sorted dictionary with all template instances found for this template class. More... | |
| ClassDef * | templateMaster () const |
| Returns the template master of which this class is an instance. More... | |
| bool | isTemplate () const |
| Returns TRUE if this class is a template. | |
| IncludeInfo * | includeInfo () const |
| UsesClassDict * | usedImplementationClasses () const |
| UsesClassDict * | usedByImplementationClasses () const |
| UsesClassDict * | usedInterfaceClasses () const |
| ConstraintClassDict * | templateTypeConstraints () const |
| bool | isTemplateArgument () const |
| virtual Definition * | findInnerCompound (const char *name) |
| Returns the definition of a nested compound if available, or 0 otherwise. More... | |
| void | getTemplateParameterLists (QList< ArgumentList > &lists) const |
| Returns the template parameter lists that form the template declaration of this class. More... | |
| QCString | qualifiedNameWithTemplateParameters (QList< ArgumentList > *actualParams=0, int *actualParamIndex=0) const |
| bool | isAbstract () const |
| Returns TRUE if there is at least one pure virtual member in this class. | |
| bool | isObjectiveC () const |
| Returns TRUE if this class is implemented in Objective-C. | |
| bool | isCSharp () const |
| Returns TRUE if this class is implemented in C#. | |
| bool | isFinal () const |
| Returns TRUE if this class is marked as final. | |
| bool | isSealed () const |
| Returns TRUE if this class is marked as sealed. | |
| bool | isPublished () const |
| Returns TRUE if this class is marked as published. | |
| bool | isExtension () const |
| Returns TRUE if this class represents an Objective-C 2.0 extension (nameless category) | |
| bool | isForwardDeclared () const |
| Returns TRUE if this class represents a forward declaration of a template class. | |
| ClassDef * | categoryOf () const |
| Returns the class of which this is a category (Objective-C only) | |
| QCString | className () const |
| Returns the name of the class including outer classes, but not including namespaces. | |
| MemberList * | getMemberList (MemberListType lt) |
| Returns the members in the list identified by lt. | |
| const QList< MemberList > & | getMemberLists () const |
| Returns the list containing the list of members sorted per type. | |
| MemberGroupSDict * | getMemberGroupSDict () const |
| Returns the member groups defined for this class. | |
| QDict< int > * | getTemplateBaseClassNames () const |
| ClassDef * | getVariableInstance (const char *templSpec) |
| bool | isUsedOnly () const |
| QCString | anchor () const |
| bool | isEmbeddedInOuterScope () const |
| bool | isSimple () const |
| const ClassList * | taggedInnerClasses () const |
| ClassDef * | tagLessReference () const |
| MemberDef * | isSmartPointer () const |
| bool | isJavaEnum () const |
| bool | isGeneric () const |
| bool | isAnonymous () const |
| const ClassSDict * | innerClasses () const |
| QCString | title () const |
| QCString | generatedFromFiles () const |
| const FileList & | usedFiles () const |
| const ArgumentList * | typeConstraints () const |
| const ExampleSDict * | exampleList () const |
| bool | hasExamples () const |
| QCString | getMemberListFileName () const |
| bool | subGrouping () const |
| void | insertBaseClass (ClassDef *, const char *name, Protection p, Specifier s, const char *t=0) |
| void | insertSubClass (ClassDef *, Protection p, Specifier s, const char *t=0) |
| void | setIncludeFile (FileDef *fd, const char *incName, bool local, bool force) |
| void | insertMember (MemberDef *) |
| void | insertUsedFile (FileDef *) |
| bool | addExample (const char *anchor, const char *name, const char *file) |
| void | mergeCategory (ClassDef *category) |
| void | setNamespace (NamespaceDef *nd) |
| void | setFileDef (FileDef *fd) |
| void | setSubGrouping (bool enabled) |
| void | setProtection (Protection p) |
| void | setGroupDefForAllMembers (GroupDef *g, Grouping::GroupPri_t pri, const QCString &fileName, int startLine, bool hasDocs) |
| void | addInnerCompound (Definition *d) |
| ClassDef * | insertTemplateInstance (const QCString &fileName, int startLine, int startColumn, const QCString &templSpec, bool &freshInstance) |
| void | addUsedClass (ClassDef *cd, const char *accessName, Protection prot) |
| void | addUsedByClass (ClassDef *cd, const char *accessName, Protection prot) |
| void | setIsStatic (bool b) |
| void | setCompoundType (CompoundType t) |
| void | setClassName (const char *name) |
| void | setClassSpecifier (uint64 spec) |
| void | setTemplateArguments (ArgumentList *al) |
| void | setTemplateBaseClassNames (QDict< int > *templateNames) |
| void | setTemplateMaster (ClassDef *tm) |
| void | setTypeConstraints (ArgumentList *al) |
| void | addMembersToTemplateInstance (ClassDef *cd, const char *templSpec) |
| void | makeTemplateArgument (bool b=TRUE) |
| void | setCategoryOf (ClassDef *cd) |
| void | setUsedOnly (bool b) |
| void | addTaggedInnerClass (ClassDef *cd) |
| void | setTagLessReference (ClassDef *cd) |
| void | setName (const char *name) |
| void | findSectionsInDocumentation () |
| void | addMembersToMemberGroup () |
| void | addListReferences () |
| void | addTypeConstraints () |
| void | computeAnchors () |
| void | mergeMembers () |
| void | sortMemberLists () |
| void | distributeMemberGroupDocumentation () |
| void | writeDocumentation (OutputList &ol) |
| void | writeDocumentationForInnerClasses (OutputList &ol) |
| void | writeMemberPages (OutputList &ol) |
| void | writeMemberList (OutputList &ol) |
| void | writeDeclaration (OutputList &ol, MemberDef *md, bool inGroup, ClassDef *inheritedFrom, const char *inheritId) |
| void | writeQuickMemberLinks (OutputList &ol, MemberDef *md) const |
| void | writeSummaryLinks (OutputList &ol) |
| void | reclassifyMember (MemberDef *md, MemberType t) |
| void | writeInlineDocumentation (OutputList &ol) |
| Write class documentation inside another container (i.e. More... | |
| void | writeDeclarationLink (OutputList &ol, bool &found, const char *header, bool localNames) |
| void | removeMemberFromLists (MemberDef *md) |
| void | addGroupedInheritedMembers (OutputList &ol, MemberListType lt, ClassDef *inheritedFrom, const QCString &inheritId) |
| int | countMembersIncludingGrouped (MemberListType lt, ClassDef *inheritedFrom, bool additional) |
| int | countInheritanceNodes () |
| void | writeTagFile (FTextStream &) |
Public Member Functions inherited from Definition | |
| Definition (const char *defFileName, int defLine, int defColumn, const char *name, const char *b=0, const char *d=0, bool isSymbol=TRUE) | |
| virtual | ~Definition () |
| const QCString & | name () const |
| QCString | localName () const |
| virtual QCString | qualifiedName () const |
| QCString | symbolName () const |
| virtual QCString | getSourceAnchor () const |
| virtual QCString | documentation () const |
| int | docLine () const |
| QCString | docFile () const |
| virtual QCString | briefDescription (bool abbreviate=FALSE) const |
| QCString | briefDescriptionAsTooltip () const |
| int | briefLine () const |
| QCString | inbodyDocumentation () const |
| QCString | inbodyFile () const |
| int | inbodyLine () const |
| QCString | briefFile () const |
| QCString | getDefFileName () const |
| QCString | getDefFileExtension () const |
| int | getDefLine () const |
| int | getDefColumn () const |
| virtual bool | hasUserDocumentation () const |
| virtual bool | isVisibleInProject () const |
| virtual bool | isVisible () const |
| bool | isHidden () const |
| bool | isArtificial () const |
| QCString | externalReference (const QCString &relPath) const |
| int | getStartBodyLine () const |
| int | getEndBodyLine () const |
| FileDef * | getBodyDef () const |
| SrcLangExt | getLanguage () const |
| Returns the programming language this definition was written in. More... | |
| GroupList * | partOfGroups () const |
| bool | isLinkableViaGroup () const |
| QList< ListItemInfo > * | xrefListItems () const |
| virtual Definition * | getOuterScope () const |
| MemberSDict * | getReferencesMembers () const |
| MemberSDict * | getReferencedByMembers () const |
| bool | hasSections () const |
| bool | hasSources () const |
| bool | hasBriefDescription () const |
| returns TRUE if this class has a brief description | |
| QCString | id () const |
| void | setId (const char *name) |
| virtual void | setDocumentation (const char *d, const char *docFile, int docLine, bool stripWhiteSpace=TRUE) |
| virtual void | setBriefDescription (const char *b, const char *briefFile, int briefLine) |
| virtual void | setInbodyDocumentation (const char *d, const char *docFile, int docLine) |
| void | setReference (const char *r) |
| void | addSectionsToDefinition (QList< SectionInfo > *anchorList) |
| void | setBodySegment (int bls, int ble) |
| void | setBodyDef (FileDef *fd) |
| void | addSourceReferencedBy (MemberDef *d) |
| void | addSourceReferences (MemberDef *d) |
| void | setRefItems (const QList< ListItemInfo > *sli) |
| void | mergeRefItems (Definition *d) |
| virtual void | setOuterScope (Definition *d) |
| virtual void | setHidden (bool b) |
| void | setArtificial (bool b) |
| void | setLanguage (SrcLangExt lang) |
| void | writeSourceDef (OutputList &ol, const char *scopeName) |
| void | writeInlineCode (OutputList &ol, const char *scopeName) |
| void | writeSourceRefs (OutputList &ol, const char *scopeName) |
| void | writeSourceReffedBy (OutputList &ol, const char *scopeName) |
| void | makePartOfGroup (GroupDef *gd) |
| void | writeNavigationPath (OutputList &ol) const |
| QCString | navigationPathAsString () const |
| QCString | pathFragment () const |
| void | writeDocAnchorsToTagFile (FTextStream &) |
| void | setLocalName (const QCString name) |
| void | addSectionsToIndex () |
| void | writeToc (OutputList &ol) |
| void | setCookie (Cookie *cookie) |
| Cookie * | cookie () const |
Public Attributes | |
| bool | visited |
Protected Member Functions | |
| void | addUsedInterfaceClasses (MemberDef *md, const char *typeStr) |
| bool | hasNonReferenceSuperClass () |
| void | showUsedFiles (OutputList &ol) |
Protected Member Functions inherited from Definition | |
| Definition (const Definition &d) | |
A class representing of a compound symbol.
A compound can be a class, struct, union, interface, service, singleton, or exception.
| ClassDef::ClassDef | ( | const char * | fileName, |
| int | startLine, | ||
| int | startColumn, | ||
| const char * | name, | ||
| CompoundType | ct, | ||
| const char * | ref = 0, |
||
| const char * | fName = 0, |
||
| bool | isSymbol = TRUE, |
||
| bool | isJavaEnum = FALSE |
||
| ) |
Creates a new compound definition.
| fileName | full path and file name in which this compound was found. |
| startLine | line number where the definition of this compound starts. |
| startColumn | column number where the definition of this compound starts. |
| name | the name of this compound (including scope) |
| ct | the kind of Compound |
| ref | the tag file from which this compound is extracted or 0 if the compound doesn't come from a tag file |
| fName | the file name as found in the tag file. This overwrites the file that doxygen normally generates based on the compound type & name. |
| isSymbol | If TRUE this class name is added as a publicly visible (and referencable) symbol. |
| isJavaEnum | If TRUE this class is actually a Java enum. I didn't add this to CompoundType to avoid having to adapt all translators. |
| ClassDef::~ClassDef | ( | ) |
Destroys a compound definition.
|
virtual |
Returns the anchor within a page where this item can be found
Implements Definition.
| ClassDef::CompoundType ClassDef::compoundType | ( | ) | const |
Returns the type of compound this is, i.e.
class/struct/union/..
|
virtual |
Returns the definition of a nested compound if available, or 0 otherwise.
| name | The name of the nested compound |
Reimplemented from Definition.
| FileDef * ClassDef::getFileDef | ( | ) | const |
Returns the file in which this compound's definition can be found.
Should not return 0 (but it might be a good idea to check anyway).
| QDict< ClassDef > * ClassDef::getTemplateInstances | ( | ) | const |
Returns a sorted dictionary with all template instances found for this template class.
Returns 0 if not a template or no instances.
| void ClassDef::getTemplateParameterLists | ( | QList< ArgumentList > & | lists | ) | const |
Returns the template parameter lists that form the template declaration of this class.
Example: template<class T> class TC {}; will return a list with one ArgumentList containing one argument with type="class" and name="T".
|
protected |
Returns TRUE iff this class or a class inheriting from this class is not defined in an external tag file.
| bool ClassDef::isBaseClass | ( | ClassDef * | bcd, |
| bool | followInstances, | ||
| int | level = 0 |
||
| ) |
Returns TRUE iff bcd is a direct or indirect base class of this class.
This function will recusively traverse all branches of the inheritance tree.
|
virtual |
returns TRUE iff a link is possible to this item within this project.
a link to this class is possible within this project
Implements Definition.
| bool ClassDef::isVisibleInHierarchy | ( | ) |
the class is visible in a class diagram, or class hierarchy
the class is visible in a class diagram, or class hierarchy
| MemberNameInfoSDict * ClassDef::memberNameInfoSDict | ( | ) | const |
Returns a dictionary of all members.
This includes any inherited members. Members are sorted alphabetically.
| void ClassDef::mergeCategory | ( | ClassDef * | category | ) |
Merges the members of a Objective-C category into this class.
| void ClassDef::mergeMembers | ( | ) |
recusively merges the `all members' lists of a class base with that of this class. Must only be called for classes without subclasses!
|
virtual |
Sets a new name for the definition
Reimplemented from Definition.
| ClassDef * ClassDef::templateMaster | ( | ) | const |
Returns the template master of which this class is an instance.
Returns 0 if not applicable.
| void ClassDef::writeDeclaration | ( | OutputList & | ol, |
| MemberDef * | md, | ||
| bool | inGroup, | ||
| ClassDef * | inheritedFrom, | ||
| const char * | inheritId | ||
| ) |
called from MemberDef::writeDeclaration() to (recusively) write the definition of an anonymous struct, union or class.
| void ClassDef::writeInlineDocumentation | ( | OutputList & | ol | ) |
Write class documentation inside another container (i.e.
a group)
1.8.12