Skip to content

Commit

Permalink
More work on the template and context mechanisms
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Dec 29, 2013
1 parent 2912829 commit 744d1ca
Show file tree
Hide file tree
Showing 14 changed files with 1,284 additions and 306 deletions.
22 changes: 13 additions & 9 deletions src/classdef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1767,20 +1767,24 @@ void ClassDef::writeMoreLink(OutputList &ol,const QCString &anchor)
}
}

bool ClassDef::visibleInParentsDeclList() const
{
static bool extractPrivate = Config_getBool("EXTRACT_PRIVATE");
static bool hideUndocClasses = Config_getBool("HIDE_UNDOC_CLASSES");
static bool extractLocalClasses = Config_getBool("EXTRACT_LOCAL_CLASSES");
bool linkable = isLinkable();
return (name().find('@')==-1 && !isExtension() &&
(protection()!=::Private || extractPrivate) &&
(linkable || (!hideUndocClasses && (!isLocal() || extractLocalClasses)))
);
}

void ClassDef::writeDeclarationLink(OutputList &ol,bool &found,const char *header,bool localNames)
{
//static bool fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN");
//static bool vhdlOpt = Config_getBool("OPTIMIZE_OUTPUT_VHDL");
static bool hideUndocClasses = Config_getBool("HIDE_UNDOC_CLASSES");
static bool extractLocalClasses = Config_getBool("EXTRACT_LOCAL_CLASSES");
bool isLink = isLinkable();
SrcLangExt lang = getLanguage();
if (isLink ||
(!hideUndocClasses &&
(!isLocal() || extractLocalClasses)
)
)
if (visibleInParentsDeclList())
{
if (!found) // first class
{
Expand Down Expand Up @@ -1820,7 +1824,7 @@ void ClassDef::writeDeclarationLink(OutputList &ol,bool &found,const char *heade
ol.writeString(" ");
ol.insertMemberAlign();
}
if (isLink)
if (isLinkable())
{
ol.writeObjectLink(getReference(),
getOutputFileBase(),
Expand Down
8 changes: 6 additions & 2 deletions src/classdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ class ClassDef : public Definition
/** the class is visible in a class diagram, or class hierarchy */
bool isVisibleInHierarchy();

/** show this class in the declaration section of its parent? */
bool visibleInParentsDeclList() const;

/** Returns the template arguments of this class
* Will return 0 if not applicable.
*/
Expand Down Expand Up @@ -310,14 +313,13 @@ class ClassDef : public Definition
QCString generatedFromFiles() const;
const FileList &usedFiles() const;

QCString includeStatement() const;

const ArgumentList *typeConstraints() const;
const ExampleSDict *exampleList() const;
bool hasExamples() const;
QCString getMemberListFileName() const;
bool subGrouping() const;


//-----------------------------------------------------------------------------------
// --- setters ----
//-----------------------------------------------------------------------------------
Expand Down Expand Up @@ -432,6 +434,8 @@ class ClassDef : public Definition
QPtrDict<void> *visitedClasses);
void getTitleForMemberListType(MemberListType type,
QCString &title,QCString &subtitle);
QCString includeStatement() const;


ClassDefImpl *m_impl;

Expand Down
Loading

0 comments on commit 744d1ca

Please sign in to comment.