Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
FileContext::Private Class Reference
Inheritance diagram for FileContext::Private:
DefinitionContext< FileContext::Private >

Classes

struct  Cachable
 

Public Member Functions

 Private (FileDef *fd)
 
virtual ~Private ()
 
TemplateVariant get (const char *n) const
 
TemplateVariant title () const
 
TemplateVariant highlight () const
 
TemplateVariant subHighlight () const
 
TemplateVariant versionInfo () const
 
TemplateVariant includeList () const
 
DotInclDepGraphgetIncludeGraph () const
 
TemplateVariant hasIncludeGraph () const
 
TemplateVariant includeGraph () const
 
DotInclDepGraphgetIncludedByGraph () const
 
TemplateVariant hasIncludedByGraph () const
 
TemplateVariant includedByGraph () const
 
TemplateVariant hasDetails () const
 
TemplateVariant hasSourceFile () const
 
TemplateVariant sources () const
 
TemplateVariant version () const
 
TemplateVariant classes () const
 
TemplateVariant namespaces () const
 
TemplateVariant constantgroups () const
 
TemplateVariant getMemberList (SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
 
TemplateVariant macros () const
 
TemplateVariant typedefs () const
 
TemplateVariant enums () const
 
TemplateVariant functions () const
 
TemplateVariant variables () const
 
TemplateVariant memberGroups () const
 
TemplateVariant detailedMacros () const
 
TemplateVariant detailedTypedefs () const
 
TemplateVariant detailedEnums () const
 
TemplateVariant detailedFunctions () const
 
TemplateVariant detailedVariables () const
 
TemplateVariant inlineClasses () const
 
TemplateVariant compoundType () const
 
- Public Member Functions inherited from DefinitionContext< FileContext::Private >
 DefinitionContext (Definition *d)
 
void addBaseProperties (PropertyMapper< FileContext::Private > &inst)
 
TemplateVariant fileName () const
 
TemplateVariant anchor () const
 
TemplateVariant sourceFileName () const
 
TemplateVariant isLinkable () const
 
TemplateVariant isLinkableInProject () const
 
TemplateVariant name () const
 
TemplateVariant bareName () const
 
QCString relPathAsString () const
 
virtual TemplateVariant relPath () const
 
TemplateVariant details () const
 
TemplateVariant brief () const
 
TemplateVariant inbodyDocs () const
 
TemplateVariant dynSectionId () const
 
TemplateVariant language () const
 
TemplateVariant compoundKind () const
 
TemplateVariant sourceDef () const
 
void fillPath (Definition *def, TemplateList *list) const
 
TemplateVariant navigationPath () const
 
TemplateVariant isReference () const
 
TemplateVariant externalReference () const
 

Private Member Functions

CachablegetCache () const
 

Private Attributes

FileDefm_fileDef
 

Static Private Attributes

static PropertyMapper< FileContext::Privates_inst
 

Detailed Description

Definition at line 2920 of file context.cpp.

Constructor & Destructor Documentation

FileContext::Private::Private ( FileDef fd)
inline

Definition at line 2923 of file context.cpp.

2924  {
2925  if (fd==0) abort();
2926  static bool init=FALSE;
2927  if (!init)
2928  {
2930  s_inst.addProperty("title", &Private::title);
2931  s_inst.addProperty("highlight", &Private::highlight);
2932  s_inst.addProperty("subhighlight", &Private::subHighlight);
2933  s_inst.addProperty("versionInfo", &Private::versionInfo);
2934  s_inst.addProperty("includeList", &Private::includeList);
2935  s_inst.addProperty("hasIncludeGraph", &Private::hasIncludeGraph);
2936  s_inst.addProperty("hasIncludedByGraph", &Private::hasIncludedByGraph);
2937  s_inst.addProperty("includeGraph", &Private::includeGraph);
2938  s_inst.addProperty("includedByGraph", &Private::includedByGraph);
2939  s_inst.addProperty("hasDetails", &Private::hasDetails);
2940  s_inst.addProperty("hasSourceFile", &Private::hasSourceFile);
2941  s_inst.addProperty("sources", &Private::sources);
2942  s_inst.addProperty("version", &Private::version);
2943  s_inst.addProperty("classes", &Private::classes);
2944  s_inst.addProperty("namespaces", &Private::namespaces);
2945  s_inst.addProperty("constantgroups", &Private::constantgroups);
2946  s_inst.addProperty("macros", &Private::macros);
2947  s_inst.addProperty("typedefs", &Private::typedefs);
2948  s_inst.addProperty("enums", &Private::enums);
2949  s_inst.addProperty("functions", &Private::functions);
2950  s_inst.addProperty("variables", &Private::variables);
2951  s_inst.addProperty("memberGroups", &Private::memberGroups);
2952  s_inst.addProperty("detailedMacros", &Private::detailedMacros);
2953  s_inst.addProperty("detailedTypedefs", &Private::detailedTypedefs);
2954  s_inst.addProperty("detailedEnums", &Private::detailedEnums);
2955  s_inst.addProperty("detailedFunctions", &Private::detailedFunctions);
2956  s_inst.addProperty("detailedVariables", &Private::detailedVariables);
2957  s_inst.addProperty("inlineClasses", &Private::inlineClasses);
2958  s_inst.addProperty("compoundType", &Private::compoundType);
2959  init=TRUE;
2960  }
2961  if (!fd->cookie()) { fd->setCookie(new FileContext::Private::Cachable(fd)); }
2962  }
TemplateVariant hasIncludeGraph() const
Definition: context.cpp:3010
Cookie * cookie() const
Definition: definition.h:352
TemplateVariant highlight() const
Definition: context.cpp:2972
TemplateVariant detailedVariables() const
Definition: context.cpp:3278
TemplateVariant detailedTypedefs() const
Definition: context.cpp:3263
TemplateVariant typedefs() const
Definition: context.cpp:3223
TemplateVariant versionInfo() const
Definition: context.cpp:2980
TemplateVariant functions() const
Definition: context.cpp:3231
TemplateVariant compoundType() const
Definition: context.cpp:3307
TemplateVariant title() const
Definition: context.cpp:2968
const bool FALSE
Definition: qglobal.h:370
TemplateVariant includeGraph() const
Definition: context.cpp:3016
static PropertyMapper< FileContext::Private > s_inst
Definition: context.cpp:3343
TemplateVariant hasDetails() const
Definition: context.cpp:3105
init
Definition: train.py:42
TemplateVariant namespaces() const
Definition: context.cpp:3155
TemplateVariant memberGroups() const
Definition: context.cpp:3243
TemplateVariant hasIncludedByGraph() const
Definition: context.cpp:3062
void setCookie(Cookie *cookie)
Definition: definition.h:351
void addBaseProperties(PropertyMapper< FileContext::Private > &inst)
Definition: context.cpp:1364
TemplateVariant subHighlight() const
Definition: context.cpp:2976
TemplateVariant detailedFunctions() const
Definition: context.cpp:3271
TemplateVariant variables() const
Definition: context.cpp:3239
TemplateVariant macros() const
Definition: context.cpp:3219
TemplateVariant hasSourceFile() const
Definition: context.cpp:3109
TemplateVariant classes() const
Definition: context.cpp:3133
TemplateVariant inlineClasses() const
Definition: context.cpp:3282
TemplateVariant version() const
Definition: context.cpp:3129
TemplateVariant includedByGraph() const
Definition: context.cpp:3068
TemplateVariant sources() const
Definition: context.cpp:3113
TemplateVariant enums() const
Definition: context.cpp:3227
TemplateVariant detailedEnums() const
Definition: context.cpp:3267
TemplateVariant constantgroups() const
Definition: context.cpp:3177
const bool TRUE
Definition: qglobal.h:371
TemplateVariant includeList() const
Definition: context.cpp:2984
TemplateVariant detailedMacros() const
Definition: context.cpp:3259
virtual FileContext::Private::~Private ( )
inlinevirtual

Definition at line 2963 of file context.cpp.

2963 {}

Member Function Documentation

TemplateVariant FileContext::Private::classes ( ) const
inline

Definition at line 3133 of file context.cpp.

3134  {
3135  Cachable &cache = getCache();
3136  if (!cache.classes)
3137  {
3138  TemplateList *classList = TemplateList::alloc();
3139  if (m_fileDef->getClassSDict())
3140  {
3142  ClassDef *cd;
3143  for (sdi.toFirst();(cd=sdi.current());++sdi)
3144  {
3145  if (cd->visibleInParentsDeclList())
3146  {
3147  classList->append(ClassContext::alloc(cd));
3148  }
3149  }
3150  }
3151  cache.classes.reset(classList);
3152  }
3153  return cache.classes.get();
3154  }
ClassSDict * getClassSDict() const
Definition: filedef.h:134
static TemplateList * alloc()
Definition: template.cpp:420
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
Cachable & getCache() const
Definition: context.cpp:3337
friend class Iterator
Definition: sortdict.h:289
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant FileContext::Private::compoundType ( ) const
inline

Definition at line 3307 of file context.cpp.

3308  {
3309  return theTranslator->trFile(FALSE,TRUE);
3310  }
virtual QCString trFile(bool first_capital, bool singular)=0
const bool FALSE
Definition: qglobal.h:370
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
TemplateVariant FileContext::Private::constantgroups ( ) const
inline

Definition at line 3177 of file context.cpp.

3178  {
3179  Cachable &cache = getCache();
3180  if (!cache.constantgroups)
3181  {
3182  TemplateList *namespaceList = TemplateList::alloc();
3184  {
3186  NamespaceDef *nd;
3187  for (sdi.toFirst();(nd=sdi.current());++sdi)
3188  {
3189  if (nd->isLinkable() && nd->isConstantGroup())
3190  {
3191  namespaceList->append(NamespaceContext::alloc(nd));
3192  }
3193  }
3194  }
3195  cache.constantgroups.reset(namespaceList);
3196  }
3197  return cache.constantgroups.get();
3198  }
static TemplateList * alloc()
Definition: template.cpp:420
static NamespaceContext * alloc(NamespaceDef *nd)
Definition: context.h:275
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
Cachable & getCache() const
Definition: context.cpp:3337
NamespaceSDict * getNamespaceSDict() const
Definition: filedef.h:133
friend class Iterator
Definition: sortdict.h:289
TemplateVariant FileContext::Private::detailedEnums ( ) const
inline

Definition at line 3267 of file context.cpp.

3268  {
3270  }
virtual QCString trEnumerationTypeDocumentation()=0
Cachable & getCache() const
Definition: context.cpp:3337
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant detailedEnums() const
Definition: context.cpp:3267
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:3199
TemplateVariant FileContext::Private::detailedFunctions ( ) const
inline

Definition at line 3271 of file context.cpp.

3272  {
3274  SrcLangExt lang = m_fileDef->getLanguage();
3277  }
TemplateVariant title() const
Definition: context.cpp:2968
SrcLangExt
Definition: types.h:41
Cachable & getCache() const
Definition: context.cpp:3337
SrcLangExt getLanguage() const
TemplateVariant detailedFunctions() const
Definition: context.cpp:3271
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trSubprogramDocumentation()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:3199
virtual QCString trFunctionDocumentation()=0
TemplateVariant FileContext::Private::detailedMacros ( ) const
inline

Definition at line 3259 of file context.cpp.

3260  {
3262  }
Cachable & getCache() const
Definition: context.cpp:3337
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:3199
virtual QCString trDefineDocumentation()=0
TemplateVariant detailedMacros() const
Definition: context.cpp:3259
TemplateVariant FileContext::Private::detailedTypedefs ( ) const
inline

Definition at line 3263 of file context.cpp.

3264  {
3266  }
TemplateVariant detailedTypedefs() const
Definition: context.cpp:3263
Cachable & getCache() const
Definition: context.cpp:3337
virtual QCString trTypedefDocumentation()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:3199
TemplateVariant FileContext::Private::detailedVariables ( ) const
inline

Definition at line 3278 of file context.cpp.

3279  {
3281  }
TemplateVariant detailedVariables() const
Definition: context.cpp:3278
Cachable & getCache() const
Definition: context.cpp:3337
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:3199
virtual QCString trVariableDocumentation()=0
TemplateVariant FileContext::Private::enums ( ) const
inline

Definition at line 3227 of file context.cpp.

3228  {
3230  }
Cachable & getCache() const
Definition: context.cpp:3337
virtual QCString trEnumerations()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant enums() const
Definition: context.cpp:3227
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:3199
TemplateVariant FileContext::Private::functions ( ) const
inline

Definition at line 3231 of file context.cpp.

3232  {
3234  SrcLangExt lang = m_fileDef->getLanguage();
3235  if (lang==SrcLangExt_Fortran) title=theTranslator->trSubprograms();
3236  else if (lang==SrcLangExt_VHDL) title=VhdlDocGen::trFunctionAndProc();
3238  }
virtual QCString trSubprograms()=0
static QCString trFunctionAndProc()
TemplateVariant functions() const
Definition: context.cpp:3231
TemplateVariant title() const
Definition: context.cpp:2968
SrcLangExt
Definition: types.h:41
Cachable & getCache() const
Definition: context.cpp:3337
SrcLangExt getLanguage() const
virtual QCString trFunctions()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:3199
TemplateVariant FileContext::Private::get ( const char *  n) const
inline

Definition at line 2964 of file context.cpp.

2965  {
2966  return s_inst.get(this,n);
2967  }
static PropertyMapper< FileContext::Private > s_inst
Definition: context.cpp:3343
std::void_t< T > n
Cachable& FileContext::Private::getCache ( ) const
inlineprivate

Definition at line 3337 of file context.cpp.

3338  {
3339  Cachable *c = static_cast<Cachable*>(m_fileDef->cookie());
3340  assert(c!=0);
3341  return *c;
3342  }
Cookie * cookie() const
Definition: definition.h:352
DotInclDepGraph* FileContext::Private::getIncludedByGraph ( ) const
inline

Definition at line 3053 of file context.cpp.

3054  {
3055  Cachable &cache = getCache();
3056  if (!cache.includedByGraph)
3057  {
3058  cache.includedByGraph.reset(new DotInclDepGraph(m_fileDef,TRUE));
3059  }
3060  return cache.includedByGraph.get();
3061  }
Cachable & getCache() const
Definition: context.cpp:3337
const bool TRUE
Definition: qglobal.h:371
DotInclDepGraph* FileContext::Private::getIncludeGraph ( ) const
inline

Definition at line 3001 of file context.cpp.

3002  {
3003  Cachable &cache = getCache();
3004  if (!cache.includeGraph)
3005  {
3006  cache.includeGraph.reset(new DotInclDepGraph(m_fileDef,FALSE));
3007  }
3008  return cache.includeGraph.get();
3009  }
const bool FALSE
Definition: qglobal.h:370
Cachable & getCache() const
Definition: context.cpp:3337
TemplateVariant FileContext::Private::getMemberList ( SharedPtr< MemberListInfoContext > &  list,
MemberListType  type,
const char *  title,
bool  detailed = FALSE 
) const
inline

Definition at line 3199 of file context.cpp.

3201  {
3202  if (!list)
3203  {
3205  if (ml)
3206  {
3208  }
3209  }
3210  if (list)
3211  {
3212  return list.get();
3213  }
3214  else
3215  {
3216  return TemplateVariant(FALSE);
3217  }
3218  }
TemplateVariant title() const
Definition: context.cpp:2968
const bool FALSE
Definition: qglobal.h:370
static MemberListInfoContext * alloc(Definition *def, const QCString &relPath, const MemberList *ml, const QCString &title, const QCString &subtitle=QCString())
Definition: context.h:1031
void reset(T *p=0)
Definition: context.cpp:113
MemberList * getMemberList(MemberListType lt) const
Definition: filedef.cpp:1839
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
T * get() const
Definition: context.cpp:111
TemplateVariant FileContext::Private::hasDetails ( ) const
inline

Definition at line 3105 of file context.cpp.

3106  {
3108  }
bool hasDetailedDescription() const
Definition: filedef.cpp:173
TemplateVariant FileContext::Private::hasIncludedByGraph ( ) const
inline

Definition at line 3062 of file context.cpp.

3063  {
3064  static bool haveDot = Config_getBool("HAVE_DOT");
3065  DotInclDepGraph *incGraph = getIncludedByGraph();
3066  return (haveDot && !incGraph->isTooBig() && !incGraph->isTrivial());
3067  }
DotInclDepGraph * getIncludedByGraph() const
Definition: context.cpp:3053
bool isTrivial() const
Definition: dot.cpp:3636
#define Config_getBool(val)
Definition: config.cpp:664
bool isTooBig() const
Definition: dot.cpp:3641
TemplateVariant FileContext::Private::hasIncludeGraph ( ) const
inline

Definition at line 3010 of file context.cpp.

3011  {
3012  static bool haveDot = Config_getBool("HAVE_DOT");
3013  DotInclDepGraph *incGraph = getIncludeGraph();
3014  return (haveDot && !incGraph->isTooBig() && !incGraph->isTrivial());
3015  }
bool isTrivial() const
Definition: dot.cpp:3636
#define Config_getBool(val)
Definition: config.cpp:664
DotInclDepGraph * getIncludeGraph() const
Definition: context.cpp:3001
bool isTooBig() const
Definition: dot.cpp:3641
TemplateVariant FileContext::Private::hasSourceFile ( ) const
inline

Definition at line 3109 of file context.cpp.

3110  {
3111  return m_fileDef->generateSourceFile();
3112  }
bool generateSourceFile() const
Definition: filedef.cpp:1396
TemplateVariant FileContext::Private::highlight ( ) const
inline

Definition at line 2972 of file context.cpp.

2973  {
2974  return TemplateVariant("files");
2975  }
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant FileContext::Private::includedByGraph ( ) const
inline

Definition at line 3068 of file context.cpp.

3069  {
3070  static bool haveDot = Config_getBool("HAVE_DOT");
3071  QGString result;
3072  if (haveDot)
3073  {
3075  FTextStream t(&result);
3076  switch (g_globals.outputFormat)
3077  {
3079  {
3084  );
3085  }
3086  break;
3088  {
3093  );
3094  }
3095  break;
3096  // TODO: support other generators
3097  default:
3098  err("context.cpp: output format not yet supported");
3099  break;
3100  }
3102  }
3103  return TemplateVariant(result.data(),TRUE);
3104  }
char * data() const
Definition: qgstring.h:42
DotInclDepGraph * getIncludedByGraph() const
Definition: context.cpp:3053
static QCString result
int dynSectionId
Definition: context.cpp:69
static QCString htmlFileExtension
Definition: doxygen.h:130
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
QCString outputDir
Definition: context.cpp:70
Definition: dot.h:43
#define Config_getBool(val)
Definition: config.cpp:664
Definition: dot.h:42
void err(const char *fmt,...)
Definition: message.cpp:226
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
QCString getOutputFileBase() const
Definition: filedef.h:83
ContextOutputFormat outputFormat
Definition: context.cpp:71
QCString writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool writeImageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3503
struct ContextGlobals g_globals
char portable_pathSeparator()
Definition: portable.cpp:355
Definition: dot.h:42
Definition: dot.h:43
const bool TRUE
Definition: qglobal.h:371
TemplateVariant FileContext::Private::includeGraph ( ) const
inline

