diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-05-28 19:46:08 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-05-28 19:46:08 (GMT) |
commit | 3e33c5094f5127c719418656fff8e47d2e19405e (patch) | |
tree | 1f7723f69aa2917d2408894c68e7150f7b7ff3d5 /src/namespacedef.cpp | |
parent | 745526b6e9683de926af27c4313574a514a3d7c3 (diff) | |
download | Doxygen-3e33c5094f5127c719418656fff8e47d2e19405e.zip Doxygen-3e33c5094f5127c719418656fff8e47d2e19405e.tar.gz Doxygen-3e33c5094f5127c719418656fff8e47d2e19405e.tar.bz2 |
Release-1.1.3-20000528
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r-- | src/namespacedef.cpp | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp index 7c145ec..a3cbaa2 100644 --- a/src/namespacedef.cpp +++ b/src/namespacedef.cpp @@ -35,7 +35,8 @@ NamespaceDef::NamespaceDef(const char *df,int dl, classList = new ClassList; classDict = new ClassDict(1009); //memList = new MemberList; - usingList = 0; + usingDirList = 0; + usingDeclList = 0; setReference(ref); memberGroupList = new MemberGroupList; memberGroupList->setAutoDelete(TRUE); @@ -48,7 +49,8 @@ NamespaceDef::~NamespaceDef() { delete classList; delete classDict; - delete usingList; + delete usingDirList; + delete usingDeclList; delete memberGroupList; delete memberGroupDict; } @@ -182,7 +184,7 @@ void NamespaceDef::writeDocumentation(OutputList &ol) ol.disableAllBut(OutputGenerator::Html); //bool latexOn = ol.isEnabled(OutputGenerator::Latex); //if (latexOn) ol.disable(OutputGenerator::Latex); - ol.writeAnchor("_details"); + ol.writeAnchor(0,"_details"); //if (latexOn) ol.enable(OutputGenerator::Latex); ol.popGeneratorState(); ol.startGroupHeader(); @@ -293,9 +295,18 @@ int NamespaceDef::countMembers() void NamespaceDef::addUsingDirective(NamespaceDef *nd) { - if (usingList==0) + if (usingDirList==0) { - usingList = new NamespaceList; + usingDirList = new NamespaceList; } - usingList->append(nd); + usingDirList->append(nd); +} + +void NamespaceDef::addUsingDeclaration(ClassDef *cd) +{ + if (usingDeclList==0) + { + usingDeclList = new ClassList; + } + usingDeclList->append(cd); } |