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

Classes

struct  Cachable
 

Public Member Functions

 Private ()
 
TemplateVariant get (const char *n) const
 
TemplateVariant tree () const
 
TemplateVariant fileName () const
 
TemplateVariant relPath () const
 
TemplateVariant highlight () const
 
TemplateVariant subhighlight () const
 
TemplateVariant title () const
 
TemplateVariant maxDepth () const
 
TemplateVariant preferredDepth () const
 

Private Attributes

SharedPtr< NestingContextm_namespaceTree
 
Cachable m_cache
 

Static Private Attributes

static PropertyMapper< NamespaceTreeContext::Privates_inst
 

Detailed Description

Definition at line 6864 of file context.cpp.

Constructor & Destructor Documentation

NamespaceTreeContext::Private::Private ( )
inline

Definition at line 6867 of file context.cpp.

6868  {
6871  {
6873  }
6874  //%% Nesting tree
6875  static bool init=FALSE;
6876  if (!init)
6877  {
6878  s_inst.addProperty("tree", &Private::tree);
6879  s_inst.addProperty("fileName", &Private::fileName);
6880  s_inst.addProperty("relPath", &Private::relPath);
6881  s_inst.addProperty("highlight", &Private::highlight);
6882  s_inst.addProperty("subhighlight", &Private::subhighlight);
6883  s_inst.addProperty("title", &Private::title);
6884  s_inst.addProperty("preferredDepth",&Private::preferredDepth);
6885  s_inst.addProperty("maxDepth", &Private::maxDepth);
6886  init=TRUE;
6887  }
6888  }
TemplateVariant tree() const
Definition: context.cpp:6893
TemplateVariant title() const
Definition: context.cpp:6913
TemplateVariant subhighlight() const
Definition: context.cpp:6909
void addNamespaces(const NamespaceSDict &nsDict, bool rootOnly, bool addClasses)
Definition: context.cpp:6638
static NestingContext * alloc(const NestingNodeContext *parent, int level)
Definition: context.h:536
TemplateVariant relPath() const
Definition: context.cpp:6901
TemplateVariant fileName() const
Definition: context.cpp:6897
const bool FALSE
Definition: qglobal.h:370
init
Definition: train.py:42
TemplateVariant maxDepth() const
Definition: context.cpp:6931
static NamespaceSDict * namespaceSDict
Definition: doxygen.h:120
SharedPtr< NestingContext > m_namespaceTree
Definition: context.cpp:6950
TemplateVariant preferredDepth() const
Definition: context.cpp:6940
static PropertyMapper< NamespaceTreeContext::Private > s_inst
Definition: context.cpp:6960
TemplateVariant highlight() const
Definition: context.cpp:6905
void reset(T *p=0)
Definition: context.cpp:113
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

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

Definition at line 6897 of file context.cpp.

6898  {
6899  return "namespaces";
6900  }
TemplateVariant NamespaceTreeContext::Private::get ( const char *  n) const
inline

Definition at line 6889 of file context.cpp.

6890  {
6891  return s_inst.get(this,n);
6892  }
static PropertyMapper< NamespaceTreeContext::Private > s_inst
Definition: context.cpp:6960
std::void_t< T > n
TemplateVariant NamespaceTreeContext::Private::highlight ( ) const
inline

Definition at line 6905 of file context.cpp.

6906  {
6907  return "namespaces";
6908  }
TemplateVariant NamespaceTreeContext::Private::maxDepth ( ) const
inline

Definition at line 6931 of file context.cpp.

6932  {
6934  {
6937  }
6938  return m_cache.maxDepth;
6939  }
static int computeMaxDepth(const TemplateListIntf *list)
Definition: context.cpp:5840
SharedPtr< NestingContext > m_namespaceTree
Definition: context.cpp:6950
T * get() const
Definition: context.cpp:111
const bool TRUE
Definition: qglobal.h:371
TemplateVariant NamespaceTreeContext::Private::preferredDepth ( ) const
inline

Definition at line 6940 of file context.cpp.

6941  {
6943  {
6946  }
6947  return m_cache.preferredDepth;
6948  }
TemplateVariant maxDepth() const
Definition: context.cpp:6931
int toInt() const
Definition: template.cpp:222
SharedPtr< NestingContext > m_namespaceTree
Definition: context.cpp:6950
T * get() const
Definition: context.cpp:111
static int computePreferredDepth(const TemplateListIntf *list, int maxDepth)
Definition: context.cpp:5880
const bool TRUE
Definition: qglobal.h:371
TemplateVariant NamespaceTreeContext::Private::relPath ( ) const
inline

Definition at line 6901 of file context.cpp.

6902  {
6903  return "";
6904  }
TemplateVariant NamespaceTreeContext::Private::subhighlight ( ) const
inline

Definition at line 6909 of file context.cpp.

6910  {
6911  return "namespacelist";
6912  }
TemplateVariant NamespaceTreeContext::Private::title ( ) const
inline

Definition at line 6913 of file context.cpp.

6914  {
6915  static bool javaOpt = Config_getBool("OPTIMIZE_OUTPUT_JAVA");
6916  static bool fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN");
6917  static bool vhdlOpt = Config_getBool("OPTIMIZE_OUTPUT_VHDL");
6918  if (javaOpt || vhdlOpt)
6919  {
6920  return theTranslator->trPackages();
6921  }
6922  else if (fortranOpt)
6923  {
6924  return theTranslator->trModulesList();
6925  }
6926  else
6927  {
6928  return theTranslator->trNamespaceList();
6929  }
6930  }
#define Config_getBool(val)
Definition: config.cpp:664
virtual QCString trPackages()=0
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trModulesList()=0
virtual QCString trNamespaceList()=0
TemplateVariant NamespaceTreeContext::Private::tree ( ) const
inline

Definition at line 6893 of file context.cpp.

6894  {
6895  return m_namespaceTree.get();
6896  }
SharedPtr< NestingContext > m_namespaceTree
Definition: context.cpp:6950
T * get() const
Definition: context.cpp:111

Member Data Documentation

Cachable NamespaceTreeContext::Private::m_cache
mutableprivate

Definition at line 6959 of file context.cpp.

SharedPtr<NestingContext> NamespaceTreeContext::Private::m_namespaceTree
private

Definition at line 6950 of file context.cpp.

PropertyMapper< NamespaceTreeContext::Private > NamespaceTreeContext::Private::s_inst
staticprivate

Definition at line 6960 of file context.cpp.


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