summaryrefslogtreecommitdiffstats
path: root/src/entry.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-05-24 16:25:58 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-05-24 16:25:58 (GMT)
commit9c04d0ffef418ec6c771a0afa4679a4e508ba710 (patch)
tree8572e4828627ab6b9a6d55d425469176c0c02e0b /src/entry.cpp
parent9ca6896b9e1e932f3ddf11bb74a9f80d5560044e (diff)
downloadDoxygen-9c04d0ffef418ec6c771a0afa4679a4e508ba710.zip
Doxygen-9c04d0ffef418ec6c771a0afa4679a4e508ba710.tar.gz
Doxygen-9c04d0ffef418ec6c771a0afa4679a4e508ba710.tar.bz2
Release-1.2.7-20010524
Diffstat (limited to 'src/entry.cpp')
-rw-r--r--src/entry.cpp27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/entry.cpp b/src/entry.cpp
index beb52bb..bbea6ef 100644
--- a/src/entry.cpp
+++ b/src/entry.cpp
@@ -29,7 +29,7 @@ Entry::Entry()
sublist->setAutoDelete(TRUE);
extends = new QList<BaseInfo>;
extends->setAutoDelete(TRUE);
- groups = new QList<QCString>;
+ groups = new QList<Grouping>;
groups->setAutoDelete(TRUE);
anchors = new QList<QCString>;
anchors->setAutoDelete(TRUE);
@@ -40,6 +40,7 @@ Entry::Entry()
mtArgList = 0;
mGrpId = -1;
tagInfo = 0;
+ groupdoctype = GROUPDOC_NORMAL;
reset();
}
@@ -82,7 +83,7 @@ Entry::Entry(const Entry &e)
sublist->setAutoDelete(TRUE);
extends = new QList<BaseInfo>;
extends->setAutoDelete(TRUE);
- groups = new QList<QCString>;
+ groups = new QList<Grouping>;
groups->setAutoDelete(TRUE);
anchors = new QList<QCString>;
anchors->setAutoDelete(TRUE);
@@ -91,6 +92,7 @@ Entry::Entry(const Entry &e)
//printf("Entry::Entry(copy) tArgList=0\n");
tArgList = 0;
mtArgList = 0;
+ groupdoctype = e.groupdoctype;
// deep copy of the child entry list
QListIterator<Entry> eli(*e.sublist);
@@ -109,14 +111,15 @@ Entry::Entry(const Entry &e)
}
// deep copy group list
- QListIterator<QCString> sli(*e.groups);
- QCString *s;
- for (;(s=sli.current());++sli)
+ QListIterator<Grouping> gli(*e.groups);
+ Grouping *g;
+ for (;(g=gli.current());++gli)
{
- groups->append(new QCString(*s));
+ groups->append(new Grouping(*g));
}
QListIterator<QCString> sli2(*e.anchors);
+ QCString *s;
for (;(s=sli2.current());++sli2)
{
anchors->append(new QCString(*s));
@@ -234,6 +237,7 @@ void Entry::reset()
memSpec = 0;
subGrouping = TRUE;
protection = Public;
+ groupdoctype = GROUPDOC_NORMAL;
sublist->clear();
extends->clear();
groups->clear();
@@ -270,14 +274,15 @@ int Entry::getSize()
size+=bi->name.length()+1+sizeof(bi->prot)+sizeof(bi->virt);
bi=extends->next();
}
- QCString *s=groups->first();
- while (s)
+ Grouping *g=groups->first();
+ while (g)
{
size+=sizeof(QLNode);
- size+=s->length()+1;
- s=groups->next();
+ size+=g->groupname.length()+1;
+ size+=sizeof(g->pri);
+ g=groups->next();
}
- s=anchors->first();
+ QCString *s=anchors->first();
while (s)
{
size+=sizeof(QLNode);