Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ExampleTreeContext::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_exampleTree
 
Cachable m_cache
 

Static Private Attributes

static PropertyMapper< ExampleTreeContext::Privates_inst
 

Detailed Description

Definition at line 7706 of file context.cpp.

Constructor & Destructor Documentation

ExampleTreeContext::Private::Private ( )
inline

Definition at line 7709 of file context.cpp.

7710  {
7712  // Add pages
7714  {
7716  }
7717 
7718  static bool init=FALSE;
7719  if (!init)
7720  {
7721  s_inst.addProperty("tree", &Private::tree);
7722  s_inst.addProperty("fileName", &Private::fileName);
7723  s_inst.addProperty("relPath", &Private::relPath);
7724  s_inst.addProperty("highlight", &Private::highlight);
7725  s_inst.addProperty("subhighlight", &Private::subhighlight);
7726  s_inst.addProperty("title", &Private::title);
7727  s_inst.addProperty("preferredDepth",&Private::preferredDepth);
7728  s_inst.addProperty("maxDepth", &Private::maxDepth);
7729  init=TRUE;
7730  }
7731  }
static NestingContext * alloc(const NestingNodeContext *parent, int level)
Definition: context.h:536
static PageSDict * exampleSDict
Definition: doxygen.h:101
const bool FALSE
Definition: qglobal.h:370
void addPages(const PageSDict &pages, bool rootOnly)
Definition: context.cpp:6663
TemplateVariant fileName() const
Definition: context.cpp:7740
init
Definition: train.py:42
static PropertyMapper< ExampleTreeContext::Private > s_inst
Definition: context.cpp:7789
TemplateVariant tree() const
Definition: context.cpp:7736
TemplateVariant title() const
Definition: context.cpp:7756
TemplateVariant subhighlight() const
Definition: context.cpp:7752
void reset(T *p=0)
Definition: context.cpp:113
SharedPtr< NestingContext > m_exampleTree
Definition: context.cpp:7779
TemplateVariant preferredDepth() const
Definition: context.cpp:7769
TemplateVariant relPath() const
Definition: context.cpp:7744
TemplateVariant maxDepth() const
Definition: context.cpp:7760
TemplateVariant highlight() const
Definition: context.cpp:7748
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

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

Definition at line 7740 of file context.cpp.

7741  {
7742  return "examples";
7743  }
TemplateVariant ExampleTreeContext::Private::get ( const char *  n) const
inline

Definition at line 7732 of file context.cpp.

7733  {
7734  return s_inst.get(this,n);
7735  }
static PropertyMapper< ExampleTreeContext::Private > s_inst
Definition: context.cpp:7789
std::void_t< T > n
TemplateVariant ExampleTreeContext::Private::highlight ( ) const
inline

Definition at line 7748 of file context.cpp.

7749  {
7750  return "examples";
7751  }
TemplateVariant ExampleTreeContext::Private::maxDepth ( ) const
inline

Definition at line 7760 of file context.cpp.

7761  {
7763  {
7766  }
7767  return m_cache.maxDepth;
7768  }
static int computeMaxDepth(const TemplateListIntf *list)
Definition: context.cpp:5840
SharedPtr< NestingContext > m_exampleTree
Definition: context.cpp:7779
T * get() const
Definition: context.cpp:111
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ExampleTreeContext::Private::preferredDepth ( ) const
inline

Definition at line 7769 of file context.cpp.

7770  {
7772  {
7775  }
7776  return m_cache.preferredDepth;
7777  }
int toInt() const
Definition: template.cpp:222
SharedPtr< NestingContext > m_exampleTree
Definition: context.cpp:7779
T * get() const
Definition: context.cpp:111
TemplateVariant maxDepth() const
Definition: context.cpp:7760
static int computePreferredDepth(const TemplateListIntf *list, int maxDepth)
Definition: context.cpp:5880
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ExampleTreeContext::Private::relPath ( ) const
inline

Definition at line 7744 of file context.cpp.

7745  {
7746  return "";
7747  }
TemplateVariant ExampleTreeContext::Private::subhighlight ( ) const
inline

Definition at line 7752 of file context.cpp.

7753  {
7754  return "";
7755  }
TemplateVariant ExampleTreeContext::Private::title ( ) const
inline

Definition at line 7756 of file context.cpp.

7757  {
7758  return theTranslator->trExamples();
7759  }
virtual QCString trExamples()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ExampleTreeContext::Private::tree ( ) const
inline

Definition at line 7736 of file context.cpp.

7737  {
7738  return m_exampleTree.get();
7739  }
SharedPtr< NestingContext > m_exampleTree
Definition: context.cpp:7779
T * get() const
Definition: context.cpp:111

Member Data Documentation

Cachable ExampleTreeContext::Private::m_cache
mutableprivate

Definition at line 7788 of file context.cpp.

SharedPtr<NestingContext> ExampleTreeContext::Private::m_exampleTree
private

Definition at line 7779 of file context.cpp.

PropertyMapper< ExampleTreeContext::Private > ExampleTreeContext::Private::s_inst
staticprivate

Definition at line 7789 of file context.cpp.


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