summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r--src/namespacedef.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index 19ed1c4..09efaf1 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -30,6 +30,7 @@ NamespaceDef::NamespaceDef(const char *name,const char *ref) : Definition(name)
fileName="namespace_"+nameToFile(name);
classList = new ClassList;
memList = new MemberList;
+ usingList = 0;
setReference(ref);
}
@@ -37,6 +38,7 @@ NamespaceDef::~NamespaceDef()
{
delete classList;
delete memList;
+ delete usingList;
}
void NamespaceDef::insertUsedFile(const char *f)
@@ -240,3 +242,12 @@ int NamespaceDef::countMembers()
memList->countDocMembers();
return memList->totalCount()+classList->count();
}
+
+void NamespaceDef::addUsingDirective(NamespaceDef *nd)
+{
+ if (usingList==0)
+ {
+ usingList = new NamespaceList;
+ }
+ usingList->append(nd);
+}