summaryrefslogtreecommitdiffstats
path: root/src/membergroup.h
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-05-01 18:34:38 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-05-01 18:34:38 (GMT)
commit1708261ebe54b03c45a4bfe3c1e78581779b2a80 (patch)
tree6dab4342e5ad2e3a894d3a0d542c9f73c20aeb51 /src/membergroup.h
parent5456e9a65c2e7a29f61d17d19906aa9616678ca6 (diff)
downloadDoxygen-1708261ebe54b03c45a4bfe3c1e78581779b2a80.zip
Doxygen-1708261ebe54b03c45a4bfe3c1e78581779b2a80.tar.gz
Doxygen-1708261ebe54b03c45a4bfe3c1e78581779b2a80.tar.bz2
Refactoring: Introduce type names for commonly used container types
Diffstat (limited to 'src/membergroup.h')
-rw-r--r--src/membergroup.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/membergroup.h b/src/membergroup.h
index c1433cf..3b8e0fc 100644
--- a/src/membergroup.h
+++ b/src/membergroup.h
@@ -1,12 +1,12 @@
/******************************************************************************
*
- *
+ *
*
* Copyright (C) 1997-2015 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
- * documentation under the terms of the GNU General Public License is hereby
- * granted. No representations are made about the suitability of this software
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
@@ -23,6 +23,7 @@
#include <qlist.h>
#include "sortdict.h"
#include "types.h"
+#include "reflist.h"
#define DOX_NOGROUP -1
@@ -38,7 +39,7 @@ class FTextStream;
class RefItem;
/** A class representing a group of members. */
-class MemberGroup
+class MemberGroup
{
public:
MemberGroup();
@@ -81,14 +82,14 @@ class MemberGroup
int countInheritableMembers(const ClassDef *inheritedFrom) const;
void setInGroup(bool b);
void addListReferences(Definition *d);
- void setRefItems(const std::vector<RefItem*> &sli);
+ void setRefItems(const RefItemVector &sli);
MemberList *members() const { return memberList; }
QCString anchor() const;
QCString docFile() const { return m_docFile; }
int docLine() const { return m_docLine; }
- private:
+ private:
MemberList *memberList = 0; // list of all members in the group
MemberList *inDeclSection = 0;
int grpId = 0;
@@ -100,7 +101,7 @@ class MemberGroup
int m_numDocMembers = 0;
QCString m_docFile;
int m_docLine = 0;
- std::vector<RefItem*> m_xrefListItems;
+ RefItemVector m_xrefListItems;
};
/** A list of MemberGroup objects. */
@@ -112,7 +113,7 @@ class MemberGroupList : public QList<MemberGroup>
class MemberGroupListIterator : public QListIterator<MemberGroup>
{
public:
- MemberGroupListIterator(const MemberGroupList &l) :
+ MemberGroupListIterator(const MemberGroupList &l) :
QListIterator<MemberGroup>(l) {}
};
@@ -132,13 +133,13 @@ class MemberGroupSDict : public SIntDict<MemberGroup>
/** Data collected for a member group */
struct MemberGroupInfo
{
- void setRefItems(const std::vector<RefItem*> &sli);
+ void setRefItems(const RefItemVector &sli);
QCString header;
QCString doc;
QCString docFile;
int docLine = -1;
QCString compoundName;
- std::vector<RefItem*> m_sli;
+ RefItemVector m_sli;
};
#endif