My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
NamespaceDef Class Reference

#include <namespacedef.h>

Inheritance diagram for NamespaceDef:
Definition DefinitionIntf

Public Member Functions

 NamespaceDef (const char *defFileName, int defLine, int defColumn, const char *name, const char *ref=0, const char *refFile=0, const char *type=0, bool isPublished=false)
 
 ~NamespaceDef ()
 
DefType definitionType () const
 
QCString getOutputFileBase () const
 
QCString anchor () const
 
void insertUsedFile (FileDef *fd)
 
void writeDocumentation (OutputList &ol)
 
void writeMemberPages (OutputList &ol)
 
void writeQuickMemberLinks (OutputList &ol, MemberDef *currentMd) const
 
void writeTagFile (FTextStream &)
 
void insertClass (ClassDef *cd)
 
void insertNamespace (NamespaceDef *nd)
 
void insertMember (MemberDef *md)
 
void computeAnchors ()
 
int countMembers ()
 
void addUsingDirective (NamespaceDef *nd)
 
NamespaceSDictgetUsedNamespaces () const
 
void addUsingDeclaration (Definition *def)
 
SDict< Definition > * getUsedClasses () const
 
void combineUsingRelations ()
 
QCString displayName (bool=TRUE) const
 
QCString localName () const
 
bool isConstantGroup () const
 
bool isModule () const
 
bool isLibrary () const
 
bool isLinkableInProject () const
 
bool isLinkable () const
 
bool hasDetailedDescription () const
 
void addMembersToMemberGroup ()
 
void distributeMemberGroupDocumentation ()
 
void findSectionsInDocumentation ()
 
void sortMemberLists ()
 
virtual DefinitionfindInnerCompound (const char *name)
 
void addInnerCompound (Definition *d)
 
void addListReferences ()
 
void setFileName (const QCString &fn)
 
bool subGrouping () const
 
MemberListgetMemberList (MemberListType lt) const
 
const QList< MemberList > & getMemberLists () const
 
MemberDefgetMemberByName (const QCString &) const
 
MemberGroupSDictgetMemberGroupSDict () const
 
ClassSDictgetClassSDict () const
 
NamespaceSDictgetNamespaceSDict () const
 
QCString title () const
 
QCString compoundTypeString () const
 
- Public Member Functions inherited from Definition
 Definition (const char *defFileName, int defLine, int defColumn, const char *name, const char *b=0, const char *d=0, bool isSymbol=TRUE)
 
virtual ~Definition ()
 
const QCString & name () const
 
QCString localName () const
 
virtual QCString qualifiedName () const
 
QCString symbolName () const
 
virtual QCString getSourceFileBase () const
 
virtual QCString getSourceAnchor () const
 
virtual QCString documentation () const
 
int docLine () const
 
QCString docFile () const
 
virtual QCString briefDescription (bool abbreviate=FALSE) const
 
QCString briefDescriptionAsTooltip () const
 
int briefLine () const
 
QCString inbodyDocumentation () const
 
QCString inbodyFile () const
 
int inbodyLine () const
 
QCString briefFile () const
 
QCString getDefFileName () const
 
QCString getDefFileExtension () const
 
int getDefLine () const
 
int getDefColumn () const
 
virtual bool hasDocumentation () const
 
virtual bool hasUserDocumentation () const
 
virtual bool isVisibleInProject () const
 
virtual bool isVisible () const
 
bool isHidden () const
 
bool isArtificial () const
 
virtual QCString getReference () const
 
virtual bool isReference () const
 
QCString externalReference (const QCString &relPath) const
 
int getStartBodyLine () const
 
int getEndBodyLine () const
 
FileDefgetBodyDef () const
 
SrcLangExt getLanguage () const
 
GroupListpartOfGroups () const
 
bool isLinkableViaGroup () const
 
QList< ListItemInfo > * xrefListItems () const
 
virtual DefinitiongetOuterScope () const
 
MemberSDictgetReferencesMembers () const
 
MemberSDictgetReferencedByMembers () const
 
bool hasSections () const
 
bool hasSources () const
 
bool hasBriefDescription () const
 
QCString id () const
 
virtual void setName (const char *name)
 
void setId (const char *name)
 
virtual void setDocumentation (const char *d, const char *docFile, int docLine, bool stripWhiteSpace=TRUE)
 
virtual void setBriefDescription (const char *b, const char *briefFile, int briefLine)
 
virtual void setInbodyDocumentation (const char *d, const char *docFile, int docLine)
 
void setReference (const char *r)
 
void addSectionsToDefinition (QList< SectionInfo > *anchorList)
 
void setBodySegment (int bls, int ble)
 
void setBodyDef (FileDef *fd)
 
void addSourceReferencedBy (MemberDef *d)
 
void addSourceReferences (MemberDef *d)
 
void setRefItems (const QList< ListItemInfo > *sli)
 
void mergeRefItems (Definition *d)
 
virtual void setOuterScope (Definition *d)
 
virtual void setHidden (bool b)
 
void setArtificial (bool b)
 
void setLanguage (SrcLangExt lang)
 
void writeSourceDef (OutputList &ol, const char *scopeName)
 
void writeInlineCode (OutputList &ol, const char *scopeName)
 
void writeSourceRefs (OutputList &ol, const char *scopeName)
 
void writeSourceReffedBy (OutputList &ol, const char *scopeName)
 
void makePartOfGroup (GroupDef *gd)
 
void writeNavigationPath (OutputList &ol) const
 
QCString navigationPathAsString () const
 
QCString pathFragment () const
 
void writeDocAnchorsToTagFile (FTextStream &)
 
void setLocalName (const QCString name)
 
void addSectionsToIndex ()
 
void writeToc (OutputList &ol)
 
void setCookie (Cookie *cookie)
 
Cookiecookie () const
 
- Public Member Functions inherited from DefinitionIntf
 DefinitionIntf ()
 
virtual ~DefinitionIntf ()
 

Public Attributes

bool visited
 

Private Types

enum  { NAMESPACE, MODULE, CONSTANT_GROUP, LIBRARY }
 

Private Member Functions

MemberListcreateMemberList (MemberListType lt)
 
void addMemberToList (MemberListType lt, MemberDef *md)
 
void writeMemberDeclarations (OutputList &ol, MemberListType lt, const QCString &title)
 
void writeMemberDocumentation (OutputList &ol, MemberListType lt, const QCString &title)
 
void writeDetailedDescription (OutputList &ol, const QCString &title)
 
void writeBriefDescription (OutputList &ol)
 
void startMemberDeclarations (OutputList &ol)
 
void endMemberDeclarations (OutputList &ol)
 
void writeClassDeclarations (OutputList &ol, const QCString &title)
 
void writeInlineClasses (OutputList &ol)
 
void writeNamespaceDeclarations (OutputList &ol, const QCString &title, bool isConstantGroup=false)
 
void writeMemberGroups (OutputList &ol)
 
void writeAuthorSection (OutputList &ol)
 
