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

Public Member Functions

 Private (const IncludeInfo *info, SrcLangExt lang)
 
TemplateVariant get (const char *n) const
 
TemplateVariant isLocal () const
 
TemplateVariant isImport () const
 
TemplateVariant file () const
 
TemplateVariant name () const
 

Private Attributes

const IncludeInfom_info
 
SharedPtr< FileContextm_fileContext
 
SrcLangExt m_lang
 

Static Private Attributes

static PropertyMapper< IncludeInfoContext::Privates_inst
 

Detailed Description

Definition at line 1654 of file context.cpp.

Constructor & Destructor Documentation

IncludeInfoContext::Private::Private ( const IncludeInfo info,
SrcLangExt  lang 
)
inline

Definition at line 1657 of file context.cpp.

1657  :
1658  m_info(info),
1659  m_lang(lang)
1660  {
1661  static bool init=FALSE;
1662  if (!init)
1663  {
1664  s_inst.addProperty("file",&Private::file);
1665  s_inst.addProperty("name",&Private::name);
1666  s_inst.addProperty("isImport",&Private::isImport);
1667  s_inst.addProperty("isLocal",&Private::isLocal);
1668  init=TRUE;
1669  }
1670  }
const IncludeInfo * m_info
Definition: context.cpp:1704
TemplateVariant file() const
Definition: context.cpp:1684
const bool FALSE
Definition: qglobal.h:370
TemplateVariant isLocal() const
Definition: context.cpp:1675
init
Definition: train.py:42
TemplateVariant name() const
Definition: context.cpp:1699
static PropertyMapper< IncludeInfoContext::Private > s_inst
Definition: context.cpp:1707
TemplateVariant isImport() const
Definition: context.cpp:1680
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

TemplateVariant IncludeInfoContext::Private::file ( ) const
inline

Definition at line 1684 of file context.cpp.

1685  {
1686  if (!m_fileContext && m_info && m_info->fileDef)
1687  {
1689  }
1690  if (m_fileContext)
1691  {
1692  return m_fileContext.get();
1693  }
1694  else
1695  {
1696  return FALSE;
1697  }
1698  }
SharedPtr< FileContext > m_fileContext
Definition: context.cpp:1705
const IncludeInfo * m_info
Definition: context.cpp:1704
static FileContext * alloc(FileDef *fd)
Definition: context.h:294
const bool FALSE
Definition: qglobal.h:370
void reset(T *p=0)
Definition: context.cpp:113
FileDef * fileDef
Definition: filedef.h:49
T * get() const
Definition: context.cpp:111
TemplateVariant IncludeInfoContext::Private::get ( const char *  n) const
inline

Definition at line 1671 of file context.cpp.

1672  {
1673  return s_inst.get(this,n);
1674  }
std::void_t< T > n
static PropertyMapper< IncludeInfoContext::Private > s_inst
Definition: context.cpp:1707
TemplateVariant IncludeInfoContext::Private::isImport ( ) const
inline

Definition at line 1680 of file context.cpp.

1681  {
1682  return m_info->imported || m_lang==SrcLangExt_ObjC;
1683  }
const IncludeInfo * m_info
Definition: context.cpp:1704
bool imported
Definition: filedef.h:52
TemplateVariant IncludeInfoContext::Private::isLocal ( ) const
inline

Definition at line 1675 of file context.cpp.

1676  {
1677  bool isIDLorJava = m_lang==SrcLangExt_IDL || m_lang==SrcLangExt_Java;
1678  return m_info->local || isIDLorJava;
1679  }
const IncludeInfo * m_info
Definition: context.cpp:1704
bool local
Definition: filedef.h:51
TemplateVariant IncludeInfoContext::Private::name ( ) const
inline

Definition at line 1699 of file context.cpp.

1700  {
1701  return m_info->includeName;
1702  }
const IncludeInfo * m_info
Definition: context.cpp:1704
QCString includeName
Definition: filedef.h:50

Member Data Documentation

SharedPtr<FileContext> IncludeInfoContext::Private::m_fileContext
mutableprivate

Definition at line 1705 of file context.cpp.

const IncludeInfo* IncludeInfoContext::Private::m_info
private

Definition at line 1704 of file context.cpp.

SrcLangExt IncludeInfoContext::Private::m_lang
private

Definition at line 1706 of file context.cpp.

PropertyMapper< IncludeInfoContext::Private > IncludeInfoContext::Private::s_inst
staticprivate

Definition at line 1707 of file context.cpp.


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