Public Member Functions | Private Member Functions | Private Attributes | List of all members
IndexList Class Reference

A list of index interfaces. More...

#include <index.h>

Inheritance diagram for IndexList:
IndexIntf

Public Member Functions

 IndexList ()
 
void addIndex (IndexIntf *intf)
 
void disable ()
 
void enable ()
 
bool isEnabled () const
 
void initialize ()
 
void finalize ()
 
void incContentsDepth ()
 
void decContentsDepth ()
 
void addContentsItem (bool isDir, const char *name, const char *ref, const char *file, const char *anchor, bool separateIndex=FALSE, bool addToNavIndex=FALSE, Definition *def=0)
 
void addIndexItem (Definition *context, MemberDef *md, const char *sectionAnchor=0, const char *title=0)
 
void addIndexFile (const char *name)
 
void addImageFile (const char *name)
 
void addStyleSheetFile (const char *name)
 
- Public Member Functions inherited from IndexIntf
virtual ~IndexIntf ()
 

Private Member Functions

void foreach (void(IndexIntf::*methodPtr)())
 
template<typename A1 >
void foreach (void(IndexIntf::*methodPtr)(A1), A1 a1)
 
template<typename A1 , typename A2 , typename A3 >
void foreach (void(IndexIntf::*methodPtr)(A1, A2, A3), A1 a1, A2 a2, A3 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)
 