void startMemberDocumentation (OutputList &ol)
 
void endMemberDocumentation (OutputList &ol)
 
void writeSummaryLinks (OutputList &ol)
 
void addNamespaceAttributes (OutputList &ol)
 

Private Attributes

QCString fileName
 
FileList files
 
NamespaceSDictusingDirList
 
SDict< Definition > * usingDeclList
 
SDict< Definition > * m_innerCompounds
 
MemberSDictm_allMembersDict
 
QList< MemberListm_memberLists
 
MemberGroupSDictmemberGroupSDict
 
ClassSDictclassSDict
 
NamespaceSDictnamespaceSDict
 
bool m_subGrouping
 
enum NamespaceDef:: { ... }  m_type
 
bool m_isPublished
 

Additional Inherited Members

- Public Types inherited from DefinitionIntf
enum  DefType {
  TypeClass = 0, TypeFile = 1, TypeNamespace = 2, TypeMember = 3,
  TypeGroup = 4, TypePackage = 5, TypePage = 6, TypeDir = 7,
  TypeSymbolList = 8
}
 
- Protected Member Functions inherited from Definition
 Definition (const Definition &d)
 

Detailed Description

A model of a namespace symbol.

Definition at line 39 of file namespacedef.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
NAMESPACE 
MODULE 
CONSTANT_GROUP 
LIBRARY 

Definition at line 141 of file namespacedef.h.

Constructor & Destructor Documentation

NamespaceDef::NamespaceDef ( const char *  defFileName,
int  defLine,
int  defColumn,
const char *  name,
const char *  ref = 0,
const char *  refFile = 0,
const char *  type = 0,
bool  isPublished = false 
)

Definition at line 36 of file namespacedef.cpp.

References classSDict, Config_getBool, CONSTANT_GROUP, convertNameToFile(), fileName, LIBRARY, m_allMembersDict, m_innerCompounds, m_subGrouping, m_type, memberGroupSDict, MODULE, NAMESPACE, namespaceSDict, SIntDict< T >::setAutoDelete(), setFileName(), Definition::setReference(), stripExtension(), usingDeclList, usingDirList, and visited.

:
Definition(df,dl,dc,name)
,m_isPublished(isPublished)
{
if (fName)
{
if (lref)
{
}
else
{
}
}
else
{
}
setReference(lref);
visited=FALSE;
if (type && !strcmp("module", type))
{
}
else if (type && !strcmp("constants", type))
{
}
else if (type && !strcmp("library", type))
{
}
else
{
}
}
NamespaceDef::~NamespaceDef ( )

Definition at line 87 of file namespacedef.cpp.

References classSDict, m_allMembersDict, m_innerCompounds, memberGroupSDict, namespaceSDict, usingDeclList, and usingDirList.

{
delete classSDict;
delete usingDirList;
delete usingDeclList;
}

Member Function Documentation

void NamespaceDef::addInnerCompound ( Definition d)
virtual

Reimplemented from Definition.

Definition at line 152 of file namespacedef.cpp.

References SDict< T >::append(), DefinitionIntf::definitionType(), insertClass(), insertNamespace(), Definition::localName(), m_innerCompounds, DefinitionIntf::TypeClass, and DefinitionIntf::TypeNamespace.

void NamespaceDef::addListReferences ( )

Definition at line 835 of file namespacedef.cpp.

References MemberList::addListReferences(), MemberGroup::addListReferences(), addRefItem(), displayName(), Definition::getLanguage(), getOutputFileBase(), SIntDict< MemberGroup >::Iterator, MemberList::listType(), m_memberLists, memberGroupSDict, MemberListType_documentationLists, Definition::qualifiedName(), SrcLangExt_Fortran, theTranslator, Translator::trModule(), Translator::trNamespace(), and Definition::xrefListItems().

Referenced by addListReferences().

{
//bool fortranOpt = Config_getBool(OPTIMIZE_FOR_FORTRAN);
{
QList<ListItemInfo> *xrefItems = xrefListItems();
addRefItem(xrefItems,
theTranslator->trModule(TRUE,TRUE) :
0,
this
);
}
for (;(mg=mgli.current());++mgli)
{
mg->addListReferences(this);
}
QListIterator<MemberList> mli(m_memberLists);
for (mli.toFirst();(ml=mli.current());++mli)
{
{
ml->addListReferences(this);
}
}
}
void NamespaceDef::addMembersToMemberGroup ( )

Definition at line 188 of file namespacedef.cpp.

References MemberGroup::addToDeclarationSection(), MemberGroup::allMembersInSameSection(), SIntDict< MemberGroup >::Iterator, MemberList::listType(), m_memberLists, m_subGrouping, memberGroupSDict, and MemberListType_declarationLists.

Referenced by addMembersToMemberGroup().

{
QListIterator<MemberList> mli(m_memberLists);
for (mli.toFirst();(ml=mli.current());++mli)
{
{
}
}
// add members inside sections to their groups
{
for (;(mg=mgli.current());++mgli)
{
{
//printf("----> addToDeclarationSection(%s)\n",mg->header().data());
}
}
}
}
void NamespaceDef::addMemberToList ( MemberListType  lt,
MemberDef md 
)
private

Definition at line 1045 of file namespacedef.cpp.

References MemberList::append(), Config_getBool, createMemberList(), MemberList::inSort(), MemberList::listType(), MemberListType_declarationLists, MemberListType_documentationLists, MemberList::needsSorting(), MemberList::setNeedsSorting(), and MemberDef::setSectionList().

Referenced by insertMember().

{
static bool sortBriefDocs = Config_getBool(SORT_BRIEF_DOCS);
static bool sortMemberDocs = Config_getBool(SORT_MEMBER_DOCS);
((ml->listType()&MemberListType_declarationLists) && sortBriefDocs) ||
((ml->listType()&MemberListType_documentationLists) && sortMemberDocs));
ml->append(md);
#if 0
if (ml->needsSorting())
ml->inSort(md);
else
ml->append(md);
#endif
}
void NamespaceDef::addNamespaceAttributes ( OutputList ol)
private

Definition at line 551 of file namespacedef.cpp.

References OutputList::disableAllBut(), OutputList::endLabels(), Definition::getLanguage(), OutputGenerator::Html, isConstantGroup(), m_isPublished, OutputList::popGeneratorState(), OutputList::pushGeneratorState(), SrcLangExt_IDL, OutputList::startLabels(), and OutputList::writeLabel().

Referenced by writeDocumentation().

{
// UNO IDL constant groups may be published
{
ol.writeLabel("published",false);
ol.endLabels();
}
}
void NamespaceDef::addUsingDeclaration ( Definition def)

Definition at line 800 of file namespacedef.cpp.

References SDict< T >::append(), SDict< T >::find(), Definition::qualifiedName(), and usingDeclList.

Referenced by combineUsingRelations(), and findUsingDeclarations().