Definition at line 3016 of file context.cpp.

3017  {
3018  static bool haveDot = Config_getBool("HAVE_DOT");
3019  QGString result;
3020  if (haveDot)
3021  {
3023  FTextStream t(&result);
3024  switch (g_globals.outputFormat)
3025  {
3027  {
3032  );
3033  }
3034  break;
3036  {
3041  );
3042  }
3043  break;
3044  // TODO: support other generators
3045  default:
3046  err("context.cpp: output format not yet supported");
3047  break;
3048  }
3050  }
3051  return TemplateVariant(result.data(),TRUE);
3052  }
char * data() const
Definition: qgstring.h:42
static QCString result
int dynSectionId
Definition: context.cpp:69
static QCString htmlFileExtension
Definition: doxygen.h:130
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
QCString outputDir
Definition: context.cpp:70
Definition: dot.h:43
#define Config_getBool(val)
Definition: config.cpp:664
Definition: dot.h:42
void err(const char *fmt,...)
Definition: message.cpp:226
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
QCString getOutputFileBase() const
Definition: filedef.h:83
ContextOutputFormat outputFormat
Definition: context.cpp:71
QCString writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool writeImageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3503
struct ContextGlobals g_globals
char portable_pathSeparator()
Definition: portable.cpp:355
Definition: dot.h:42
DotInclDepGraph * getIncludeGraph() const
Definition: context.cpp:3001
Definition: dot.h:43
const bool TRUE
Definition: qglobal.h:371
TemplateVariant FileContext::Private::includeList ( ) const
inline

