diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2001-03-19 21:28:43 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2001-03-19 21:28:43 (GMT) |
commit | b11bb229001fbb79399e3c21860ae6fb4608e77a (patch) | |
tree | 15189b5b8aea028e7ff9c9ad19867cb3be0fee9d /src/groupdef.cpp | |
parent | ce5e0dcf2d3d55df510b76519ef43642bc331d96 (diff) | |
download | Doxygen-b11bb229001fbb79399e3c21860ae6fb4608e77a.zip Doxygen-b11bb229001fbb79399e3c21860ae6fb4608e77a.tar.gz Doxygen-b11bb229001fbb79399e3c21860ae6fb4608e77a.tar.bz2 |
Release-1.2.6-20010319
Diffstat (limited to 'src/groupdef.cpp')
-rw-r--r-- | src/groupdef.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/groupdef.cpp b/src/groupdef.cpp index 9b0e840..ebdec58 100644 --- a/src/groupdef.cpp +++ b/src/groupdef.cpp @@ -38,6 +38,7 @@ GroupDef::GroupDef(const char *df,int dl,const char *na,const char *t) : fileList = new FileList; classList = new ClassList; groupList = new GroupList; + parentGroupList = new GroupList; namespaceList = new NamespaceList; pageDict = new PageSDict(257); exampleDict = new PageSDict(257); @@ -63,6 +64,7 @@ GroupDef::~GroupDef() delete fileList; delete classList; delete groupList; + delete parentGroupList; delete namespaceList; delete pageDict; delete exampleDict; @@ -242,6 +244,20 @@ void GroupDef::addGroup(const GroupDef *def) groupList->append(def); } +void GroupDef::addParentGroup(const GroupDef *def) +{ + if (Config::sortMembersFlag) + parentGroupList->inSort(def); + else + parentGroupList->append(def); +} + +bool GroupDef::isASubGroup() const +{ + return parentGroupList->count()!=0; +} + + int GroupDef::countMembers() const { return fileList->count()+ @@ -569,6 +585,7 @@ void addGroupToGroups(Entry *root,GroupDef *subGroup) if (!s->isEmpty() && (gd=Doxygen::groupDict[*s])) { gd->addGroup(subGroup); + subGroup->addParentGroup(gd); } } } |