{
if (usingDeclList==0)
{
}
if (usingDeclList->find(d->qualifiedName())==0)
{
usingDeclList->append(d->qualifiedName(),d);
}
}
void NamespaceDef::addUsingDirective ( NamespaceDef nd)

Definition at line 781 of file namespacedef.cpp.

References SDict< T >::append(), SDict< T >::find(), Definition::qualifiedName(), and usingDirList.

Referenced by combineUsingRelations(), and findUsingDirectives().

{
if (usingDirList==0)
{
}
{
}
//printf("%p: NamespaceDef::addUsingDirective: %s:%d\n",this,name().data(),usingDirList->count());
}
QCString NamespaceDef::anchor ( ) const
inlinevirtual

Returns the anchor within a page where this item can be found

Implements Definition.

Definition at line 49 of file namespacedef.h.

Referenced by writeDocumentation().

{ return QCString(); }
void NamespaceDef::combineUsingRelations ( )

Definition at line 891 of file namespacedef.cpp.

References addUsingDeclaration(), addUsingDirective(), combineUsingRelations(), getUsedClasses(), getUsedNamespaces(), SDict< NamespaceDef >::Iterator, usingDirList, and visited.

Referenced by combineUsingRelations(), FileDef::combineUsingRelations(), and combineUsingRelations().

{
if (visited) return; // already done
visited=TRUE;
{
for (nli.toFirst();(nd=nli.current());++nli)
{
}
for (nli.toFirst();(nd=nli.current());++nli)
{
// add used namespaces of namespace nd to this namespace
if (nd->getUsedNamespaces())
{
for (unli.toFirst();(und=unli.current());++unli)
{
//printf("Adding namespace %s to the using list of %s\n",und->qualifiedName().data(),qualifiedName().data());
}
}
// add used classes of namespace nd to this namespace
if (nd->getUsedClasses())
{
Definition *ucd;
for (cli.toFirst();(ucd=cli.current());++cli)
{
//printf("Adding class %s to the using list of %s\n",cd->qualifiedName().data(),qualifiedName().data());
}
}
}
}
}
QCString NamespaceDef::compoundTypeString ( ) const

Definition at line 1171 of file namespacedef.cpp.

References err_full(), Definition::getDefFileName(), Definition::getDefLine(), Definition::getLanguage(), isConstantGroup(), isLibrary(), isModule(), SrcLangExt_CSharp, SrcLangExt_Fortran, SrcLangExt_IDL, and SrcLangExt_Java.

Referenced by NamespaceContext::Private::compoundType(), and NamespaceSDict::writeDeclaration().

{
if (lang==SrcLangExt_Java)
{
return "package";
}
else if(lang==SrcLangExt_CSharp)
{
return "namespace";
}
else if (lang==SrcLangExt_Fortran)
{
return "module";
}
else if (lang==SrcLangExt_IDL)
{
if (isModule())
{
return "module";
}
else if (isConstantGroup())
{
return "constants";
}
else if (isLibrary())
{
return "library";
}
else
{
err_full(getDefFileName(),getDefLine(),"Internal inconsistency: namespace in IDL not module, library or constant group");
}
}
return "";
}
void NamespaceDef::computeAnchors ( )

Definition at line 267 of file namespacedef.cpp.

References getMemberList(), MemberListType_allMembersList, and setAnchors().

Referenced by computeMemberReferences().

{
if (allMemberList) setAnchors(allMemberList);
}
int NamespaceDef::countMembers ( )

Definition at line 774 of file namespacedef.cpp.

References classSDict, SDict< T >::count(), MemberList::countDocMembers(), getMemberList(), MemberListType_allMembersList, and MemberList::numDocMembers().

{
if (allMemberList) allMemberList->countDocMembers();
return (allMemberList ? allMemberList->numDocMembers() : 0)+classSDict->count();
}
MemberList * NamespaceDef::createMemberList ( MemberListType  lt)
private

Definition at line 1027 of file namespacedef.cpp.

References MemberList::listType(), and m_memberLists.

Referenced by addMemberToList().

{
m_memberLists.setAutoDelete(TRUE);
QListIterator<MemberList> mli(m_memberLists);
for (mli.toFirst();(ml=mli.current());++mli)
{
if (ml->listType()==lt)
{
return ml;
}
}
// not found, create a new member list
ml = new MemberList(lt);
m_memberLists.append(ml);
return ml;
}
DefType NamespaceDef::definitionType ( ) const
inlinevirtual

Use this for dynamic inspection of the type of the derived class

Implements DefinitionIntf.

Definition at line 47 of file namespacedef.h.

References DefinitionIntf::TypeNamespace.

{ return TypeNamespace; }
QCString NamespaceDef::displayName ( bool  includeScope = TRUE) const
virtual

Returns the name of the definition as it appears in the output

Implements Definition.

Definition at line 867 of file namespacedef.cpp.

References Definition::getLanguage(), getLanguageSpecificSeparator(), localName(), Definition::name(), and substitute().

Referenced by addListReferences(), MemberDef::getScopeString(), MemberContext::Private::handleNameWithContextFor(), title(), NamespaceSDict::writeDeclaration(), writeDocumentation(), MemberDef::writeDocumentation(), MemberDef::writeLink(), writeMemberDocumentation(), writeMemberPages(), writeNamespaceIndex(), and writeNamespaceLinkForMember().

{
QCString result=includeScope ? name() : localName();
QCString sep = getLanguageSpecificSeparator(lang);
if (sep!="::")
{
result = substitute(result,"::",sep);
}
//printf("NamespaceDef::displayName() %s->%s lang=%d\n",name().data(),result.data(),lang);
return result;
}
void NamespaceDef::distributeMemberGroupDocumentation ( )

Definition at line 110 of file namespacedef.cpp.

References MemberGroup::distributeMemberGroupDocumentation(), SIntDict< MemberGroup >::Iterator, and memberGroupSDict.

Referenced by distributeMemberGroupDocumentation().

{
for (;(mg=mgli.current());++mgli)
{
}
}
void NamespaceDef::endMemberDeclarations ( OutputList ol)
private

Definition at line 443 of file namespacedef.cpp.

References OutputList::endMemberSections().

Referenced by writeDocumentation().

void NamespaceDef::endMemberDocumentation ( OutputList ol)
private

Definition at line 457 of file namespacedef.cpp.

References Config_getBool, OutputList::enable(), OutputGenerator::Html, and Doxygen::suppressDocWarnings.

Referenced by writeDocumentation().

{
if (Config_getBool(SEPARATE_MEMBER_PAGES))
{
}
}
Definition * NamespaceDef::findInnerCompound ( const char *  name)
virtual

Reimplemented from Definition.

Definition at line 817 of file namespacedef.cpp.

References SDict< T >::find(), m_innerCompounds, usingDeclList, and usingDirList.

{
if (n==0) return 0;
if (d==0)
{
{
d = usingDirList->find(n);
}
if (d==0 && usingDeclList)
{
}
}
return d;
}
void NamespaceDef::findSectionsInDocumentation ( )

