Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ClassIndexContext::Private Class Reference

Classes

struct  Cachable
 

Public Member Functions

 Private ()
 
TemplateVariant get (const char *n) const
 
TemplateVariant list () const
 
TemplateVariant fileName () const
 
TemplateVariant relPath () const
 
TemplateVariant highlight () const
 
TemplateVariant subhighlight () const
 
TemplateVariant title () const
 

Private Attributes

Cachable m_cache
 

Static Private Attributes

static PropertyMapper< ClassIndexContext::Privates_inst
 

Detailed Description

Definition at line 5728 of file context.cpp.

Constructor & Destructor Documentation

ClassIndexContext::Private::Private ( )
inline

Definition at line 5731 of file context.cpp.

5732  {
5733  static bool init=FALSE;
5734  if (!init)
5735  {
5736  s_inst.addProperty("list", &Private::list);
5737  s_inst.addProperty("fileName", &Private::fileName);
5738  s_inst.addProperty("relPath", &Private::relPath);
5739  s_inst.addProperty("highlight", &Private::highlight);
5740  s_inst.addProperty("subhighlight",&Private::subhighlight);
5741  s_inst.addProperty("title", &Private::title);
5742  init=TRUE;
5743  }
5744  }
static PropertyMapper< ClassIndexContext::Private > s_inst
Definition: context.cpp:5816
TemplateVariant list() const
Definition: context.cpp:5749
const bool FALSE
Definition: qglobal.h:370
init
Definition: train.py:42
TemplateVariant subhighlight() const
Definition: context.cpp:5789
TemplateVariant title() const
Definition: context.cpp:5793
TemplateVariant highlight() const
Definition: context.cpp:5785
TemplateVariant fileName() const
Definition: context.cpp:5777
const bool TRUE
Definition: qglobal.h:371
TemplateVariant relPath() const
Definition: context.cpp:5781

Member Function Documentation

TemplateVariant ClassIndexContext::Private::fileName ( ) const
inline

Definition at line 5777 of file context.cpp.

5778  {
5779  return "classes";
5780  }
TemplateVariant ClassIndexContext::Private::get ( const char *  n) const
inline

Definition at line 5745 of file context.cpp.

5746  {
5747  return s_inst.get(this,n);
5748  }
static PropertyMapper< ClassIndexContext::Private > s_inst
Definition: context.cpp:5816
std::void_t< T > n
TemplateVariant ClassIndexContext::Private::highlight ( ) const
inline

Definition at line 5785 of file context.cpp.

5786  {
5787  return "classes";
5788  }
TemplateVariant ClassIndexContext::Private::list ( ) const
inline

Definition at line 5749 of file context.cpp.

5750  {
5751  if (!m_cache.classes)
5752  {
5753  TemplateList *classList = TemplateList::alloc();
5754  if (Doxygen::classSDict)
5755  {
5757  ClassDef *cd;
5758  for (cli.toFirst() ; (cd=cli.current()) ; ++cli )
5759  {
5760  if (cd->getLanguage()==SrcLangExt_VHDL &&
5763  ) // no architecture
5764  {
5765  continue;
5766  }
5767  if (cd->isLinkableInProject() && cd->templateMaster()==0)
5768  {
5769  classList->append(ClassContext::alloc(cd));
5770  }
5771  }
5772  }
5773  m_cache.classes.reset(classList);
5774  }
5775  return m_cache.classes.get();
5776  }
bool isLinkableInProject() const
Definition: classdef.cpp:2707
static TemplateList * alloc()
Definition: template.cpp:420
SharedPtr< TemplateList > classes
Definition: context.cpp:5813
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
Protection protection() const
Definition: classdef.cpp:4414
ClassDef * templateMaster() const
Definition: classdef.cpp:4439
def cli(ctx)
Definition: main.py:7
SrcLangExt getLanguage() const
void reset(T *p=0)
Definition: context.cpp:113
T * get() const
Definition: context.cpp:111
friend class Iterator
Definition: sortdict.h:289
static ClassSDict * classSDict
Definition: doxygen.h:99
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant ClassIndexContext::Private::relPath ( ) const
inline

Definition at line 5781 of file context.cpp.

5782  {
5783  return "";
5784  }
TemplateVariant ClassIndexContext::Private::subhighlight ( ) const
inline

Definition at line 5789 of file context.cpp.

5790  {
5791  return "classindex";
5792  }
TemplateVariant ClassIndexContext::Private::title ( ) const
inline

Definition at line 5793 of file context.cpp.

5794  {
5795  static bool fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN");
5796  static bool vhdlOpt = Config_getBool("OPTIMIZE_OUTPUT_VHDL");
5797  if (fortranOpt)
5798  {
5799  return theTranslator->trDataTypes();
5800  }
5801  else if (vhdlOpt)
5802  {
5803  return VhdlDocGen::trDesignUnits();
5804  }
5805  else
5806  {
5807  return theTranslator->trCompoundIndex();
5808  }
5809  }
virtual QCString trCompoundIndex()=0
static QCString trDesignUnits()
virtual QCString trDataTypes()=0
#define Config_getBool(val)
Definition: config.cpp:664
Translator * theTranslator
Definition: language.cpp:157

Member Data Documentation

Cachable ClassIndexContext::Private::m_cache
mutableprivate

Definition at line 5815 of file context.cpp.

PropertyMapper< ClassIndexContext::Private > ClassIndexContext::Private::s_inst
staticprivate

Definition at line 5816 of file context.cpp.


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