My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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::Private
s_inst
 

Detailed Description

Definition at line 1669 of file context.cpp.

Constructor & Destructor Documentation

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

Definition at line 1672 of file context.cpp.

References file(), Config::init(), isImport(), isLocal(), name(), and s_inst.

:
m_info(info),
m_lang(lang)
{
static bool init=FALSE;
if (!init)
{
s_inst.addProperty("file",&Private::file);
s_inst.addProperty("name",&Private::name);
s_inst.addProperty("isImport",&Private::isImport);
s_inst.addProperty("isLocal",&Private::isLocal);
init=TRUE;
}
}

Member Function Documentation

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

Definition at line 1699 of file context.cpp.

References FileContext::alloc(), IncludeInfo::fileDef, SharedPtr< T >::get(), m_fileContext, m_info, and SharedPtr< T >::reset().

Referenced by Private().

{
{
}
{
return m_fileContext.get();
}
else
{
return FALSE;
}
}
TemplateVariant IncludeInfoContext::Private::get ( const char *  n) const
inline

Definition at line 1686 of file context.cpp.

References s_inst.

Referenced by IncludeInfoContext::get().

{
return s_inst.get(this,n);
}
TemplateVariant IncludeInfoContext::Private::isImport ( ) const
inline

Definition at line 1695 of file context.cpp.

References IncludeInfo::imported, m_info, m_lang, and SrcLangExt_ObjC.

Referenced by Private().

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

Definition at line 1690 of file context.cpp.

References IncludeInfo::local, m_info, m_lang, SrcLangExt_IDL, and SrcLangExt_Java.

Referenced by Private().

{
bool isIDLorJava = m_lang==SrcLangExt_IDL || m_lang==SrcLangExt_Java;
return m_info->local || isIDLorJava;
}
TemplateVariant IncludeInfoContext::Private::name ( ) const
inline

Definition at line 1714 of file context.cpp.

References IncludeInfo::includeName, and m_info.

Referenced by Private().

{
}

Member Data Documentation

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

Definition at line 1720 of file context.cpp.

Referenced by file().

const IncludeInfo* IncludeInfoContext::Private::m_info
private

Definition at line 1719 of file context.cpp.

Referenced by file(), isImport(), isLocal(), and name().

SrcLangExt IncludeInfoContext::Private::m_lang
private

Definition at line 1721 of file context.cpp.

Referenced by isImport(), and isLocal().

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

Definition at line 1722 of file context.cpp.

Referenced by get(), and Private().


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