Definition at line 120 of file namespacedef.cpp.

References Definition::docFile(), docFindSections(), Definition::documentation(), MemberGroup::findSectionsInDocumentation(), MemberList::findSectionsInDocumentation(), SIntDict< MemberGroup >::Iterator, MemberList::listType(), m_memberLists, memberGroupSDict, and MemberListType_declarationLists.

Referenced by findSectionsInDocumentation().

{
for (;(mg=mgli.current());++mgli)
{
}
QListIterator<MemberList> mli(m_memberLists);
for (mli.toFirst();(ml=mli.current());++mli)
{
{
}
}
}
ClassSDict* NamespaceDef::getClassSDict ( ) const
inline

Returns the classes contained in this namespace

Definition at line 98 of file namespacedef.h.

References classSDict.

Referenced by NestingNodeContext::Private::addNamespaces(), NamespaceContext::Private::classes(), generateDocbookForNamespace(), generateNamespaceDocs(), PerlModGenerator::generatePerlModForNamespace(), generateXMLForNamespace(), NamespaceContext::Private::inlineClasses(), namespaceHasVisibleChild(), and writeNamespaceTree().

{ return classSDict; }
MemberDef * NamespaceDef::getMemberByName ( const QCString &  n) const

Definition at line 1135 of file namespacedef.cpp.

References SDict< T >::find(), and m_allMembersDict.

{
MemberDef *md = 0;
if (m_allMembersDict && !n.isEmpty())
{
//printf("%s::m_allMembersDict->find(%s)=%p\n",name().data(),n.data(),md);
}
return md;
}
MemberGroupSDict* NamespaceDef::getMemberGroupSDict ( ) const
inline

Returns the user defined member groups

Definition at line 95 of file namespacedef.h.

References memberGroupSDict.

Referenced by generateDocbookForNamespace(), PerlModGenerator::generatePerlModForNamespace(), generateXMLForNamespace(), and NamespaceContext::Private::memberGroups().

{ return memberGroupSDict; }
MemberList * NamespaceDef::getMemberList ( MemberListType  lt) const

Definition at line 1085 of file namespacedef.cpp.

References MemberList::listType(), and m_memberLists.

Referenced by computeAnchors(), countMembers(), generateDEFForNamespace(), PerlModGenerator::generatePerlModForNamespace(), NamespaceContext::Private::getMemberList(), insertMember(), writeDocumentation(), writeMemberDeclarations(), writeMemberDocumentation(), writeQuickMemberLinks(), writeSummaryLinks(), and writeTagFile().

{
QListIterator<MemberList> mli(m_memberLists);
for (mli.toFirst();(ml=mli.current());++mli)
{
if (ml->listType()==lt)
{
return ml;
}
}
return 0;
}
const QList<MemberList>& NamespaceDef::getMemberLists ( ) const
inline

Definition at line 91 of file namespacedef.h.

References m_memberLists.

Referenced by generateDocbookForNamespace(), and generateXMLForNamespace().

{ return m_memberLists; }
NamespaceSDict* NamespaceDef::getNamespaceSDict ( ) const
inline

Returns the namespaces contained in this namespace

Definition at line 101 of file namespacedef.h.

References namespaceSDict.

Referenced by NestingNodeContext::Private::addNamespaces(), NamespaceContext::Private::constantgroups(), generateDocbookForNamespace(), PerlModGenerator::generatePerlModForNamespace(), generateXMLForNamespace(), namespaceHasVisibleChild(), NamespaceContext::Private::namespaces(), and writeNamespaceTree().

{ return namespaceSDict; }
QCString NamespaceDef::getOutputFileBase ( ) const
virtual

Returns the base file name (without extension) of this definition. as it is referenced to/written to disk.

Implements Definition.

Definition at line 812 of file namespacedef.cpp.

References fileName.

Referenced by addListReferences(), RTFGenerator::endIndexSection(), LatexGenerator::endIndexSection(), generateDEFForNamespace(), generateDocbookForNamespace(), generateXMLForNamespace(), MemberDef::getOutputFileBase(), writeAlphabeticalClassList(), NamespaceSDict::writeDeclaration(), writeDocumentation(), writeInnerNamespaces(), writeNamespaceIndex(), writeNamespaceTree(), and writeTagFile().

{
return fileName;
}
SDict<Definition>* NamespaceDef::getUsedClasses ( ) const
inline

Definition at line 66 of file namespacedef.h.

References usingDeclList.

Referenced by combineUsingRelations(), FileDef::combineUsingRelations(), isAccessibleFrom(), and isAccessibleFromWithExpScope().

{ return usingDeclList; }
NamespaceSDict * NamespaceDef::getUsedNamespaces ( ) const

Definition at line 794 of file namespacedef.cpp.

References usingDirList.

Referenced by accessibleViaUsingNamespace(), combineUsingRelations(), FileDef::combineUsingRelations(), findUsingDirectives(), isAccessibleFrom(), and isAccessibleFromWithExpScope().

{
//printf("%p: NamespaceDef::getUsedNamespace: %s:%d\n",this,name().data(),usingDirList?usingDirList->count():0);
return usingDirList;
}
bool NamespaceDef::hasDetailedDescription ( ) const

Definition at line 273 of file namespacedef.cpp.

References Definition::briefDescription(), Config_getBool, and Definition::documentation().

Referenced by NamespaceContext::Private::hasDetails(), writeBriefDescription(), and writeDetailedDescription().

{
static bool repeatBrief = Config_getBool(REPEAT_BRIEF);
return ((!briefDescription().isEmpty() && repeatBrief) ||
!documentation().isEmpty());
}
void NamespaceDef::insertClass ( ClassDef cd)

Definition at line 165 of file namespacedef.cpp.

References SDict< T >::append(), classSDict, Config_getBool, SDict< T >::find(), SDict< T >::inSort(), and Definition::name().

Referenced by addInnerCompound().

{
if (classSDict->find(cd->name())==0)
{
if (Config_getBool(SORT_BRIEF_DOCS))
classSDict->inSort(cd->name(),cd);
else
classSDict->append(cd->name(),cd);
}
}
void NamespaceDef::insertMember ( MemberDef md)

Definition at line 216 of file namespacedef.cpp.

References addMemberToList(), MemberList::append(), SDict< T >::append(), err(), MemberDef::getClassDef(), getMemberList(), Definition::isHidden(), Definition::localName(), m_allMembersDict, m_memberLists, MemberListType_allMembersList, MemberListType_decDefineMembers, MemberListType_decEnumMembers, MemberListType_decFuncMembers, MemberListType_decTypedefMembers, MemberListType_decVarMembers, MemberListType_docDefineMembers, MemberListType_docEnumMembers, MemberListType_docFuncMembers, MemberListType_docTypedefMembers, MemberListType_docVarMembers, MemberDef::memberType(), MemberType_Define, MemberType_Enumeration, MemberType_EnumValue, MemberType_Function, MemberType_Typedef, MemberType_Variable, and Definition::name().

