summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2008-10-12 11:30:16 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2008-10-12 11:30:16 (GMT)
commitb37fae19ca1cab9c4daf0a09d5f31f92d0c80e1b (patch)
treedf8e13e4cac8b44414890fbf25c4bcd702d5ebd3 /src/namespacedef.cpp
parent2b7214abe11ecabe1030a6e757f067e6d77500e7 (diff)
downloadDoxygen-b37fae19ca1cab9c4daf0a09d5f31f92d0c80e1b.zip
Doxygen-b37fae19ca1cab9c4daf0a09d5f31f92d0c80e1b.tar.gz
Doxygen-b37fae19ca1cab9c4daf0a09d5f31f92d0c80e1b.tar.bz2
Release-1.5.7.1-20081012
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r--src/namespacedef.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index ceebc6d..6adb9e1 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -51,6 +51,7 @@ NamespaceDef::NamespaceDef(const char *df,int dl,
m_innerCompounds = new SDict<Definition>(17);
usingDirList = 0;
usingDeclList = 0;
+ m_allMembersDict = 0;
setReference(lref);
memberGroupSDict = new MemberGroupSDict;
memberGroupSDict->setAutoDelete(TRUE);
@@ -183,6 +184,12 @@ void NamespaceDef::insertMember(MemberDef *md)
m_memberLists.append(allMemberList);
}
allMemberList->append(md);
+ if (m_allMembersDict==0)
+ {
+ m_allMembersDict = new MemberSDict;
+ }
+ //printf("%s::m_allMembersDict->append(%s)\n",name().data(),md->localName().data());
+ m_allMembersDict->append(md->localName(),md);
//::addNamespaceMemberNameToIndex(md);
//static bool sortBriefDocs=Config_getBool("SORT_BRIEF_DOCS");
switch(md->memberType())
@@ -935,3 +942,16 @@ bool NamespaceDef::isLinkable() const
{
return isLinkableInProject() || isReference();
}
+
+
+MemberDef * NamespaceDef::getMemberByName(const QCString &n) const
+{
+ MemberDef *md = 0;
+ if (m_allMembersDict && !n.isEmpty())
+ {
+ md = m_allMembersDict->find(n);
+ //printf("%s::m_allMembersDict->find(%s)=%p\n",name().data(),n.data(),md);
+ }
+ return md;
+}
+