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

Classes

struct  Cachable
 

Public Member Functions

 Private (GroupDef *gd)
 
virtual ~Private ()
 
TemplateVariant get (const char *n) const
 
TemplateVariant title () const
 
TemplateVariant highlight () const
 
TemplateVariant subHighlight () const
 
DotGroupCollaborationgetGroupGraph () const
 
TemplateVariant hasGroupGraph () const
 
TemplateVariant groupGraph () const
 
TemplateVariant hasDetails () const
 
TemplateVariant modules () const
 
TemplateVariant examples () const
 
TemplateVariant pages () const
 
TemplateVariant dirs () const
 
TemplateVariant files () 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 enumValues () const
 
TemplateVariant functions () const
 
TemplateVariant variables () const
 
TemplateVariant signals () const
 
TemplateVariant publicSlots () const
 
TemplateVariant protectedSlots () const
 
TemplateVariant privateSlots () const
 
TemplateVariant events () const
 
TemplateVariant properties () const
 
TemplateVariant friends () const
 
TemplateVariant memberGroups () const
 
TemplateVariant detailedMacros () const
 
TemplateVariant detailedTypedefs () const
 
TemplateVariant detailedEnums () const
 
TemplateVariant detailedEnumValues () const
 
TemplateVariant detailedFunctions () const
 
TemplateVariant detailedVariables () const
 
TemplateVariant detailedSignals () const
 
TemplateVariant detailedPublicSlots () const
 
TemplateVariant detailedProtectedSlots () const
 
TemplateVariant detailedPrivateSlots () const
 
TemplateVariant detailedEvents () const
 
TemplateVariant detailedProperties () const
 
TemplateVariant detailedFriends () const
 
TemplateVariant inlineClasses () const
 
TemplateVariant compoundType () const
 
- Public Member Functions inherited from DefinitionContext< ModuleContext::Private >
 DefinitionContext (Definition *d)
 