Referenced by addVariableToFile(), buildFunctionList(), and findEnums().

{
if (md->isHidden()) return;
if (allMemberList==0)
{
m_memberLists.append(allMemberList);
}
allMemberList->append(md);
{
}
//printf("%s::m_allMembersDict->append(%s)\n",name().data(),md->localName().data());
//::addNamespaceMemberNameToIndex(md);
//static bool sortBriefDocs=Config_getBool(SORT_BRIEF_DOCS);
switch(md->memberType())
{
break;
break;
break;
break;
break;
break;
default:
err("NamespaceDef::insertMembers(): "
"member `%s' with class scope `%s' inserted in namespace scope `%s'!\n",
md->name().data(),
md->getClassDef() ? md->getClassDef()->name().data() : "",
name().data());
}
}
void NamespaceDef::insertNamespace ( NamespaceDef nd)

Definition at line 176 of file namespacedef.cpp.

References SDict< T >::append(), Config_getBool, SDict< T >::find(), SDict< T >::inSort(), Definition::name(), and namespaceSDict.

Referenced by addInnerCompound().

{
if (namespaceSDict->find(nd->name())==0)
{
if (Config_getBool(SORT_MEMBER_DOCS))
else
}
}
void NamespaceDef::insertUsedFile ( FileDef fd)

Definition at line 140 of file namespacedef.cpp.

References Config_getBool, and files.

Referenced by buildNamespaceList(), and findUsingDirectives().

{
if (fd==0) return;
if (files.find(fd)==-1)
{
if (Config_getBool(SORT_MEMBER_DOCS))
files.inSort(fd);
else
files.append(fd);
}
}
bool NamespaceDef::isConstantGroup ( ) const
inline

Definition at line 71 of file namespacedef.h.

References CONSTANT_GROUP, and m_type.

Referenced by addNamespaceAttributes(), compoundTypeString(), title(), and NamespaceSDict::writeDeclaration().

{ return CONSTANT_GROUP == m_type; }
bool NamespaceDef::isLibrary ( ) const
inline

Definition at line 73 of file namespacedef.h.

References LIBRARY, and m_type.

Referenced by compoundTypeString().

{ return LIBRARY == m_type; }
bool NamespaceDef::isLinkable ( ) const
virtual

Returns TRUE iff it is possible to link to this item. This can be a link to another project imported via a tag file.

Implements Definition.

Definition at line 1130 of file namespacedef.cpp.

References isLinkableInProject(), and Definition::isReference().

Referenced by addMemberToSearchIndex(), createJavascriptSearchIndex(), NamespaceSDict::declVisible(), getDefs(), getScopeDefs(), MemberDef::isDetailedSectionVisible(), writeAlphabeticalClassList(), and NamespaceSDict::writeDeclaration().

{
}
bool NamespaceDef::isLinkableInProject ( ) const
virtual

Returns TRUE iff it is possible to link to this item within this project.

Implements Definition.

Definition at line 1112 of file namespacedef.cpp.

References Config_getBool, Definition::getLanguage(), Definition::hasDocumentation(), Definition::isArtificial(), Definition::isHidden(), Definition::isReference(), Definition::name(), and SrcLangExt_CSharp.

Referenced by MemberDef::_computeLinkableInProject(), addNamespaceMemberNameToIndex(), NestingContext::Private::addNamespaces(), NamespaceListContext::Private::addNamespaces(), addSourceReferences(), countNamespaces(), RTFGenerator::endIndexSection(), LatexGenerator::endIndexSection(), generateNamespaceDocs(), NamespaceMembersIndexContext::Private::getMembersFiltered(), MemberDef::getOutputFileBase(), isLinkable(), RTFGenerator::startIndexSection(), LatexGenerator::startIndexSection(), writeNamespaceIndex(), writeNamespaceTree(), writeTagFile(), GroupDef::writeTagFile(), FileDef::writeTagFile(), and writeTagFile().

{
int i = name().findRev("::");
if (i==-1) i=0; else i+=2;
static bool extractAnonNs = Config_getBool(EXTRACT_ANON_NSPACES);
if (extractAnonNs && // extract anonymous ns
name().mid(i,20)=="anonymous_namespace{" // correct prefix
) // not disabled by config
{
return TRUE;
}
return !name().isEmpty() && name().at(i)!='@' && // not anonymous
(hasDocumentation() || getLanguage()==SrcLangExt_CSharp) && // documented
!isReference() && // not an external reference
!isHidden() && // not hidden
!isArtificial(); // or artificial
}
bool NamespaceDef::isModule ( ) const
inline

Definition at line 72 of file namespacedef.h.

References m_type, and MODULE.

Referenced by compoundTypeString().

{ return MODULE == m_type; }
QCString NamespaceDef::localName ( ) const

Definition at line 880 of file namespacedef.cpp.

References Definition::name().

Referenced by NestingContext::Private::addNamespaces(), displayName(), NamespaceSDict::writeDeclaration(), writeDocumentation(), and writeNamespaceTree().

{
QCString result=name();
int i=result.findRev("::");
if (i!=-1)
{
result=result.mid(i+2);
}
return result;
}
void NamespaceDef::setFileName ( const QCString &  fn)

Definition at line 98 of file namespacedef.cpp.

References convertNameToFile(), fileName, and Definition::isReference().

Referenced by buildNamespaceList(), and NamespaceDef().

{
if (isReference())
{
fileName = "namespace"+fn;
}
else
{
fileName = convertNameToFile("namespace"+fn);
}
}
void NamespaceDef::sortMemberLists ( )

Definition at line 1065 of file namespacedef.cpp.

References classSDict, m_memberLists, namespaceSDict, MemberList::needsSorting(), MemberList::setNeedsSorting(), MemberList::sort(), and SDict< T >::sort().

Referenced by sortMemberLists().

{
QListIterator<MemberList> mli(m_memberLists);
for (mli.toFirst();(ml=mli.current());++mli)
{
if (ml->needsSorting()) { ml->sort(); ml->setNeedsSorting(FALSE); }
}
{
}
{
}
}
void NamespaceDef::startMemberDeclarations ( OutputList ol)
private

Definition at line 438 of file namespacedef.cpp.

References OutputList::startMemberSections().

Referenced by writeDocumentation().

void NamespaceDef::startMemberDocumentation ( OutputList ol)
private

Definition at line 448 of file namespacedef.cpp.

References Config_getBool, OutputList::disable(), OutputGenerator::Html, and Doxygen::suppressDocWarnings.

Referenced by writeDocumentation().

{
if (Config_getBool(SEPARATE_MEMBER_PAGES))
{
}
}
bool NamespaceDef::subGrouping ( ) const
inline

Definition at line 88 of file namespacedef.h.

References m_subGrouping.

Referenced by NamespaceContext::Private::memberGroups().

{ return m_subGrouping; }
QCString NamespaceDef::title ( ) const

