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

Public Member Functions

 Private (const MemberInfo *mi)
 
TemplateVariant get (const char *n) const
 
TemplateVariant protection () const
 
TemplateVariant virtualness () const
 
TemplateVariant ambiguityScope () const
 
TemplateVariant member () const
 

Private Attributes

const MemberInfom_memberInfo
 
SharedPtr< MemberContextm_member
 

Static Private Attributes

static PropertyMapper< MemberInfoContext::Privates_inst
 

Detailed Description

Definition at line 8542 of file context.cpp.

Constructor & Destructor Documentation

MemberInfoContext::Private::Private ( const MemberInfo mi)
inline

Definition at line 8545 of file context.cpp.

8545  : m_memberInfo(mi)
8546  {
8547  static bool init=FALSE;
8548  if (!init)
8549  {
8550  //%% string protection
8551  s_inst.addProperty("protection", &Private::protection);
8552  //%% string virtualness
8553  s_inst.addProperty("virtualness", &Private::virtualness);
8554  //%% string ambiguityScope
8555  s_inst.addProperty("ambiguityScope",&Private::ambiguityScope);
8556  //%% Member member
8557  s_inst.addProperty("member", &Private::member);
8558  init=TRUE;
8559  }
8560  }
static PropertyMapper< MemberInfoContext::Private > s_inst
Definition: context.cpp:8608
const bool FALSE
Definition: qglobal.h:370
init
Definition: train.py:42
const MemberInfo * m_memberInfo
Definition: context.cpp:8606
TemplateVariant virtualness() const
Definition: context.cpp:8576
TemplateVariant member() const
Definition: context.cpp:8590
TemplateVariant ambiguityScope() const
Definition: context.cpp:8586
TemplateVariant protection() const
Definition: context.cpp:8565
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

TemplateVariant MemberInfoContext::Private::ambiguityScope ( ) const
inline

Definition at line 8586 of file context.cpp.

8587  {
8589  }
const MemberInfo * m_memberInfo
Definition: context.cpp:8606
QCString ambiguityResolutionScope
Definition: membername.h:67
TemplateVariant MemberInfoContext::Private::get ( const char *  n) const
inline

Definition at line 8561 of file context.cpp.

8562  {
8563  return s_inst.get(this,n);
8564  }
static PropertyMapper< MemberInfoContext::Private > s_inst
Definition: context.cpp:8608
std::void_t< T > n
TemplateVariant MemberInfoContext::Private::member ( ) const
inline

Definition at line 8590 of file context.cpp.

8591  {
8592  if (!m_member && m_memberInfo->memberDef)
8593  {
8595  }
8596  if (m_member)
8597  {
8598  return m_member.get();
8599  }
8600  else
8601  {
8602  return TemplateVariant(FALSE);
8603  }
8604  }
const bool FALSE
Definition: qglobal.h:370
MemberDef * memberDef
Definition: membername.h:62
const MemberInfo * m_memberInfo
Definition: context.cpp:8606
SharedPtr< MemberContext > m_member
Definition: context.cpp:8607
void reset(T *p=0)
Definition: context.cpp:113
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
T * get() const
Definition: context.cpp:111
static MemberContext * alloc(MemberDef *md)
Definition: context.h:351
TemplateVariant MemberInfoContext::Private::protection ( ) const
inline

Definition at line 8565 of file context.cpp.

8566  {
8567  switch (m_memberInfo->prot)
8568  {
8569  case ::Public: return "public";
8570  case ::Protected: return "protected";
8571  case ::Private: return "private";
8572  case ::Package: return "package";
8573  }
8574  return "";
8575  }
Definition: types.h:26
Definition: types.h:26
Protection prot
Definition: membername.h:63
Definition: types.h:26
const MemberInfo * m_memberInfo
Definition: context.cpp:8606
TemplateVariant MemberInfoContext::Private::virtualness ( ) const
inline

Definition at line 8576 of file context.cpp.

8577  {
8578  switch (m_memberInfo->virt)
8579  {
8580  case ::Normal: return "normal";
8581  case ::Virtual: return "virtual";
8582  case ::Pure: return "pure";
8583  }
8584  return "";
8585  }
Specifier virt
Definition: membername.h:64
Definition: types.h:29
Definition: types.h:29
const MemberInfo * m_memberInfo
Definition: context.cpp:8606
Definition: types.h:29

Member Data Documentation

SharedPtr<MemberContext> MemberInfoContext::Private::m_member
mutableprivate

Definition at line 8607 of file context.cpp.

const MemberInfo* MemberInfoContext::Private::m_memberInfo
private

Definition at line 8606 of file context.cpp.

PropertyMapper< MemberInfoContext::Private > MemberInfoContext::Private::s_inst
staticprivate

Definition at line 8608 of file context.cpp.


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