summaryrefslogtreecommitdiffstats
path: root/src/context.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-12-30 16:01:34 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-08-27 13:43:31 (GMT)
commitf16c156065ac8bc6242870c2ae701252b5d4f9b2 (patch)
treeba84a6c59e1f447ac87e99651d7ff040b419d024 /src/context.cpp
parent6bb0d2908b4ca7908a8e655a5abcf7615a5f4c77 (diff)
downloadDoxygen-f16c156065ac8bc6242870c2ae701252b5d4f9b2.zip
Doxygen-f16c156065ac8bc6242870c2ae701252b5d4f9b2.tar.gz
Doxygen-f16c156065ac8bc6242870c2ae701252b5d4f9b2.tar.bz2
Added missing information to template version of the all members list
Diffstat (limited to 'src/context.cpp')
-rw-r--r--src/context.cpp38
1 files changed, 36 insertions, 2 deletions
diff --git a/src/context.cpp b/src/context.cpp
index 7206535..17229f7 100644
--- a/src/context.cpp
+++ b/src/context.cpp
@@ -895,6 +895,14 @@ class TranslateContext::Private : public PropertyMapper
{
return theTranslator->trNoMatches();
}
+ TemplateVariant enumName() const
+ {
+ return theTranslator->trEnumName();
+ }
+ TemplateVariant enumValue() const
+ {
+ return theTranslator->trEnumValue();
+ }
Private()
{
//%% string generatedBy
@@ -1049,6 +1057,10 @@ class TranslateContext::Private : public PropertyMapper
addProperty("searching", this,&Private::searching);
//%% string noMatches
addProperty("noMatches", this,&Private::noMatches);
+ //%% string enumValue
+ addProperty("enumValue", this,&Private::enumValue);
+ //%% string enumName
+ addProperty("enumName", this,&Private::enumName);
m_javaOpt = Config_getBool("OPTIMIZE_OUTPUT_JAVA");
m_fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN");
@@ -3211,6 +3223,7 @@ class MemberContext::Private : public DefinitionContext<MemberContext::Private>
addProperty("isObjCMethod", this,&Private::isObjCMethod);
addProperty("isObjCProperty", this,&Private::isObjCProperty);
addProperty("isAnonymous", this,&Private::isAnonymous);
+ addProperty("hasParameters", this,&Private::hasParameters);
addProperty("declType", this,&Private::declType);
addProperty("declArgs", this,&Private::declArgs);
addProperty("anonymousType", this,&Private::anonymousType);
@@ -3226,12 +3239,12 @@ class MemberContext::Private : public DefinitionContext<MemberContext::Private>
addProperty("templateAlias", this,&Private::templateAlias);
addProperty("propertyAttrs", this,&Private::propertyAttrs);
addProperty("eventAttrs", this,&Private::eventAttrs);
+ addProperty("category", this,&Private::category);
addProperty("class", this,&Private::getClass);
addProperty("file", this,&Private::getFile);
addProperty("namespace", this,&Private::getNamespace);
addProperty("definition", this,&Private::definition);
addProperty("parameters", this,&Private::parameters);
- addProperty("hasParameterList", this,&Private::hasParameterList);
addProperty("hasConstQualifier", this,&Private::hasConstQualifier);
addProperty("hasVolatileQualifier",this,&Private::hasVolatileQualifier);
addProperty("trailingReturnType", this,&Private::trailingReturnType);
@@ -3257,6 +3270,7 @@ class MemberContext::Private : public DefinitionContext<MemberContext::Private>
addProperty("hasCallerGraph", this,&Private::hasCallerGraph);
addProperty("callerGraph", this,&Private::callerGraph);
addProperty("fieldType", this,&Private::fieldType);
+ addProperty("type", this,&Private::type);
m_cache.propertyAttrs.reset(TemplateList::alloc());
if (md && md->isProperty())
@@ -3694,6 +3708,21 @@ class MemberContext::Private : public DefinitionContext<MemberContext::Private>
return TemplateVariant(FALSE);
}
}
+ TemplateVariant category() const
+ {
+ if (!m_cache.category && m_memberDef->category())
+ {
+ m_cache.category.reset(ClassContext::alloc(m_memberDef->category()));
+ }
+ if (m_cache.category)
+ {
+ return m_cache.category.get();
+ }
+ else
+ {
+ return TemplateVariant(FALSE);
+ }
+ }
TemplateVariant getFile() const
{
if (!m_cache.fileDef && m_memberDef->getFileDef())
@@ -3750,7 +3779,7 @@ class MemberContext::Private : public DefinitionContext<MemberContext::Private>
}
return m_cache.arguments.get();
}
- TemplateVariant hasParameterList() const
+ TemplateVariant hasParameters() const
{
return getDefArgList()!=0;
}
@@ -4142,6 +4171,10 @@ class MemberContext::Private : public DefinitionContext<MemberContext::Private>
return TemplateVariant("");
}
}
+ TemplateVariant type() const
+ {
+ return m_memberDef->typeString();
+ }
private:
MemberDef *m_memberDef;
struct Cachable
@@ -4154,6 +4187,7 @@ class MemberContext::Private : public DefinitionContext<MemberContext::Private>
SharedPtr<MemberListContext> enumValues;
SharedPtr<FileContext> fileDef;
SharedPtr<NamespaceContext> namespaceDef;
+ SharedPtr<ClassContext> category;
SharedPtr<ClassContext> classDef;
SharedPtr<ClassContext> anonymousType;
SharedPtr<TemplateList> templateDecls;