Definition at line 1146 of file namespacedef.cpp.

References displayName(), Definition::getLanguage(), isConstantGroup(), SrcLangExt_Fortran, SrcLangExt_IDL, SrcLangExt_Java, theTranslator, Translator::trConstantGroupReference(), Translator::trModuleReference(), Translator::trNamespaceReference(), and Translator::trPackage().

Referenced by NamespaceContext::Private::title(), and writeDocumentation().

{
QCString pageTitle;
if (lang==SrcLangExt_Java)
{
}
else if (lang==SrcLangExt_Fortran)
{
}
else if (lang==SrcLangExt_IDL)
{
pageTitle = isConstantGroup()
}
else
{
}
return pageTitle;
}
void NamespaceDef::writeAuthorSection ( OutputList ol)
private

Definition at line 501 of file namespacedef.cpp.

References Config_getString, OutputList::disableAllBut(), OutputList::endGroupHeader(), OutputGenerator::Man, OutputList::parseText(), OutputList::popGeneratorState(), OutputList::pushGeneratorState(), OutputList::startGroupHeader(), theTranslator, Translator::trAuthor(), and Translator::trGeneratedAutomatically().

Referenced by writeDocumentation().

void NamespaceDef::writeBriefDescription ( OutputList ol)
private

Definition at line 402 of file namespacedef.cpp.

References Definition::briefDescription(), Definition::briefFile(), Definition::briefLine(), OutputList::disable(), OutputList::disableAllBut(), OutputList::enable(), OutputList::endParagraph(), OutputList::endTextLink(), Definition::hasBriefDescription(), hasDetailedDescription(), OutputGenerator::Html, DocRoot::isEmpty(), OutputList::parseText(), OutputList::popGeneratorState(), OutputList::pushGeneratorState(), OutputGenerator::RTF, OutputList::startParagraph(), OutputList::startTextLink(), theTranslator, Translator::trMore(), validatingParseDoc(), OutputList::writeDoc(), OutputList::writeString(), and OutputList::writeSynopsis().

Referenced by writeDocumentation().

{
{
briefDescription(),TRUE,FALSE,0,TRUE,FALSE);
if (rootNode && !rootNode->isEmpty())
{
ol.writeDoc(rootNode,this,0);
ol.writeString(" \n");
{
ol.startTextLink(0,"details");
}
}
delete rootNode;
// FIXME:PARA
//ol.pushGeneratorState();
//ol.disable(OutputGenerator::RTF);
//ol.newParagraph();
//ol.popGeneratorState();
}
}
void NamespaceDef::writeClassDeclarations ( OutputList ol,
const QCString &  title 
)
private

Definition at line 466 of file namespacedef.cpp.

References classSDict, and ClassSDict::writeDeclaration().

Referenced by writeDocumentation().

void NamespaceDef::writeDetailedDescription ( OutputList ol,
const QCString &  title 
)
private

Definition at line 360 of file namespacedef.cpp.

References Definition::briefDescription(), Definition::briefFile(), Definition::briefLine(), Config_getBool, OutputList::disable(), OutputList::disableAllBut(), Definition::docFile(), Definition::docLine(), Definition::documentation(), OutputList::enable(), OutputList::enableAll(), OutputList::endGroupHeader(), OutputList::endTextBlock(), OutputList::generateDoc(), hasDetailedDescription(), OutputGenerator::Html, OutputGenerator::Latex, OutputGenerator::Man, OutputList::parseText(), OutputList::popGeneratorState(), OutputList::pushGeneratorState(), OutputGenerator::RTF, OutputList::startGroupHeader(), OutputList::startTextBlock(), OutputList::writeAnchor(), OutputList::writeRuler(), and OutputList::writeString().

Referenced by writeDocumentation().

{
{
ol.writeRuler();
ol.writeAnchor(0,"details");
if (!briefDescription().isEmpty() && Config_getBool(REPEAT_BRIEF))
{
ol.generateDoc(briefFile(),briefLine(),this,0,briefDescription(),FALSE,FALSE);
}
if (!briefDescription().isEmpty() && Config_getBool(REPEAT_BRIEF) &&
!documentation().isEmpty())
{
//ol.newParagraph(); // FIXME:PARA
ol.enableAll();
ol.writeString("\n\n");
}
if (!documentation().isEmpty())
{
ol.generateDoc(docFile(),docLine(),this,0,documentation()+"\n",TRUE,FALSE);
}
}
}
void NamespaceDef::writeDocumentation ( OutputList ol)

Definition at line 565 of file namespacedef.cpp.

References addGroupListToTitle(), IndexList::addIndexItem(), addNamespaceAttributes(), SearchIndexIntf::addWord(), anchor(), LayoutDocEntry::AuthorSection, LayoutDocEntry::BriefDesc, LayoutDocEntry::ClassAllMembersLink, LayoutDocEntry::ClassCollaborationGraph, LayoutDocEntry::ClassIncludes, LayoutDocEntry::ClassInheritanceGraph, LayoutDocEntry::ClassInlineClasses, LayoutDocEntry::ClassNestedClasses, LayoutDocEntry::ClassUsedFiles, Config_getBool, LayoutDocEntry::DetailedDesc, LayoutDocEntry::DirFiles, LayoutDocEntry::DirGraph, LayoutDocEntry::DirSubDirs, displayName(), OutputList::endContents(), endFileWithNavPath(), endMemberDeclarations(), endMemberDocumentation(), OutputList::endQuickIndices(), endTitle(), err(), LayoutDocEntry::FileClasses, LayoutDocEntry::FileConstantGroups, LayoutDocEntry::FileIncludedByGraph, LayoutDocEntry::FileIncludeGraph, LayoutDocEntry::FileIncludes, LayoutDocEntry::FileInlineClasses, LayoutDocEntry::FileNamespaces, LayoutDocEntry::FileSourceLink, Definition::getLanguage(), getMemberList(), Definition::getOuterScope(), getOutputFileBase(), Doxygen::globalScope, LayoutDocEntry::GroupClasses, LayoutDocEntry::GroupDirs, LayoutDocEntry::GroupFiles, LayoutDocEntry::GroupGraph, LayoutDocEntry::GroupInlineClasses, LayoutDocEntry::GroupNamespaces, LayoutDocEntry::GroupNestedGroups, LayoutDocEntry::GroupPageDocs, HLI_NamespaceVisible, Doxygen::indexList, LayoutDocManager::instance(), LayoutDocEntry::kind(), localName(), LayoutDocEntry::MemberDecl, LayoutDocEntry::MemberDeclEnd, LayoutDocEntry::MemberDeclStart, LayoutDocEntry::MemberDef, LayoutDocEntry::MemberDefEnd, LayoutDocEntry::MemberDefStart, LayoutDocEntry::MemberGroups, MemberListType_allMembersList, Definition::name(), LayoutDocManager::Namespace, LayoutDocEntry::NamespaceClasses, LayoutDocEntry::NamespaceInlineClasses, LayoutDocEntry::NamespaceNestedConstantGroups, LayoutDocEntry::NamespaceNestedNamespaces, OutputList::parseText(), Doxygen::searchIndex, SearchIndexIntf::setCurrentDoc(), MemberList::sort(), OutputList::startContents(), startFile(), startMemberDeclarations(), startMemberDocumentation(), startTitle(), LayoutDocEntrySection::title(), LayoutDocEntryMemberDecl::title(), title(), LayoutDocEntryMemberDef::title(), LayoutDocEntryMemberDecl::type, LayoutDocEntryMemberDef::type, writeAuthorSection(), writeBriefDescription(), writeClassDeclarations(), writeDetailedDescription(), writeInlineClasses(), writeMemberDeclarations(), writeMemberDocumentation(), writeMemberGroups(), writeMemberPages(), writeNamespaceDeclarations(), and Definition::writeNavigationPath().