template<typename A1 , typename A2 , typename A3 , typename A4 , typename A5 >
void foreach (void(IndexIntf::*methodPtr)(A1, A2, A3, A4, A5), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
 
template<typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 >
void foreach (void(IndexIntf::*methodPtr)(A1, A2, A3, A4, A5, A6), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
 
template<typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 >
void foreach (void(IndexIntf::*methodPtr)(A1, A2, A3, A4, A5, A6, A7, A8), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
 
template<typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 >
void foreach (void(IndexIntf::*methodPtr)(A1, A2, A3, A4, A5, A6, A7, A8, A9), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9)
 

Private Attributes

QList< IndexIntfm_intfs
 
bool m_enabled
 

Detailed Description

A list of index interfaces.

This class itself implements all methods of IndexIntf and just forwards the calls to all items in the list.

Definition at line 53 of file index.h.

Constructor & Destructor Documentation

IndexList::IndexList ( )
inline

Creates a list of indexes

Definition at line 117 of file index.h.

QList< IndexIntf > m_intfs
Definition: index.h:56
bool m_enabled
Definition: index.h:153
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

void IndexList::addContentsItem ( bool  isDir,
const char *  name,
const char *  ref,
const char *  file,
const char *  anchor,
bool  separateIndex = FALSE,
bool  addToNavIndex = FALSE,
Definition def = 0 
)
inlinevirtual

Implements IndexIntf.

Definition at line 137 of file index.h.

140  { if (m_enabled) foreach<bool,const char *,const char *,const char *,const char*,bool,bool,Definition *>
141  (&IndexIntf::addContentsItem,isDir,name,ref,file,anchor,separateIndex,addToNavIndex,def); }
static QCString name
Definition: declinfo.cpp:673
virtual void addContentsItem(bool isDir, const char *name, const char *ref, const char *file, const char *anchor, bool separateIndex, bool addToNavIndex, Definition *def)=0
bool m_enabled
Definition: index.h:153
void IndexList::addImageFile ( const char *  name)
inlinevirtual

Implements IndexIntf.

Definition at line 147 of file index.h.

148  { if (m_enabled) foreach<const char *>(&IndexIntf::addImageFile,name); }
static QCString name
Definition: declinfo.cpp:673
virtual void addImageFile(const char *name)=0
bool m_enabled
Definition: index.h:153
void IndexList::addIndex ( IndexIntf intf)
inline

Add an index generator to the list

Definition at line 119 of file index.h.

120  { m_intfs.append(intf); }
void append(const type *d)
Definition: qlist.h:73
QList< IndexIntf > m_intfs
Definition: index.h:56
void IndexList::addIndexFile ( const char *  name)
inlinevirtual

Implements IndexIntf.

Definition at line 145 of file index.h.

146  { if (m_enabled) foreach<const char *>(&IndexIntf::addIndexFile,name); }
static QCString name
Definition: declinfo.cpp:673
virtual void addIndexFile(const char *name)=0
bool m_enabled
Definition: index.h:153
void IndexList::addIndexItem ( Definition context,
MemberDef md,
const char *  sectionAnchor = 0,
const char *  title = 0 
)
inlinevirtual

Implements IndexIntf.

Definition at line 142 of file index.h.

143  { if (m_enabled) foreach<Definition *,MemberDef *,const char *,const char *>
144  (&IndexIntf::addIndexItem,context,md,sectionAnchor,title); }
bool m_enabled
Definition: index.h:153
virtual void addIndexItem(Definition *context, MemberDef *md, const char *sectionAnchor, const char *title)=0
void IndexList::addStyleSheetFile ( const char *  name)
inlinevirtual

Implements IndexIntf.

Definition at line 149 of file index.h.

150  { if (m_enabled) foreach<const char *>(&IndexIntf::addStyleSheetFile,name); }
static QCString name
Definition: declinfo.cpp:673
virtual void addStyleSheetFile(const char *name)=0
bool m_enabled
Definition: index.h:153
void IndexList::decContentsDepth ( )
inlinevirtual

Implements IndexIntf.

Definition at line 135 of file index.h.

136  { if (m_enabled) foreach(&IndexIntf::decContentsDepth); }
bool m_enabled
Definition: index.h:153
virtual void decContentsDepth()=0
void IndexList::disable ( )
inline

Definition at line 121 of file index.h.

122  { m_enabled = FALSE; }
const bool FALSE
Definition: qglobal.h:370
bool m_enabled
Definition: index.h:153
void IndexList::enable ( )
inline

Definition at line 123 of file index.h.

124  { m_enabled = TRUE; }
bool m_enabled
Definition: index.h:153
const bool TRUE
Definition: qglobal.h:371
void IndexList::finalize ( )
inlinevirtual

Implements IndexIntf.

Definition at line 131 of file index.h.

132  { foreach(&IndexIntf::finalize); }
virtual void finalize()=0
void IndexList::foreach ( void(IndexIntf::*)()  methodPtr)
inlineprivate

Definition at line 60 of file index.h.

61  {
63  for (li.toFirst();li.current();++li) (li.current()->*methodPtr)();
64  }
QList< IndexIntf > m_intfs
Definition: index.h:56
template<typename A1 >
void IndexList::foreach ( void(IndexIntf::*)(A1)  methodPtr,
A1  a1 
)
inlineprivate

Definition at line 67 of file index.h.

68  {
70  for (li.toFirst();li.current();++li) (li.current()->*methodPtr)(a1);
71  }
QList< IndexIntf > m_intfs
Definition: index.h:56
#define a1
template<typename A1 , typename A2 , typename A3 >
void IndexList::foreach ( void(IndexIntf::*)(A1, A2, A3)  methodPtr,
A1  a1,
A2  a2,
A3  a3 
)
inlineprivate

Definition at line 74 of file index.h.

75  {
77  for (li.toFirst();li.current();++li) (li.current()->*methodPtr)(a1,a2,a3);
78  }
QList< IndexIntf > m_intfs
Definition: index.h:56
#define a2
#define a3
#define a1
template<typename A1 , typename A2 , typename A3 , typename A4 >
void IndexList::foreach ( void(IndexIntf::*)(A1, A2, A3, A4)  methodPtr,
A1  a1,
A2  a2,
A3  a3,
A4  a4 
)
inlineprivate

Definition at line 81 of file index.h.

82  {
84  for (li.toFirst();li.current();++li) (li.current()->*methodPtr)(a1,a2,a3,a4);
85  }
QList< IndexIntf > m_intfs
Definition: index.h:56
#define a2
#define a3
#define a4
#define a1
template<typename A1 , typename A2 , typename A3 , typename A4 , typename A5 >
void IndexList::foreach ( void(IndexIntf::*)(A1, A2, A3, A4, A5)  methodPtr,
A1  a1,
A2  a2,
A3  a3,
A4  a4,
A5  a5 
)
inlineprivate

Definition at line 88 of file index.h.

89  {
91  for (li.toFirst();li.current();++li) (li.current()->*methodPtr)(a1,a2,a3,a4,a5);
92  }
QList< IndexIntf > m_intfs
Definition: index.h:56
#define a5
#define a2
#define a3
#define a4
#define a1
template<typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 >
void IndexList::foreach ( void(IndexIntf::*)(A1, A2, A3, A4, A5, A6)  methodPtr,
A1  a1,
A2  a2,
A3  a3,
A4  a4,
A5  a5,
A6  a6 
)
inlineprivate

Definition at line 95 of file index.h.

96  {
98  for (li.toFirst();li.current();++li) (li.current()->*methodPtr)(a1,a2,a3,a4,a5,a6);
99  }
#define a6
QList< IndexIntf > m_intfs
Definition: index.h:56
#define a5
#define a2
#define a3
#define a4
#define a1
template<typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 >
void IndexList::foreach ( void(IndexIntf::*)(A1, A2, A3, A4, A5, A6, A7, A8)  methodPtr,
A1  a1,
A2  a2,
A3  a3,
A4  a4,
A5  a5,
A6  a6,
A7  a7,
A8  a8 
)
inlineprivate

Definition at line 102 of file index.h.

103  {
105  for (li.toFirst();li.current();++li) (li.current()->*methodPtr)(a1,a2,a3,a4,a5,a6,a7,a8);
106  }
#define a6
QList< IndexIntf > m_intfs
Definition: index.h:56
#define a5
#define a2
#define a3
#define a4
#define a1
template<typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9 >
void IndexList::foreach ( void(IndexIntf::*)(A1, A2, A3, A4, A5, A6, A7, A8, A9)  methodPtr,
A1  a1,
A2  a2,
A3  a3,
A4  a4,
A5  a5,
A6  a6,
A7  a7,
A8  a8,
A9  a9 
)
inlineprivate

Definition at line 109 of file index.h.

110  {
112  for (li.toFirst();li.current();++li) (li.current()->*methodPtr)(a1,a2,a3,a4,a5,a6,a7,a8,a9);
113  }
#define a6
QList< IndexIntf > m_intfs
Definition: index.h:56
#define a5
#define a2
#define a3
#define a4
#define a1
void IndexList::incContentsDepth ( )
inlinevirtual

Implements IndexIntf.

Definition at line 133 of file index.h.

134  { if (m_enabled) foreach(&IndexIntf::incContentsDepth); }
bool m_enabled
Definition: index.h:153
virtual void incContentsDepth()=0
void IndexList::initialize ( )
inlinevirtual

Implements IndexIntf.

Definition at line 129 of file index.h.

130  { foreach(&IndexIntf::initialize); }
virtual void initialize()=0
bool IndexList::isEnabled ( ) const
inline

Definition at line 125 of file index.h.

126  { return m_enabled; }
bool m_enabled
Definition: index.h:153

Member Data Documentation

bool IndexList::m_enabled
private

Definition at line 153 of file index.h.

QList<IndexIntf> IndexList::m_intfs
private

Definition at line 56 of file index.h.


The documentation for this class was generated from the following file: