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

Classes

struct  Cachable
 

Public Member Functions

 Private (Definition *def, const QCString &relPath, const MemberGroup *mg)
 
TemplateVariant get (const char *n) const
 
TemplateVariant members () const
 
TemplateVariant groupTitle () const
 
TemplateVariant groupSubtitle () const
 
TemplateVariant groupAnchor () const
 
TemplateVariant memberGroups () const
 
TemplateVariant docs () const
 
TemplateVariant inherited () const
 

Private Attributes

Definitionm_def
 
QCString m_relPath
 
const MemberGroupm_memberGroup
 
Cachable m_cache
 

Static Private Attributes

static PropertyMapper< MemberGroupInfoContext::Privates_inst
 

Detailed Description

Definition at line 8703 of file context.cpp.

Constructor & Destructor Documentation

MemberGroupInfoContext::Private::Private ( Definition def,
const QCString relPath,
const MemberGroup mg 
)
inline

Definition at line 8706 of file context.cpp.

8706  :
8707  m_def(def),
8708  m_relPath(relPath),
8709  m_memberGroup(mg)
8710  {
8711  static bool init=FALSE;
8712  if (!init)
8713  {
8714  s_inst.addProperty("members", &Private::members);
8715  s_inst.addProperty("title", &Private::groupTitle);
8716  s_inst.addProperty("subtitle", &Private::groupSubtitle);
8717  s_inst.addProperty("anchor", &Private::groupAnchor);
8718  s_inst.addProperty("memberGroups", &Private::memberGroups);
8719  s_inst.addProperty("docs", &Private::docs);
8720  s_inst.addProperty("inherited", &Private::inherited);
8721  init=TRUE;
8722  }
8723  }
static PropertyMapper< MemberGroupInfoContext::Private > s_inst
Definition: context.cpp:8790
TemplateVariant inherited() const
Definition: context.cpp:8775
const bool FALSE
Definition: qglobal.h:370
const MemberGroup * m_memberGroup
Definition: context.cpp:8782
init
Definition: train.py:42
TemplateVariant groupSubtitle() const
Definition: context.cpp:8740
TemplateVariant memberGroups() const
Definition: context.cpp:8748
TemplateVariant groupAnchor() const
Definition: context.cpp:8744
TemplateVariant members() const
Definition: context.cpp:8728
TemplateVariant docs() const
Definition: context.cpp:8756
TemplateVariant groupTitle() const
Definition: context.cpp:8736
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

TemplateVariant MemberGroupInfoContext::Private::docs ( ) const
inline

Definition at line 8756 of file context.cpp.

8757  {
8758  if (!m_cache.docs)
8759  {
8761  if (!docs.isEmpty())
8762  {
8764  parseDoc(m_def,"[@name docs]",-1, // TODO store file & line
8765  m_relPath,
8766  m_memberGroup->documentation()+"\n",FALSE)));
8767  }
8768  else
8769  {
8770  m_cache.docs.reset(new TemplateVariant(""));
8771  }
8772  }
8773  return *m_cache.docs;
8774  }
bool isEmpty() const
Definition: qcstring.h:189
const bool FALSE
Definition: qglobal.h:370
void reset(T *p=0)
Definition: context.cpp:92
const MemberGroup * m_memberGroup
Definition: context.cpp:8782
static TemplateVariant parseDoc(Definition *def, const QCString &file, int line, const QCString &relPath, const QCString &docStr, bool isBrief)
Definition: context.cpp:1227
ScopedPtr< TemplateVariant > docs
Definition: context.cpp:8787
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant docs() const
Definition: context.cpp:8756
const QCString & documentation() const
Definition: membergroup.h:66
TemplateVariant MemberGroupInfoContext::Private::get ( const char *  n) const
inline

Definition at line 8724 of file context.cpp.

8725  {
8726  return s_inst.get(this,n);
8727  }
static PropertyMapper< MemberGroupInfoContext::Private > s_inst
Definition: context.cpp:8790
std::void_t< T > n
TemplateVariant MemberGroupInfoContext::Private::groupAnchor ( ) const
inline

Definition at line 8744 of file context.cpp.

8745  {
8746  return m_memberGroup->anchor();
8747  }
const MemberGroup * m_memberGroup
Definition: context.cpp:8782
QCString anchor() const
TemplateVariant MemberGroupInfoContext::Private::groupSubtitle ( ) const
inline

Definition at line 8740 of file context.cpp.

8741  {
8742  return "";
8743  }
TemplateVariant MemberGroupInfoContext::Private::groupTitle ( ) const
inline

Definition at line 8736 of file context.cpp.

8737  {
8738  return m_memberGroup->header();
8739  }
QCString header() const
Definition: membergroup.h:47
const MemberGroup * m_memberGroup
Definition: context.cpp:8782
TemplateVariant MemberGroupInfoContext::Private::inherited ( ) const
inline

Definition at line 8775 of file context.cpp.

8776  {
8777  return FALSE;
8778  }
const bool FALSE
Definition: qglobal.h:370
TemplateVariant MemberGroupInfoContext::Private::memberGroups ( ) const
inline

Definition at line 8748 of file context.cpp.

8749  {
8750  if (!m_cache.memberGroups)
8751  {
8753  }
8754  return m_cache.memberGroups.get();
8755  }
SharedPtr< MemberGroupListContext > memberGroups
Definition: context.cpp:8786
void reset(T *p=0)
Definition: context.cpp:113
static MemberGroupListContext * alloc()
Definition: context.h:1002
T * get() const
Definition: context.cpp:111
TemplateVariant MemberGroupInfoContext::Private::members ( ) const
inline

Definition at line 8728 of file context.cpp.

8729  {
8731  {
8733  }
8734  return m_cache.memberListContext.get();
8735  }
MemberList * members() const
Definition: membergroup.h:88
const MemberGroup * m_memberGroup
Definition: context.cpp:8782
static MemberListContext * alloc()
Definition: context.h:954
SharedPtr< MemberListContext > memberListContext
Definition: context.cpp:8785
void reset(T *p=0)
Definition: context.cpp:113
T * get() const
Definition: context.cpp:111

Member Data Documentation

Cachable MemberGroupInfoContext::Private::m_cache
mutableprivate

Definition at line 8789 of file context.cpp.

Definition* MemberGroupInfoContext::Private::m_def
private

Definition at line 8780 of file context.cpp.

const MemberGroup* MemberGroupInfoContext::Private::m_memberGroup
private

Definition at line 8782 of file context.cpp.

QCString MemberGroupInfoContext::Private::m_relPath
private

Definition at line 8781 of file context.cpp.

PropertyMapper< MemberGroupInfoContext::Private > MemberGroupInfoContext::Private::s_inst
staticprivate

Definition at line 8790 of file context.cpp.


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