Referenced by generateNamespaceDocs().

{
static bool generateTreeView = Config_getBool(GENERATE_TREEVIEW);
//static bool outputJava = Config_getBool(OPTIMIZE_OUTPUT_JAVA);
//static bool fortranOpt = Config_getBool(OPTIMIZE_FOR_FORTRAN);
QCString pageTitle = title();
startFile(ol,getOutputFileBase(),name(),pageTitle,HLI_NamespaceVisible,!generateTreeView);
if (!generateTreeView)
{
{
}
}
ol.parseText(pageTitle);
{
}
//---------------------------------------- start flexible part -------------------------------
QListIterator<LayoutDocEntry> eli(
for (eli.toFirst();(lde=eli.current());++eli)
{
switch (lde->kind())
{
break;
break;
{
}
break;
{
writeNamespaceDeclarations(ol,ls->title(lang),false);
}
break;
{
writeNamespaceDeclarations(ol,ls->title(lang),true);
}
break;
break;
{
writeMemberDeclarations(ol,lmd->type,lmd->title(lang));
}
break;
break;
{
}
break;
break;
break;
{
writeMemberDocumentation(ol,lmd->type,lmd->title(lang));
}
break;
break;
break;
err("Internal inconsistency: member %d should not be part of "
"LayoutDocManager::Namespace entry list\n",lde->kind());
break;
}
}
//---------------------------------------- end flexible part -------------------------------
if (Config_getBool(SEPARATE_MEMBER_PAGES))
{
if (allMemberList) allMemberList->sort();
}
}
void NamespaceDef::writeInlineClasses ( OutputList ol)
private

Definition at line 471 of file namespacedef.cpp.

References classSDict, and ClassSDict::writeDocumentation().

Referenced by writeDocumentation().

void NamespaceDef::writeMemberDeclarations ( OutputList ol,
MemberListType  lt,
const QCString &  title 
)
private

Definition at line 1099 of file namespacedef.cpp.

References getMemberList(), and MemberList::writeDeclarations().

Referenced by writeDocumentation().

{
if (ml) ml->writeDeclarations(ol,0,this,0,0,title,0);
}
void NamespaceDef::writeMemberDocumentation ( OutputList ol,
MemberListType  lt,
const QCString &  title 
)
private

Definition at line 1105 of file namespacedef.cpp.

References displayName(), getMemberList(), and MemberList::writeDocumentation().

Referenced by writeDocumentation().

{
if (ml) ml->writeDocumentation(ol,displayName(),this,title);
}
void NamespaceDef::writeMemberGroups ( OutputList ol)
private

Definition at line 482 of file namespacedef.cpp.

References MemberGroup::allMembersInSameSection(), MemberGroup::header(), SIntDict< MemberGroup >::Iterator, m_subGrouping, memberGroupSDict, SIntDict< T >::sort(), and MemberGroup::writeDeclarations().

Referenced by writeDocumentation().

{
/* write user defined member groups */
{
for (;(mg=mgli.current());++mgli)
{
&& mg->header()!="[NOHEADER]")
{
mg->writeDeclarations(ol,0,this,0,0);
}
}
}
}
void NamespaceDef::writeMemberPages ( OutputList ol)

Definition at line 714 of file namespacedef.cpp.

References OutputList::disableAllBut(), displayName(), OutputGenerator::Html, MemberList::listType(), m_memberLists, MemberListType_documentationLists, OutputList::popGeneratorState(), OutputList::pushGeneratorState(), and MemberList::writeDocumentationPage().

Referenced by writeDocumentation().

{
QListIterator<MemberList> mli(m_memberLists);
for (mli.toFirst();(ml=mli.current());++mli)
{
{
}
}
}
void NamespaceDef::writeNamespaceDeclarations ( OutputList ol,
const QCString &  title,
bool  isConstantGroup = false 
)
private

Definition at line 476 of file namespacedef.cpp.

References namespaceSDict, and NamespaceSDict::writeDeclaration().

Referenced by writeDocumentation().

void NamespaceDef::writeQuickMemberLinks ( OutputList ol,
MemberDef currentMd 
) const
virtual

Reimplemented from Definition.

Definition at line 731 of file namespacedef.cpp.

References MemberDef::anchor(), Config_getBool, convertToHtml(), createSubDirs(), getMemberList(), MemberDef::getNamespaceDef(), MemberDef::getOutputFileBase(), Doxygen::htmlFileExtension, MemberDef::isEnumValue(), MemberDef::isLinkable(), MemberDef::isLinkableInProject(), Definition::localName(), MemberListType_allMembersList, and OutputList::writeString().

{
static bool createSubDirs=Config_getBool(CREATE_SUBDIRS);
ol.writeString(" <div class=\"navtab\">\n");
ol.writeString(" <table>\n");
if (allMemberList)
{
MemberListIterator mli(*allMemberList);
MemberDef *md;
for (mli.toFirst();(md=mli.current());++mli)
{
if (md->getNamespaceDef()==this && md->isLinkable() && !md->isEnumValue())
{
ol.writeString(" <tr><td class=\"navtab\">");
{
if (md==currentMd) // selected item => highlight
{
ol.writeString("<a class=\"qindexHL\" ");
}
else
{
ol.writeString("<a class=\"qindex\" ");
}
ol.writeString("href=\"");
if (createSubDirs) ol.writeString("../../");
ol.writeString("\">");
ol.writeString("</a>");
}
ol.writeString("</td></tr>\n");
}
}
}
ol.writeString(" </table>\n");
ol.writeString(" </div>\n");
}
void NamespaceDef::writeSummaryLinks ( OutputList ol)
privatevirtual

Reimplemented from Definition.

Definition at line 513 of file namespacedef.cpp.

References classSDict, ClassSDict::declVisible(), MemberList::declVisible(), NamespaceSDict::declVisible(), OutputList::disableAllBut(), Definition::getLanguage(), getMemberList(), OutputGenerator::Html, LayoutDocManager::instance(), LayoutDocEntry::kind(), MemberList::listType(), MemberList::listTypeAsString(), LayoutDocEntry::MemberDecl, LayoutDocManager::Namespace, LayoutDocEntry::NamespaceClasses, LayoutDocEntry::NamespaceNestedNamespaces, namespaceSDict, OutputList::popGeneratorState(), OutputList::pushGeneratorState(), LayoutDocEntrySection::title(), LayoutDocEntryMemberDecl::title(), LayoutDocEntryMemberDecl::type, OutputList::writeString(), and OutputList::writeSummaryLink().

{
QListIterator<LayoutDocEntry> eli(
bool first=TRUE;
for (eli.toFirst();(lde=eli.current());++eli)
{
)
{
QCString label = lde->kind()==LayoutDocEntry::NamespaceClasses ? "nested-classes" : "namespaces";
ol.writeSummaryLink(0,label,ls->title(lang),first);
first=FALSE;
}
else if (lde->kind()== LayoutDocEntry::MemberDecl)
{
if (ml && ml->declVisible())
{
first=FALSE;
}
}
}
if (!first)
{
ol.writeString(" </div>\n");
}
}
void NamespaceDef::writeTagFile ( FTextStream tagFile)

Definition at line 280 of file namespacedef.cpp.

References classSDict, ClassDef::compoundTypeString(), convertToXML(), endl(), getMemberList(), getOutputFileBase(), Doxygen::htmlFileExtension, Definition::id(), LayoutDocManager::instance(), isLinkableInProject(), ClassDef::isLinkableInProject(), SIntDict< MemberGroup >::Iterator, LayoutDocEntry::kind(), LayoutDocEntry::MemberDecl, LayoutDocEntry::MemberGroups, memberGroupSDict, Definition::name(), LayoutDocManager::Namespace, LayoutDocEntry::NamespaceClasses, LayoutDocEntry::NamespaceNestedNamespaces, namespaceSDict, LayoutDocEntryMemberDecl::type, Definition::writeDocAnchorsToTagFile(), MemberGroup::writeTagFile(), and MemberList::writeTagFile().

Referenced by writeTagFile().

{
tagFile << " <compound kind=\"namespace\">" << endl;
tagFile << " <name>" << convertToXML(name()) << "</name>" << endl;
tagFile << " <filename>" << convertToXML(getOutputFileBase()) << Doxygen::htmlFileExtension << "</filename>" << endl;
QCString idStr = id();
if (!idStr.isEmpty())
{
tagFile << " <clangid>" << convertToXML(idStr) << "</clangid>" << endl;
}
QListIterator<LayoutDocEntry> eli(
for (eli.toFirst();(lde=eli.current());++eli)
{
switch (lde->kind())
{
{
{
for (ni.toFirst();(nd=ni.current());++ni)
{
{
tagFile << " <namespace>" << convertToXML(nd->name()) << "</namespace>" << endl;
}
}
}
}
break;
{
{
ClassDef *cd;
for (ci.toFirst();(cd=ci.current());++ci)
{
{
tagFile << " <class kind=\"" << cd->compoundTypeString()
<< "\">" << convertToXML(cd->name()) << "</class>" << endl;
}
}
}
}
{
if (ml)
{
ml->writeTagFile(tagFile);
}
}
break;
{
{
for (;(mg=mgli.current());++mgli)
{
mg->writeTagFile(tagFile);
}
}
}
break;
default:
break;
}
}
tagFile << " </compound>" << endl;
}

Member Data Documentation

ClassSDict* NamespaceDef::classSDict
private

Definition at line 138 of file namespacedef.h.

Referenced by countMembers(), getClassSDict(), insertClass(), NamespaceDef(), sortMemberLists(), writeClassDeclarations(), writeInlineClasses(), writeSummaryLinks(), writeTagFile(), and ~NamespaceDef().

QCString NamespaceDef::fileName
private

Definition at line 128 of file namespacedef.h.

Referenced by getOutputFileBase(), NamespaceDef(), setFileName(), res2cc_cmd.VerbatimFile::writeDirEntry(), res2cc_cmd.CSSFile::writeDirEntry(), res2cc_cmd.LumFile::writeDirEntry(), and res2cc_cmd.LumaFile::writeDirEntry().

FileList NamespaceDef::files
private

Definition at line 129 of file namespacedef.h.

Referenced by insertUsedFile().

MemberSDict* NamespaceDef::m_allMembersDict
private

Definition at line 135 of file namespacedef.h.

Referenced by getMemberByName(), insertMember(), NamespaceDef(), and ~NamespaceDef().

SDict<Definition>* NamespaceDef::m_innerCompounds
private

Definition at line 133 of file namespacedef.h.

Referenced by addInnerCompound(), findInnerCompound(), NamespaceDef(), and ~NamespaceDef().

bool NamespaceDef::m_isPublished
private

Definition at line 142 of file namespacedef.h.

Referenced by addNamespaceAttributes().

QList<MemberList> NamespaceDef::m_memberLists
private

Definition at line 136 of file namespacedef.h.

Referenced by addListReferences(), addMembersToMemberGroup(), createMemberList(), findSectionsInDocumentation(), getMemberList(), getMemberLists(), insertMember(), sortMemberLists(), and writeMemberPages().

bool NamespaceDef::m_subGrouping
private

Definition at line 140 of file namespacedef.h.

Referenced by addMembersToMemberGroup(), NamespaceDef(), subGrouping(), and writeMemberGroups().

enum { ... } NamespaceDef::m_type

Referenced by isConstantGroup(), isLibrary(), isModule(), and NamespaceDef().

MemberGroupSDict* NamespaceDef::memberGroupSDict
private

Definition at line 137 of file namespacedef.h.

Referenced by addListReferences(), addMembersToMemberGroup(), distributeMemberGroupDocumentation(), findSectionsInDocumentation(), getMemberGroupSDict(), NamespaceDef(), writeMemberGroups(), writeTagFile(), and ~NamespaceDef().

NamespaceSDict* NamespaceDef::namespaceSDict
private

Definition at line 139 of file namespacedef.h.

Referenced by getNamespaceSDict(), insertNamespace(), NamespaceDef(), sortMemberLists(), writeNamespaceDeclarations(), writeSummaryLinks(), writeTagFile(), and ~NamespaceDef().

SDict<Definition>* NamespaceDef::usingDeclList
private

Definition at line 132 of file namespacedef.h.

Referenced by addUsingDeclaration(), findInnerCompound(), getUsedClasses(), NamespaceDef(), and ~NamespaceDef().

NamespaceSDict* NamespaceDef::usingDirList
private

Definition at line 131 of file namespacedef.h.

Referenced by addUsingDirective(), combineUsingRelations(), findInnerCompound(), getUsedNamespaces(), NamespaceDef(), and ~NamespaceDef().

bool NamespaceDef::visited

Definition at line 106 of file namespacedef.h.

Referenced by combineUsingRelations(), combineUsingRelations(), and NamespaceDef().


The documentation for this class was generated from the following files: