diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-07-28 19:05:01 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-07-28 19:05:01 (GMT) |
commit | f0e47672cc3f910aebd1d30fe3db21e9dbd943c4 (patch) | |
tree | aa81c2bd3e6109417a6bd30d6a58111d892f25f2 /src/index.h | |
parent | d0412f05557d55f465407a9337553c0a6ee0396f (diff) | |
download | Doxygen-f0e47672cc3f910aebd1d30fe3db21e9dbd943c4.zip Doxygen-f0e47672cc3f910aebd1d30fe3db21e9dbd943c4.tar.gz Doxygen-f0e47672cc3f910aebd1d30fe3db21e9dbd943c4.tar.bz2 |
Release-1.7.1-20100728
Diffstat (limited to 'src/index.h')
-rw-r--r-- | src/index.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/index.h b/src/index.h index c5d1bb3..93bfee4 100644 --- a/src/index.h +++ b/src/index.h @@ -38,8 +38,7 @@ class IndexIntf virtual void decContentsDepth() = 0; virtual void addContentsItem(bool isDir, const char *name, const char *ref = 0, const char *file = 0, const char *anchor = 0) = 0; - virtual void addIndexItem(Definition *context,MemberDef *md, - const char *anchor,const char *word) = 0; + virtual void addIndexItem(Definition *context,MemberDef *md,const char *title) = 0; virtual void addIndexFile(const char *name) = 0; virtual void addImageFile(const char *name) = 0; virtual void addStyleSheetFile(const char *name) = 0; @@ -70,6 +69,13 @@ class IndexList : public IndexIntf for (li.toFirst();li.current();++li) (li.current()->*methodPtr)(a1); } + template<typename A1,typename A2,typename A3> + void foreach(void (IndexIntf::*methodPtr)(A1,A2,A3),A1 a1,A2 a2,A3 a3) + { + QListIterator<IndexIntf> li(m_intfs); + for (li.toFirst();li.current();++li) (li.current()->*methodPtr)(a1,a2,a3); + } + template<typename A1,typename A2,typename A3,typename A4> void foreach(void (IndexIntf::*methodPtr)(A1,A2,A3,A4),A1 a1,A2 a2,A3 a3,A4 a4) { @@ -104,10 +110,9 @@ class IndexList : public IndexIntf const char *file = 0, const char *anchor = 0) { foreach<bool,const char *,const char *,const char *,const char*> (&IndexIntf::addContentsItem,isDir,name,ref,file,anchor); } - void addIndexItem(Definition *context,MemberDef *md, - const char *anchor=0,const char *word=0) + void addIndexItem(Definition *context,MemberDef *md,const char *title=0) { foreach<Definition *,MemberDef *> - (&IndexIntf::addIndexItem,context,md,anchor,word); } + (&IndexIntf::addIndexItem,context,md,title); } void addIndexFile(const char *name) { foreach<const char *>(&IndexIntf::addIndexFile,name); } void addImageFile(const char *name) |