diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-06-11 19:22:39 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-06-11 19:22:39 (GMT) |
commit | 975a88d42fb296be726c8063819327a262195bbd (patch) | |
tree | a213e1477917c43abbeeac764fe4d2846e726728 /src/definition.h | |
parent | 3472b3019d048213d4c6f15e17d40602b8ca6e78 (diff) | |
download | Doxygen-975a88d42fb296be726c8063819327a262195bbd.zip Doxygen-975a88d42fb296be726c8063819327a262195bbd.tar.gz Doxygen-975a88d42fb296be726c8063819327a262195bbd.tar.bz2 |
Release-1.1.4-20000611
Diffstat (limited to 'src/definition.h')
-rw-r--r-- | src/definition.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/definition.h b/src/definition.h index e9c6d15..36aa229 100644 --- a/src/definition.h +++ b/src/definition.h @@ -24,6 +24,9 @@ class FileDef; class OutputList; class SectionList; +class MemberList; +class MemberDict; +class MemberDef; /*! The common base class of all entity definitions found in the sources. */ class Definition @@ -83,6 +86,7 @@ class Definition */ void addSectionsToDefinition(QList<QCString> *anchorList); + // source references void setBodySegment(int bls,int ble) { startBodyLine=bls; @@ -92,7 +96,9 @@ class Definition int getStartBodyLine() const { return startBodyLine; } int getEndBodyLine() const { return endBodyLine; } FileDef *getBodyDef() { return bodyDef; } - void writeSourceRef(OutputList &ol,const char *scopeName); + void writeSourceDef(OutputList &ol,const char *scopeName); + void writeSourceRefs(OutputList &ol,const char *scopeName); + void addSourceReference(MemberDef *d); /*! returns the file in which this definition was found */ QCString getDefFileName() const { return defFileName; } @@ -114,7 +120,31 @@ class Definition QCString doc; // detailed description QCString ref; // reference to external documentation SectionList *sectionList; // list of all sections + MemberList *sourceRefList; // list of entities that refer to this + // entity in their definition + MemberDict *sourceRefDict; }; +class DefinitionList : public QList<Definition> +{ + public: + ~DefinitionList() {} + int compareItems(GCI item1,GCI item2) + { + return stricmp(((Definition *)item1)->name(), + ((Definition *)item2)->name() + ); + } + +}; + +class DefinitionListIterator : public QListIterator<Definition> +{ + public: + DefinitionListIterator(const DefinitionList &l) : + QListIterator<Definition>(l) {} + ~DefinitionListIterator() {} +}; + #endif |