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

Public Member Functions

 Private (Definition *def)
 
TemplateVariant get (const char *n) const
 
TemplateVariant isLinkable () const
 
TemplateVariant anchor () const
 
TemplateVariant fileName () const
 
TemplateVariant text () const
 
TemplateVariant isReference () const
 
QCString relPathAsString () const
 
TemplateVariant externalReference () const
 

Private Attributes

Definitionm_def
 

Static Private Attributes

static PropertyMapper< NavPathElemContext::Privates_inst
 

Detailed Description

Definition at line 7611 of file context.cpp.

Constructor & Destructor Documentation

NavPathElemContext::Private::Private ( Definition def)
inline

Definition at line 7614 of file context.cpp.

7614  : m_def(def)
7615  {
7616  static bool init=FALSE;
7617  if (!init)
7618  {
7619  s_inst.addProperty("isLinkable", &Private::isLinkable);
7620  s_inst.addProperty("fileName", &Private::fileName);
7621  s_inst.addProperty("anchor", &Private::anchor);
7622  s_inst.addProperty("text", &Private::text);
7623  s_inst.addProperty("isReference", &Private::isReference);
7624  s_inst.addProperty("externalReference",&Private::externalReference);
7625  init=TRUE;
7626  }
7627  }
TemplateVariant anchor() const
Definition: context.cpp:7636
TemplateVariant fileName() const
Definition: context.cpp:7640
const bool FALSE
Definition: qglobal.h:370
TemplateVariant text() const
Definition: context.cpp:7644
init
Definition: train.py:42
static PropertyMapper< NavPathElemContext::Private > s_inst
Definition: context.cpp:7680
TemplateVariant externalReference() const
Definition: context.cpp:7674
TemplateVariant isReference() const
Definition: context.cpp:7665
TemplateVariant isLinkable() const
Definition: context.cpp:7632
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

TemplateVariant NavPathElemContext::Private::anchor ( ) const
inline

Definition at line 7636 of file context.cpp.

7637  {
7638  return m_def->anchor();
7639  }
virtual QCString anchor() const =0
TemplateVariant NavPathElemContext::Private::externalReference ( ) const
inline

Definition at line 7674 of file context.cpp.

7675  {
7677  }
QCString relPathAsString() const
Definition: context.cpp:7669
QCString externalReference(const QCString &relPath) const
TemplateVariant NavPathElemContext::Private::fileName ( ) const
inline

Definition at line 7640 of file context.cpp.

7641  {
7642  return m_def->getOutputFileBase();
7643  }
virtual QCString getOutputFileBase() const =0
TemplateVariant NavPathElemContext::Private::get ( const char *  n) const
inline

Definition at line 7628 of file context.cpp.

7629  {
7630  return s_inst.get(this,n);
7631  }
std::void_t< T > n
static PropertyMapper< NavPathElemContext::Private > s_inst
Definition: context.cpp:7680
TemplateVariant NavPathElemContext::Private::isLinkable ( ) const
inline

Definition at line 7632 of file context.cpp.

7633  {
7634  return m_def->isLinkable();
7635  }
virtual bool isLinkable() const =0
TemplateVariant NavPathElemContext::Private::isReference ( ) const
inline

Definition at line 7665 of file context.cpp.

7666  {
7667  return m_def->isReference();
7668  }
virtual bool isReference() const
QCString NavPathElemContext::Private::relPathAsString ( ) const
inline

Definition at line 7669 of file context.cpp.

7670  {
7671  static bool createSubdirs = Config_getBool("CREATE_SUBDIRS");
7672  return createSubdirs ? QCString("../../") : QCString("");
7673  }
#define Config_getBool(val)
Definition: config.cpp:664
TemplateVariant NavPathElemContext::Private::text ( ) const
inline

Definition at line 7644 of file context.cpp.

7645  {
7648  if (type==Definition::TypeGroup)
7649  {
7650  text = ((const GroupDef*)m_def)->groupTitle();
7651  }
7652  else if (type==Definition::TypePage && !(((const PageDef*)m_def)->title().isEmpty()))
7653  {
7654  text = ((const PageDef*)m_def)->title();
7655  }
7656  else if (type==Definition::TypeClass)
7657  {
7658  if (text.right(2)=="-p")
7659  {
7660  text = text.left(text.length()-2);
7661  }
7662  }
7663  return text;
7664  }
uint length() const
Definition: qcstring.h:195
QCString left(uint len) const
Definition: qcstring.cpp:213
TemplateVariant text() const
Definition: context.cpp:7644
virtual DefType definitionType() const =0
QCString right(uint len) const
Definition: qcstring.cpp:231
A model of a page symbol.
Definition: pagedef.h:29
QCString localName() const

Member Data Documentation

Definition* NavPathElemContext::Private::m_def
private

Definition at line 7679 of file context.cpp.

PropertyMapper< NavPathElemContext::Private > NavPathElemContext::Private::s_inst
staticprivate

Definition at line 7680 of file context.cpp.


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