Definition at line 2984 of file context.cpp.

2985  {
2986  Cachable &cache = getCache();
2987  if (!cache.includeInfoList && m_fileDef->includeFileList())
2988  {
2989  cache.includeInfoList.reset(IncludeInfoListContext::alloc(
2991  }
2992  if (cache.includeInfoList)
2993  {
2994  return cache.includeInfoList.get();
2995  }
2996  else
2997  {
2998  return TemplateVariant(FALSE);
2999  }
3000  }
const bool FALSE
Definition: qglobal.h:370
Cachable & getCache() const
Definition: context.cpp:3337
QList< IncludeInfo > * includeFileList() const
Definition: filedef.h:124
SrcLangExt getLanguage() const
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
static IncludeInfoListContext * alloc(const QList< IncludeInfo > &list, SrcLangExt lang)
Definition: context.h:233
TemplateVariant FileContext::Private::inlineClasses ( ) const
inline

Definition at line 3282 of file context.cpp.

3283  {
3284  Cachable &cache = getCache();
3285  if (!cache.inlineClasses)
3286  {
3287  TemplateList *classList = TemplateList::alloc();
3288  if (m_fileDef->getClassSDict())
3289  {
3291  ClassDef *cd;
3292  for (sdi.toFirst();(cd=sdi.current());++sdi)
3293  {
3294  if (cd->name().find('@')==-1 &&
3295  cd->isLinkableInProject() &&
3296  cd->isEmbeddedInOuterScope() &&
3297  cd->partOfGroups()==0)
3298  {
3299  classList->append(ClassContext::alloc(cd));
3300  }
3301  }
3302  }
3303  cache.inlineClasses.reset(classList);
3304  }
3305  return cache.inlineClasses.get();
3306  }
ClassSDict * getClassSDict() const
Definition: filedef.h:134
static TemplateList * alloc()
Definition: template.cpp:420
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
Cachable & getCache() const
Definition: context.cpp:3337
friend class Iterator
Definition: sortdict.h:289
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant FileContext::Private::macros ( ) const
inline

Definition at line 3219 of file context.cpp.

3220  {
3222  }
Cachable & getCache() const
Definition: context.cpp:3337
TemplateVariant macros() const
Definition: context.cpp:3219
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:3199
virtual QCString trDefines()=0
TemplateVariant FileContext::Private::memberGroups ( ) const
inline

Definition at line 3243 of file context.cpp.

3244  {
3245  Cachable &cache = getCache();
3246  if (!cache.memberGroups)
3247  {
3249  {
3251  }
3252  else
3253  {
3254  cache.memberGroups.reset(MemberGroupListContext::alloc());
3255  }
3256  }
3257  return cache.memberGroups.get();
3258  }
bool subGrouping() const
Definition: filedef.h:140
Cachable & getCache() const
Definition: context.cpp:3337
static MemberGroupListContext * alloc()
Definition: context.h:1002
MemberGroupSDict * getMemberGroupSDict() const
Definition: filedef.h:132
TemplateVariant FileContext::Private::namespaces ( ) const
inline

Definition at line 3155 of file context.cpp.

3156  {
3157  Cachable &cache = getCache();
3158  if (!cache.namespaces)
3159  {
3160  TemplateList *namespaceList = TemplateList::alloc();
3162  {
3164  NamespaceDef *nd;
3165  for (sdi.toFirst();(nd=sdi.current());++sdi)
3166  {
3167  if (nd->isLinkable() && !nd->isConstantGroup())
3168  {
3169  namespaceList->append(NamespaceContext::alloc(nd));
3170  }
3171  }
3172  }
3173  cache.namespaces.reset(namespaceList);
3174  }
3175  return cache.namespaces.get();
3176  }
static TemplateList * alloc()
Definition: template.cpp:420
static NamespaceContext * alloc(NamespaceDef *nd)
Definition: context.h:275
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
Cachable & getCache() const
Definition: context.cpp:3337
NamespaceSDict * getNamespaceSDict() const
Definition: filedef.h:133
friend class Iterator
Definition: sortdict.h:289
TemplateVariant FileContext::Private::sources ( ) const
inline

Definition at line 3113 of file context.cpp.

3114  {
3115  Cachable &cache = getCache();
3116  if (!cache.sources)
3117  {
3119  {
3120  cache.sources.reset(new TemplateVariant(parseCode(m_fileDef,relPathAsString())));
3121  }
3122  else
3123  {
3124  cache.sources.reset(new TemplateVariant(""));
3125  }
3126  }
3127  return *cache.sources;
3128  }
static TemplateVariant parseCode(MemberDef *md, const QCString &scopeName, const QCString &relPath, const QCString &code, int startLine=-1, int endLine=-1, bool showLineNumbers=FALSE)
Definition: context.cpp:1266
bool generateSourceFile() const
Definition: filedef.cpp:1396
Cachable & getCache() const
Definition: context.cpp:3337
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant FileContext::Private::subHighlight ( ) const
inline

Definition at line 2976 of file context.cpp.

2977  {
2978  return TemplateVariant("");
2979  }
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant FileContext::Private::title ( ) const
inline

Definition at line 2968 of file context.cpp.

2969  {
2970  return m_fileDef->title();
2971  }
QCString title() const
Definition: filedef.cpp:1910
TemplateVariant FileContext::Private::typedefs ( ) const
inline

Definition at line 3223 of file context.cpp.

3224  {
3226  }
virtual QCString trTypedefs()=0
TemplateVariant typedefs() const
Definition: context.cpp:3223
Cachable & getCache() const
Definition: context.cpp:3337
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:3199
TemplateVariant FileContext::Private::variables ( ) const
inline

Definition at line 3239 of file context.cpp.

3240  {
3242  }
Cachable & getCache() const
Definition: context.cpp:3337
virtual QCString trVariables()=0
TemplateVariant variables() const
Definition: context.cpp:3239
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:3199
TemplateVariant FileContext::Private::version ( ) const
inline

Definition at line 3129 of file context.cpp.

3130  {
3131  return m_fileDef->fileVersion();
3132  }
QCString fileVersion() const
Definition: filedef.cpp:1915
TemplateVariant FileContext::Private::versionInfo ( ) const
inline

Definition at line 2980 of file context.cpp.

2981  {
2982  return m_fileDef->getVersion();
2983  }
QCString getVersion() const
Definition: filedef.h:113

Member Data Documentation

FileDef* FileContext::Private::m_fileDef
private

Definition at line 3313 of file context.cpp.

PropertyMapper< FileContext::Private > FileContext::Private::s_inst
staticprivate

Definition at line 3343 of file context.cpp.


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