void addBaseProperties (PropertyMapper< ModuleContext::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

GroupDefm_groupDef
 

Static Private Attributes

static PropertyMapper< ModuleContext::Privates_inst
 

Detailed Description

Definition at line 5119 of file context.cpp.

Constructor & Destructor Documentation

ModuleContext::Private::Private ( GroupDef gd)
inline

Definition at line 5122 of file context.cpp.

5123  {
5124  static bool init=FALSE;
5125  if (!init)
5126  {
5128  s_inst.addProperty("title", &Private::title);
5129  s_inst.addProperty("highlight", &Private::highlight);
5130  s_inst.addProperty("subhighlight", &Private::subHighlight);
5131  s_inst.addProperty("hasGroupGraph", &Private::hasGroupGraph);
5132  s_inst.addProperty("groupGraph", &Private::groupGraph);
5133  s_inst.addProperty("hasDetails", &Private::hasDetails);
5134  s_inst.addProperty("modules", &Private::modules);
5135  s_inst.addProperty("dirs", &Private::dirs);
5136  s_inst.addProperty("files", &Private::files);
5137  s_inst.addProperty("namespaces", &Private::namespaces);
5138  s_inst.addProperty("classes", &Private::classes);
5139  s_inst.addProperty("constantgroups", &Private::constantgroups);
5140  s_inst.addProperty("examples", &Private::examples);
5141  s_inst.addProperty("macros", &Private::macros);
5142  s_inst.addProperty("typedefs", &Private::typedefs);
5143  s_inst.addProperty("enums", &Private::enums);
5144  s_inst.addProperty("enumvalues", &Private::enumValues);
5145  s_inst.addProperty("functions", &Private::functions);
5146  s_inst.addProperty("variables", &Private::variables);
5147  s_inst.addProperty("signals", &Private::signals);
5148  s_inst.addProperty("publicSlots", &Private::publicSlots);
5149  s_inst.addProperty("protectedSlots", &Private::protectedSlots);
5150  s_inst.addProperty("privateSlots", &Private::privateSlots);
5151  s_inst.addProperty("events", &Private::events);
5152  s_inst.addProperty("properties", &Private::properties);
5153  s_inst.addProperty("friends", &Private::friends);
5154  s_inst.addProperty("memberGroups", &Private::memberGroups);
5155  s_inst.addProperty("detailedMacros", &Private::detailedMacros);
5156  s_inst.addProperty("detailedTypedefs", &Private::detailedTypedefs);
5157  s_inst.addProperty("detailedEnums", &Private::detailedEnums);
5158  s_inst.addProperty("detailedEnumValues", &Private::detailedEnumValues);
5159  s_inst.addProperty("detailedFunctions", &Private::detailedFunctions);
5160  s_inst.addProperty("detailedVariables", &Private::detailedVariables);
5161  s_inst.addProperty("detailedSignals", &Private::detailedSignals);
5162  s_inst.addProperty("detailedPublicSlots", &Private::detailedPublicSlots);
5163  s_inst.addProperty("detailedProtectedSlots", &Private::detailedProtectedSlots);
5164  s_inst.addProperty("detailedPrivateSlots", &Private::detailedPrivateSlots);
5165  s_inst.addProperty("detailedEvents", &Private::detailedEvents);
5166  s_inst.addProperty("detailedProperties", &Private::detailedProperties);
5167  s_inst.addProperty("detailedFriends", &Private::detailedFriends);
5168  s_inst.addProperty("inlineClasses", &Private::inlineClasses);
5169  s_inst.addProperty("compoundType", &Private::compoundType);
5170  init=TRUE;
5171  }
5172  if (!gd->cookie()) { gd->setCookie(new ModuleContext::Private::Cachable(gd)); }
5173  }
Cookie * cookie() const
Definition: definition.h:352
TemplateVariant publicSlots() const
Definition: context.cpp:5475
TemplateVariant detailedProperties() const
Definition: context.cpp:5562
TemplateVariant detailedFriends() const
Definition: context.cpp:5566
TemplateVariant properties() const
Definition: context.cpp:5491
TemplateVariant detailedPublicSlots() const
Definition: context.cpp:5546
TemplateVariant privateSlots() const
Definition: context.cpp:5483
TemplateVariant detailedProtectedSlots() const
Definition: context.cpp:5550
TemplateVariant macros() const
Definition: context.cpp:5443
const bool FALSE
Definition: qglobal.h:370
TemplateVariant detailedFunctions() const
Definition: context.cpp:5531
TemplateVariant detailedPrivateSlots() const
Definition: context.cpp:5554
init
Definition: train.py:42
TemplateVariant detailedMacros() const
Definition: context.cpp:5515
TemplateVariant highlight() const
Definition: context.cpp:5183
TemplateVariant detailedTypedefs() const
Definition: context.cpp:5519
TemplateVariant events() const
Definition: context.cpp:5487
void setCookie(Cookie *cookie)
Definition: definition.h:351
void addBaseProperties(PropertyMapper< ModuleContext::Private > &inst)
Definition: context.cpp:1364
TemplateVariant detailedEnumValues() const
Definition: context.cpp:5527
TemplateVariant compoundType() const
Definition: context.cpp:5595
TemplateVariant dirs() const
Definition: context.cpp:5318
TemplateVariant classes() const
Definition: context.cpp:5356
TemplateVariant inlineClasses() const
Definition: context.cpp:5570
TemplateVariant enums() const
Definition: context.cpp:5451
TemplateVariant friends() const
Definition: context.cpp:5495
TemplateVariant files() const
Definition: context.cpp:5337
TemplateVariant constantgroups() const
Definition: context.cpp:5400
TemplateVariant detailedSignals() const
Definition: context.cpp:5542
TemplateVariant variables() const
Definition: context.cpp:5467
TemplateVariant hasDetails() const
Definition: context.cpp:5254
TemplateVariant groupGraph() const
Definition: context.cpp:5212
TemplateVariant detailedVariables() const
Definition: context.cpp:5538
static PropertyMapper< ModuleContext::Private > s_inst
Definition: context.cpp:5648
TemplateVariant hasGroupGraph() const
Definition: context.cpp:5200
TemplateVariant namespaces() const
Definition: context.cpp:5378
TemplateVariant typedefs() const
Definition: context.cpp:5447
TemplateVariant subHighlight() const
Definition: context.cpp:5187
TemplateVariant examples() const
Definition: context.cpp:5280
TemplateVariant detailedEnums() const
Definition: context.cpp:5523
TemplateVariant detailedEvents() const
Definition: context.cpp:5558
TemplateVariant signals() const
Definition: context.cpp:5471
TemplateVariant modules() const
Definition: context.cpp:5258
TemplateVariant memberGroups() const
Definition: context.cpp:5499
TemplateVariant enumValues() const
Definition: context.cpp:5455
TemplateVariant title() const
Definition: context.cpp:5179
const bool TRUE
Definition: qglobal.h:371
TemplateVariant protectedSlots() const
Definition: context.cpp:5479
TemplateVariant functions() const
Definition: context.cpp:5459
virtual ModuleContext::Private::~Private ( )
inlinevirtual

Definition at line 5174 of file context.cpp.

5174 {}

Member Function Documentation

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

Definition at line 5356 of file context.cpp.

5357  {
5358  Cachable &cache = getCache();
5359  if (!cache.classes)
5360  {
5361  TemplateList *classList = TemplateList::alloc();
5362  if (m_groupDef->getClasses())
5363  {
5365  ClassDef *cd;
5366  for (sdi.toFirst();(cd=sdi.current());++sdi)
5367  {
5368  if (cd->visibleInParentsDeclList())
5369  {
5370  classList->append(ClassContext::alloc(cd));
5371  }
5372  }
5373  }
5374  cache.classes.reset(classList);
5375  }
5376  return cache.classes.get();
5377  }
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
ClassSDict * getClasses() const
Definition: groupdef.h:101
friend class Iterator
Definition: sortdict.h:289
Cachable & getCache() const
Definition: context.cpp:5642
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant ModuleContext::Private::compoundType ( ) const
inline

Definition at line 5595 of file context.cpp.

5596  {
5597  return "module"; //theTranslator->trGroup(FALSE,TRUE);
5598  }
TemplateVariant ModuleContext::Private::constantgroups ( ) const
inline

Definition at line 5400 of file context.cpp.

5401  {
5402  Cachable &cache = getCache();
5403  if (!cache.constantgroups)
5404  {
5405  TemplateList *namespaceList = TemplateList::alloc();
5406  if (m_groupDef->getNamespaces())
5407  {
5409  NamespaceDef *nd;
5410  for (sdi.toFirst();(nd=sdi.current());++sdi)
5411  {
5412  if (nd->isLinkable() && nd->isConstantGroup())
5413  {
5414  namespaceList->append(NamespaceContext::alloc(nd));
5415  }
5416  }
5417  }
5418  cache.constantgroups.reset(namespaceList);
5419  }
5420  return cache.constantgroups.get();
5421  }
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
NamespaceSDict * getNamespaces() const
Definition: groupdef.h:102
friend class Iterator
Definition: sortdict.h:289
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::detailedEnums ( ) const
inline

Definition at line 5523 of file context.cpp.

5524  {
5526  }
virtual QCString trEnumerationTypeDocumentation()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant detailedEnums() const
Definition: context.cpp:5523
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::detailedEnumValues ( ) const
inline

Definition at line 5527 of file context.cpp.

5528  {
5530  }
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
TemplateVariant detailedEnumValues() const
Definition: context.cpp:5527
virtual QCString trEnumerationValueDocumentation()=0
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::detailedEvents ( ) const
inline

Definition at line 5558 of file context.cpp.

5559  {
5561  }
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
virtual QCString trEventDocumentation()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant detailedEvents() const
Definition: context.cpp:5558
Cachable & getCache() const
Definition: context.cpp:5642
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ModuleContext::Private::detailedFriends ( ) const
inline

Definition at line 5566 of file context.cpp.

5567  {
5569  }
TemplateVariant detailedFriends() const
Definition: context.cpp:5566
virtual QCString trFriends()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ModuleContext::Private::detailedFunctions ( ) const
inline

Definition at line 5531 of file context.cpp.

5532  {
5534  SrcLangExt lang = m_groupDef->getLanguage();
5537  }
TemplateVariant detailedFunctions() const
Definition: context.cpp:5531
SrcLangExt
Definition: types.h:41
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
SrcLangExt getLanguage() const
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trSubprogramDocumentation()=0
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant title() const
Definition: context.cpp:5179
virtual QCString trFunctionDocumentation()=0
TemplateVariant ModuleContext::Private::detailedMacros ( ) const
inline

Definition at line 5515 of file context.cpp.

5516  {
5518  }
TemplateVariant detailedMacros() const
Definition: context.cpp:5515
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
virtual QCString trDefineDocumentation()=0
TemplateVariant ModuleContext::Private::detailedPrivateSlots ( ) const
inline

Definition at line 5554 of file context.cpp.

5555  {
5557  }
TemplateVariant detailedPrivateSlots() const
Definition: context.cpp:5554
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
virtual QCString trPrivateSlots()=0
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::detailedProperties ( ) const
inline

Definition at line 5562 of file context.cpp.

5563  {
5565  }
TemplateVariant detailedProperties() const
Definition: context.cpp:5562
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
virtual QCString trPropertyDocumentation()=0
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ModuleContext::Private::detailedProtectedSlots ( ) const
inline

Definition at line 5550 of file context.cpp.

5551  {
5553  }
TemplateVariant detailedProtectedSlots() const
Definition: context.cpp:5550
virtual QCString trProtectedSlots()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::detailedPublicSlots ( ) const
inline

Definition at line 5546 of file context.cpp.

5547  {
5549  }
TemplateVariant detailedPublicSlots() const
Definition: context.cpp:5546
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
virtual QCString trPublicSlots()=0
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::detailedSignals ( ) const
inline

Definition at line 5542 of file context.cpp.

5543  {
5545  }
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
virtual QCString trSignals()=0
TemplateVariant detailedSignals() const
Definition: context.cpp:5542
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::detailedTypedefs ( ) const
inline

Definition at line 5519 of file context.cpp.

5520  {
5522  }
TemplateVariant detailedTypedefs() const
Definition: context.cpp:5519
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
virtual QCString trTypedefDocumentation()=0
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::detailedVariables ( ) const
inline

Definition at line 5538 of file context.cpp.

5539  {
5541  }
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
TemplateVariant detailedVariables() const
Definition: context.cpp:5538
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
virtual QCString trVariableDocumentation()=0
TemplateVariant ModuleContext::Private::dirs ( ) const
inline

Definition at line 5318 of file context.cpp.

5319  {
5320  Cachable &cache = getCache();
5321  if (!cache.dirs)
5322  {
5323  TemplateList *dirList = TemplateList::alloc();
5324  if (m_groupDef->getDirs())
5325  {
5327  DirDef *dd;
5328  for (it.toFirst();(dd=it.current());++it)
5329  {
5330  dirList->append(DirContext::alloc(dd));
5331  }
5332  }
5333  cache.dirs.reset(dirList);
5334  }
5335  return cache.dirs.get();
5336  }
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
static DirContext * alloc(DirDef *dd)
Definition: context.h:312
Definition: dirdef.h:44
type * current() const
Definition: qlist.h:146
Cachable & getCache() const
Definition: context.cpp:5642
DirList * getDirs() const
Definition: groupdef.h:105
TemplateVariant ModuleContext::Private::enums ( ) const
inline

Definition at line 5451 of file context.cpp.

5452  {
5454  }
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
TemplateVariant enums() const
Definition: context.cpp:5451
virtual QCString trEnumerations()=0
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::enumValues ( ) const
inline

Definition at line 5455 of file context.cpp.

5456  {
5458  }
virtual QCString trEnumerationValues()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
TemplateVariant enums() const
Definition: context.cpp:5451
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::events ( ) const
inline

Definition at line 5487 of file context.cpp.

5488  {
5490  }
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
TemplateVariant events() const
Definition: context.cpp:5487
virtual QCString trEvents()=0
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::examples ( ) const
inline

Definition at line 5280 of file context.cpp.

5281  {
5282  Cachable &cache = getCache();
5283  if (!cache.examples)
5284  {
5285  TemplateList *exampleList = TemplateList::alloc();
5286  if (m_groupDef->getExamples())
5287  {
5289  PageDef *ex;
5290  for (eli.toFirst();(ex=eli.current());++eli)
5291  {
5292  exampleList->append(PageContext::alloc(ex,FALSE,TRUE));
5293  }
5294  }
5295  cache.examples.reset(exampleList);
5296  }
5297  return cache.examples.get();
5298  }
static TemplateList * alloc()
Definition: template.cpp:420
static PageContext * alloc(PageDef *pd, bool isMainPage, bool isExample)
Definition: context.h:332
const bool FALSE
Definition: qglobal.h:370
Default implementation of a context value of type list.
Definition: template.h:376
PageSDict * getExamples() const
Definition: groupdef.h:106
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
A model of a page symbol.
Definition: pagedef.h:29
friend class Iterator
Definition: sortdict.h:289
Cachable & getCache() const
Definition: context.cpp:5642
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ModuleContext::Private::files ( ) const
inline

Definition at line 5337 of file context.cpp.

5338  {
5339  Cachable &cache = getCache();
5340  if (!cache.files)
5341  {
5342  TemplateList *fileList = TemplateList::alloc();
5343  if (m_groupDef->getFiles())
5344  {
5346  FileDef *fd;
5347  for (it.toFirst();(fd=it.current());++it)
5348  {
5349  fileList->append(FileContext::alloc(fd));
5350  }
5351  }
5352  cache.files.reset(fileList);
5353  }
5354  return cache.files.get();
5355  }
static TemplateList * alloc()
Definition: template.cpp:420
static FileContext * alloc(FileDef *fd)
Definition: context.h:294
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
type * current() const
Definition: qlist.h:146
FileList * getFiles() const
Definition: groupdef.h:100
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::friends ( ) const
inline

Definition at line 5495 of file context.cpp.

5496  {
5498  }
virtual QCString trFriends()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
TemplateVariant friends() const
Definition: context.cpp:5495
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::functions ( ) const
inline

Definition at line 5459 of file context.cpp.

5460  {
5462  SrcLangExt lang = m_groupDef->getLanguage();
5463  if (lang==SrcLangExt_Fortran) title=theTranslator->trSubprograms();
5464  else if (lang==SrcLangExt_VHDL) title=VhdlDocGen::trFunctionAndProc();
5466  }
virtual QCString trSubprograms()=0
static QCString trFunctionAndProc()
SrcLangExt
Definition: types.h:41
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
SrcLangExt getLanguage() const
virtual QCString trFunctions()=0
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant title() const
Definition: context.cpp:5179
TemplateVariant functions() const
Definition: context.cpp:5459
TemplateVariant ModuleContext::Private::get ( const char *  n) const
inline

Definition at line 5175 of file context.cpp.

5176  {
5177  return s_inst.get(this,n);
5178  }
std::void_t< T > n
static PropertyMapper< ModuleContext::Private > s_inst
Definition: context.cpp:5648
Cachable& ModuleContext::Private::getCache ( ) const
inlineprivate

Definition at line 5642 of file context.cpp.

5643  {
5644  Cachable *c = static_cast<Cachable*>(m_groupDef->cookie());
5645  assert(c!=0);
5646  return *c;
5647  }
Cookie * cookie() const
Definition: definition.h:352
DotGroupCollaboration* ModuleContext::Private::getGroupGraph ( ) const
inline

Definition at line 5191 of file context.cpp.

5192  {
5193  Cachable &cache = getCache();
5194  if (!cache.groupGraph)
5195  {
5196  cache.groupGraph.reset(new DotGroupCollaboration(m_groupDef));
5197  }
5198  return cache.groupGraph.get();
5199  }
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::getMemberList ( SharedPtr< MemberListInfoContext > &  list,
MemberListType  type,
const char *  title,
bool  detailed = FALSE 
) const
inline

Definition at line 5423 of file context.cpp.

5425  {
5426  if (!list)
5427  {
5429  if (ml)
5430  {
5432  }
5433  }
5434  if (list)
5435  {
5436  return list.get();
5437  }
5438  else
5439  {
5440  return TemplateVariant(FALSE);
5441  }
5442  }
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
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
MemberList * getMemberList(MemberListType lt) const
Definition: groupdef.cpp:1593
T * get() const
Definition: context.cpp:111
TemplateVariant title() const
Definition: context.cpp:5179
TemplateVariant ModuleContext::Private::groupGraph ( ) const
inline

Definition at line 5212 of file context.cpp.

5213  {
5214  QGString result;
5215  static bool haveDot = Config_getBool("HAVE_DOT");
5216  static bool groupGraphs = Config_getBool("GROUP_GRAPHS");
5217  if (haveDot && groupGraphs)
5218  {
5220  FTextStream t(&result);
5221  switch (g_globals.outputFormat)
5222  {
5224  {
5225  graph->writeGraph(t,GOF_BITMAP,
5226  EOF_Html,
5229  relPathAsString(),
5230  TRUE,
5232  }
5233  break;
5235  {
5236  graph->writeGraph(t,GOF_EPS,
5237  EOF_LaTeX,
5240  relPathAsString(),
5241  TRUE,
5243  }
5244  break;
5245  // TODO: support other generators
5246  default:
5247  err("context.cpp: output format not yet supported");
5248  break;
5249  }
5251  }
5252  return TemplateVariant(result.data(),TRUE);
5253  }
char * data() const
Definition: qgstring.h:42
static QCString result
int dynSectionId
Definition: context.cpp:69
static QCString htmlFileExtension
Definition: doxygen.h:130
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:4519
def graph(desc, maker=maker)
Definition: apa.py:294
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
ContextOutputFormat outputFormat
Definition: context.cpp:71
struct ContextGlobals g_globals
char portable_pathSeparator()
Definition: portable.cpp:355
QCString getOutputFileBase() const
Definition: groupdef.cpp:1512
Definition: dot.h:42
DotGroupCollaboration * getGroupGraph() const
Definition: context.cpp:5191
Definition: dot.h:43
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ModuleContext::Private::hasDetails ( ) const
inline

Definition at line 5254 of file context.cpp.

5255  {
5257  }
bool hasDetailedDescription() const
Definition: groupdef.cpp:1660
TemplateVariant ModuleContext::Private::hasGroupGraph ( ) const
inline

Definition at line 5200 of file context.cpp.

5201  {
5202  bool result=FALSE;
5203  static bool haveDot = Config_getBool("HAVE_DOT");
5204  static bool groupGraphs = Config_getBool("GROUP_GRAPHS");
5205  if (haveDot && groupGraphs)
5206  {
5208  result = !graph->isTrivial();
5209  }
5210  return result;
5211  }
static QCString result
const bool FALSE
Definition: qglobal.h:370
def graph(desc, maker=maker)
Definition: apa.py:294
bool isTrivial() const
Definition: dot.cpp:4740
#define Config_getBool(val)
Definition: config.cpp:664
DotGroupCollaboration * getGroupGraph() const
Definition: context.cpp:5191
TemplateVariant ModuleContext::Private::highlight ( ) const
inline

Definition at line 5183 of file context.cpp.

5184  {
5185  return TemplateVariant("modules");
5186  }
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant ModuleContext::Private::inlineClasses ( ) const
inline

Definition at line 5570 of file context.cpp.

5571  {
5572  Cachable &cache = getCache();
5573  if (!cache.inlineClasses)
5574  {
5575  TemplateList *classList = TemplateList::alloc();
5576  if (m_groupDef->getClasses())
5577  {
5579  ClassDef *cd;
5580  for (sdi.toFirst();(cd=sdi.current());++sdi)
5581  {
5582  if (cd->name().find('@')==-1 &&
5583  cd->isLinkableInProject() &&
5584  cd->isEmbeddedInOuterScope() &&
5585  cd->partOfGroups()==0)
5586  {
5587  classList->append(ClassContext::alloc(cd));
5588  }
5589  }
5590  }
5591  cache.inlineClasses.reset(classList);
5592  }
5593  return cache.inlineClasses.get();
5594  }
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
ClassSDict * getClasses() const
Definition: groupdef.h:101
friend class Iterator
Definition: sortdict.h:289
Cachable & getCache() const
Definition: context.cpp:5642
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant ModuleContext::Private::macros ( ) const
inline

Definition at line 5443 of file context.cpp.

5444  {
5446  }
TemplateVariant macros() const
Definition: context.cpp:5443
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
virtual QCString trDefines()=0
TemplateVariant ModuleContext::Private::memberGroups ( ) const
inline

Definition at line 5499 of file context.cpp.

5500  {
5501  Cachable &cache = getCache();
5502  if (!cache.memberGroups)
5503  {
5505  {
5507  }
5508  else
5509  {
5510  cache.memberGroups.reset(MemberGroupListContext::alloc());
5511  }
5512  }
5513  return cache.memberGroups.get();
5514  }
MemberGroupSDict * getMemberGroupSDict() const
Definition: groupdef.h:98
bool subGrouping() const
Definition: groupdef.h:84
static MemberGroupListContext * alloc()
Definition: context.h:1002
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::modules ( ) const
inline

Definition at line 5258 of file context.cpp.

5259  {
5260  Cachable &cache = getCache();
5261  if (!cache.modules)
5262  {
5263  TemplateList *moduleList = TemplateList::alloc();
5264  if (m_groupDef->getSubGroups())
5265  {
5267  GroupDef *gd;
5268  for (gli.toFirst();(gd=gli.current());++gli)
5269  {
5270  if (gd->isVisible())
5271  {
5272  moduleList->append(ModuleContext::alloc(gd));
5273  }
5274  }
5275  }
5276  cache.modules.reset(moduleList);
5277  }
5278  return cache.modules.get();
5279  }
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
GroupList * getSubGroups() const
Definition: groupdef.h:103
static ModuleContext * alloc(GroupDef *gd)
Definition: context.h:371
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::namespaces ( ) const
inline

Definition at line 5378 of file context.cpp.

5379  {
5380  Cachable &cache = getCache();
5381  if (!cache.namespaces)
5382  {
5383  TemplateList *namespaceList = TemplateList::alloc();
5384  if (m_groupDef->getNamespaces())
5385  {
5387  NamespaceDef *nd;
5388  for (sdi.toFirst();(nd=sdi.current());++sdi)
5389  {
5390  if (nd->isLinkable() && !nd->isConstantGroup())
5391  {
5392  namespaceList->append(NamespaceContext::alloc(nd));
5393  }
5394  }
5395  }
5396  cache.namespaces.reset(namespaceList);
5397  }
5398  return cache.namespaces.get();
5399  }
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
NamespaceSDict * getNamespaces() const
Definition: groupdef.h:102
friend class Iterator
Definition: sortdict.h:289
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::pages ( ) const
inline

Definition at line 5299 of file context.cpp.

5300  {
5301  Cachable &cache = getCache();
5302  if (!cache.pages)
5303  {
5304  TemplateList *pageList = TemplateList::alloc();
5305  if (m_groupDef->getExamples())
5306  {
5308  PageDef *ex;
5309  for (eli.toFirst();(ex=eli.current());++eli)
5310  {
5311  pageList->append(PageContext::alloc(ex,FALSE,TRUE));
5312  }
5313  }
5314  cache.pages.reset(pageList);
5315  }
5316  return cache.pages.get();
5317  }
static TemplateList * alloc()
Definition: template.cpp:420
static PageContext * alloc(PageDef *pd, bool isMainPage, bool isExample)
Definition: context.h:332
const bool FALSE
Definition: qglobal.h:370
Default implementation of a context value of type list.
Definition: template.h:376
PageSDict * getExamples() const
Definition: groupdef.h:106
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
PageSDict * getPages() const
Definition: groupdef.h:104
A model of a page symbol.
Definition: pagedef.h:29
friend class Iterator
Definition: sortdict.h:289
Cachable & getCache() const
Definition: context.cpp:5642
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ModuleContext::Private::privateSlots ( ) const
inline

Definition at line 5483 of file context.cpp.

5484  {
5486  }
TemplateVariant privateSlots() const
Definition: context.cpp:5483
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
virtual QCString trPrivateSlots()=0
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::properties ( ) const
inline

Definition at line 5491 of file context.cpp.

5492  {
5494  }
TemplateVariant properties() const
Definition: context.cpp:5491
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trProperties()=0
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::protectedSlots ( ) const
inline

Definition at line 5479 of file context.cpp.

5480  {
5482  }
virtual QCString trProtectedSlots()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant protectedSlots() const
Definition: context.cpp:5479
TemplateVariant ModuleContext::Private::publicSlots ( ) const
inline

Definition at line 5475 of file context.cpp.

5476  {
5478  }
TemplateVariant publicSlots() const
Definition: context.cpp:5475
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
virtual QCString trPublicSlots()=0
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::signals ( ) const
inline

Definition at line 5471 of file context.cpp.

5472  {
5474  }
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
virtual QCString trSignals()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant signals() const
Definition: context.cpp:5471
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::subHighlight ( ) const
inline

Definition at line 5187 of file context.cpp.

5188  {
5189  return TemplateVariant("");
5190  }
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant ModuleContext::Private::title ( ) const
inline

Definition at line 5179 of file context.cpp.

5180  {
5182  }
const char * groupTitle() const
Definition: groupdef.h:54
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant ModuleContext::Private::typedefs ( ) const
inline

Definition at line 5447 of file context.cpp.

5448  {
5450  }
virtual QCString trTypedefs()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
TemplateVariant typedefs() const
Definition: context.cpp:5447
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642
TemplateVariant ModuleContext::Private::variables ( ) const
inline

Definition at line 5467 of file context.cpp.

5468  {
5470  }
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:5423
virtual QCString trVariables()=0
TemplateVariant variables() const
Definition: context.cpp:5467
Translator * theTranslator
Definition: language.cpp:157
Cachable & getCache() const
Definition: context.cpp:5642

Member Data Documentation

GroupDef* ModuleContext::Private::m_groupDef
private

Definition at line 5600 of file context.cpp.

PropertyMapper< ModuleContext::Private > ModuleContext::Private::s_inst
staticprivate

Definition at line 5648 of file context.cpp.


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