Doxygen
IncludeInfoContext::Private类 参考
+ IncludeInfoContext::Private 的协作图:

Public 成员函数

 Private (const IncludeInfo *info, SrcLangExt lang)
 
TemplateVariant get (const QCString &n) const
 
StringVector fields () const
 
TemplateVariant isLocal () const
 
TemplateVariant isImport () const
 
TemplateVariant file () const
 
TemplateVariant name () const
 

Private 成员函数

TemplateVariant createFileContext () const
 

Private 属性

const IncludeInfom_info
 
CachedItem< TemplateVariant, Private, &Private::createFileContextm_fileContext
 
SrcLangExt m_lang
 

静态 Private 属性

static const PropertyMap< IncludeInfoContext::Privates_inst
 

详细描述

在文件 context.cpp1595 行定义.

构造及析构函数说明

◆ Private()

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

在文件 context.cpp1598 行定义.

1598  :
1599  m_info(info),
1600  m_lang(lang)
1601  {
1602  }

成员函数说明

◆ createFileContext()

TemplateVariant IncludeInfoContext::Private::createFileContext ( ) const
inlineprivate

在文件 context.cpp1630 行定义.

1631  {
1632  return m_info && m_info->fileDef ?
1634  TemplateVariant(false);
1635  }

引用了 FileContext::alloc(), IncludeInfo::fileDef , 以及 m_info.

◆ fields()

StringVector IncludeInfoContext::Private::fields ( ) const
inline

在文件 context.cpp1607 行定义.

1608  {
1609  return s_inst.fields();
1610  }

引用了 PropertyMap< T >::fields() , 以及 s_inst.

◆ file()

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

在文件 context.cpp1620 行定义.

1621  {
1622  return m_fileContext.get(this);
1623  }

引用了 m_fileContext.

◆ get()

TemplateVariant IncludeInfoContext::Private::get ( const QCString n) const
inline

在文件 context.cpp1603 行定义.

1604  {
1605  return s_inst.get(this,n);
1606  }

引用了 PropertyMap< T >::get() , 以及 s_inst.

◆ isImport()

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

在文件 context.cpp1616 行定义.

1617  {
1618  return m_info->imported || m_lang==SrcLangExt_ObjC;
1619  }

引用了 IncludeInfo::imported, m_info, m_lang , 以及 SrcLangExt_ObjC.

◆ isLocal()

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

在文件 context.cpp1611 行定义.

1612  {
1613  bool isIDLorJava = m_lang==SrcLangExt_IDL || m_lang==SrcLangExt_Java;
1614  return m_info->local || isIDLorJava;
1615  }

引用了 m_info, m_lang, SrcLangExt_IDL , 以及 SrcLangExt_Java.

◆ name()

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

在文件 context.cpp1624 行定义.

1625  {
1626  return m_info->includeName;
1627  }

引用了 IncludeInfo::includeName , 以及 m_info.

类成员变量说明

◆ m_fileContext

CachedItem<TemplateVariant, Private, &Private::createFileContext> IncludeInfoContext::Private::m_fileContext
private

在文件 context.cpp1636 行定义.

被这些函数引用 file().

◆ m_info

const IncludeInfo* IncludeInfoContext::Private::m_info
private

在文件 context.cpp1629 行定义.

被这些函数引用 createFileContext(), isImport(), isLocal() , 以及 name().

◆ m_lang

SrcLangExt IncludeInfoContext::Private::m_lang
private

在文件 context.cpp1637 行定义.

被这些函数引用 isImport() , 以及 isLocal().

◆ s_inst

const PropertyMap< IncludeInfoContext::Private > IncludeInfoContext::Private::s_inst
staticprivate
初始值:
{
{ "file",&Private::file },
{ "name",&Private::name },
{ "isImport",&Private::isImport },
{ "isLocal",&Private::isLocal }
}

在文件 context.cpp1638 行定义.

被这些函数引用 fields() , 以及 get().


该类的文档由以下文件生成:
IncludeInfoContext::Private::m_lang
SrcLangExt m_lang
Definition: context.cpp:1637
IncludeInfo::fileDef
const FileDef * fileDef
Definition: filedef.h:53
PropertyMap::get
TemplateVariant get(const T *obj, const QCString &n) const
Definition: context.cpp:126
IncludeInfoContext::Private::m_info
const IncludeInfo * m_info
Definition: context.cpp:1629
IncludeInfoContext::Private::s_inst
static const PropertyMap< IncludeInfoContext::Private > s_inst
Definition: context.cpp:1638
SrcLangExt_Java
@ SrcLangExt_Java
Definition: types.h:45
PropertyMap::fields
StringVector fields() const
Definition: context.cpp:131
IncludeInfoContext::Private::isImport
TemplateVariant isImport() const
Definition: context.cpp:1616
SrcLangExt_ObjC
@ SrcLangExt_ObjC
Definition: types.h:49
TemplateVariant
Variant type which can hold one value of a fixed set of types.
Definition: template.h:98
IncludeInfoContext::Private::file
TemplateVariant file() const
Definition: context.cpp:1620
IncludeInfoContext::Private::m_fileContext
CachedItem< TemplateVariant, Private, &Private::createFileContext > m_fileContext
Definition: context.cpp:1636
IncludeInfo::imported
bool imported
Definition: filedef.h:56
IncludeInfoContext::Private::isLocal
TemplateVariant isLocal() const
Definition: context.cpp:1611
SrcLangExt_IDL
@ SrcLangExt_IDL
Definition: types.h:44
IncludeInfo::includeName
QCString includeName
Definition: filedef.h:54
IncludeInfoContext::Private::name
TemplateVariant name() const
Definition: context.cpp:1624
FileContext::alloc
static TemplateStructIntfPtr alloc(const FileDef *fd)
Definition: context.h:260