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

Classes

struct  Cachable
 

Public Types

typedef bool(MemberDef::* MemberFunc) () const
 

Public Member Functions

 Private ()
 
TemplateVariant get (const char *n) const
 
TemplateVariant getMembersFiltered (SharedPtr< TemplateList > &listRef, MemberFunc filter) const
 
TemplateVariant all () const
 
TemplateVariant functions () const
 
TemplateVariant variables () const
 
TemplateVariant typedefs () const
 
TemplateVariant enums () const
 
TemplateVariant enumValues () const
 
TemplateVariant macros () const
 
TemplateVariant properties () const
 
TemplateVariant events () const
 
TemplateVariant related () const
 
TemplateVariant fileName () const
 
TemplateVariant relPath () const
 
TemplateVariant highlight () const
 
TemplateVariant subhighlight () const
 
TemplateVariant title () const
 

Private Attributes

Cachable m_cache
 

Static Private Attributes

static PropertyMapper< NamespaceMembersIndexContext::Privates_inst
 

Detailed Description

Definition at line 8130 of file context.cpp.

Member Typedef Documentation

typedef bool(MemberDef::* NamespaceMembersIndexContext::Private::MemberFunc) () const

Definition at line 8160 of file context.cpp.

Constructor & Destructor Documentation

NamespaceMembersIndexContext::Private::Private ( )
inline

Definition at line 8133 of file context.cpp.

8134  {
8135  static bool init=FALSE;
8136  if (!init)
8137  {
8138  s_inst.addProperty("all", &Private::all);
8139  s_inst.addProperty("functions", &Private::functions);
8140  s_inst.addProperty("variables", &Private::variables);
8141  s_inst.addProperty("typedefs", &Private::typedefs);
8142  s_inst.addProperty("enums", &Private::enums);
8143  s_inst.addProperty("enumValues", &Private::enumValues);
8144  s_inst.addProperty("macros", &Private::macros);
8145  s_inst.addProperty("properties", &Private::properties);
8146  s_inst.addProperty("events", &Private::events);
8147  s_inst.addProperty("related", &Private::related);
8148  s_inst.addProperty("fileName", &Private::fileName);
8149  s_inst.addProperty("relPath", &Private::relPath);
8150  s_inst.addProperty("highlight", &Private::highlight);
8151  s_inst.addProperty("subhighlight",&Private::subhighlight);
8152  s_inst.addProperty("title", &Private::title);
8153  init=TRUE;
8154  }
8155  }
TemplateVariant variables() const
Definition: context.cpp:8197
TemplateVariant subhighlight() const
Definition: context.cpp:8241
TemplateVariant relPath() const
Definition: context.cpp:8233
TemplateVariant highlight() const
Definition: context.cpp:8237
const bool FALSE
Definition: qglobal.h:370
TemplateVariant functions() const
Definition: context.cpp:8193
init
Definition: train.py:42
TemplateVariant events() const
Definition: context.cpp:8221
TemplateVariant fileName() const
Definition: context.cpp:8229
TemplateVariant all() const
Definition: context.cpp:8189
static PropertyMapper< NamespaceMembersIndexContext::Private > s_inst
Definition: context.cpp:8261
TemplateVariant enumValues() const
Definition: context.cpp:8209
TemplateVariant title() const
Definition: context.cpp:8245
TemplateVariant macros() const
Definition: context.cpp:8213
TemplateVariant properties() const
Definition: context.cpp:8217
TemplateVariant related() const
Definition: context.cpp:8225
TemplateVariant typedefs() const
Definition: context.cpp:8201
const bool TRUE
Definition: qglobal.h:371
TemplateVariant enums() const
Definition: context.cpp:8205

Member Function Documentation

TemplateVariant NamespaceMembersIndexContext::Private::all ( ) const
inline

Definition at line 8189 of file context.cpp.

8190  {
8191  return getMembersFiltered(m_cache.all,0);
8192  }
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:8161
TemplateVariant NamespaceMembersIndexContext::Private::enums ( ) const
inline

Definition at line 8205 of file context.cpp.

8206  {
8208  }
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:8161
bool isEnumerate() const
Definition: memberdef.cpp:4145
TemplateVariant NamespaceMembersIndexContext::Private::enumValues ( ) const
inline

Definition at line 8209 of file context.cpp.

8210  {
8212  }
bool isEnumValue() const
Definition: memberdef.cpp:4150
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:8161
TemplateVariant NamespaceMembersIndexContext::Private::events ( ) const
inline

Definition at line 8221 of file context.cpp.

8222  {
8223  return FALSE;
8224  }
const bool FALSE
Definition: qglobal.h:370
TemplateVariant NamespaceMembersIndexContext::Private::fileName ( ) const
inline

Definition at line 8229 of file context.cpp.

8230  {
8231  return "namespacemembers";
8232  }
TemplateVariant NamespaceMembersIndexContext::Private::functions ( ) const
inline

Definition at line 8193 of file context.cpp.

8194  {
8196  }
bool isFunction() const
Definition: memberdef.cpp:4160
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:8161
TemplateVariant NamespaceMembersIndexContext::Private::get ( const char *  n) const
inline

Definition at line 8156 of file context.cpp.

8157  {
8158  return s_inst.get(this,n);
8159  }
static PropertyMapper< NamespaceMembersIndexContext::Private > s_inst
Definition: context.cpp:8261
std::void_t< T > n
TemplateVariant NamespaceMembersIndexContext::Private::getMembersFiltered ( SharedPtr< TemplateList > &  listRef,
MemberFunc  filter 
) const
inline

Definition at line 8161 of file context.cpp.

8162  {
8163  if (!listRef)
8164  {
8166  MemberName *mn;
8168  for (fnli.toFirst();(mn=fnli.current());++fnli)
8169  {
8170  MemberDef *md;
8171  MemberNameIterator mni(*mn);
8172  for (mni.toFirst();(md=mni.current());++mni)
8173  {
8174  NamespaceDef *nd=md->getNamespaceDef();
8175  if (nd && nd->isLinkableInProject() &&
8176  !md->name().isEmpty() && md->isLinkableInProject())
8177  {
8178  if (filter==0 || (md->*filter)())
8179  {
8180  list->append(MemberContext::alloc(md));
8181  }
8182  }
8183  }
8184  }
8185  listRef.reset(list);
8186  }
8187  return listRef.get();
8188  }
static MemberNameSDict * functionNameSDict
Definition: doxygen.h:116
static TemplateList * alloc()
Definition: template.cpp:420
bool isEmpty() const
Definition: qcstring.h:189
bool isLinkableInProject() const
Definition: memberdef.cpp:1150
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
const QCString & name() const
Definition: definition.h:114
void reset(T *p=0)
Definition: context.cpp:113
T * get() const
Definition: context.cpp:111
NamespaceDef * getNamespaceDef() const
Definition: memberdef.cpp:4080
friend class Iterator
Definition: sortdict.h:289
bool isLinkableInProject() const
static MemberContext * alloc(MemberDef *md)
Definition: context.h:351
TemplateVariant NamespaceMembersIndexContext::Private::highlight ( ) const
inline

Definition at line 8237 of file context.cpp.

8238  {
8239  return "namespaces";
8240  }
TemplateVariant NamespaceMembersIndexContext::Private::macros ( ) const
inline

Definition at line 8213 of file context.cpp.

8214  {
8215  return FALSE;
8216  }
const bool FALSE
Definition: qglobal.h:370
TemplateVariant NamespaceMembersIndexContext::Private::properties ( ) const
inline

Definition at line 8217 of file context.cpp.

8218  {
8219  return FALSE;
8220  }
const bool FALSE
Definition: qglobal.h:370
TemplateVariant NamespaceMembersIndexContext::Private::related ( ) const
inline

Definition at line 8225 of file context.cpp.

8226  {
8227  return FALSE;
8228  }
const bool FALSE
Definition: qglobal.h:370
TemplateVariant NamespaceMembersIndexContext::Private::relPath ( ) const
inline

Definition at line 8233 of file context.cpp.

8234  {
8235  return "";
8236  }
TemplateVariant NamespaceMembersIndexContext::Private::subhighlight ( ) const
inline

Definition at line 8241 of file context.cpp.

8242  {
8243  return "namespacemembers";
8244  }
TemplateVariant NamespaceMembersIndexContext::Private::title ( ) const
inline

Definition at line 8245 of file context.cpp.

8246  {
8248  }
virtual QCString trNamespaceMembers()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant NamespaceMembersIndexContext::Private::typedefs ( ) const
inline

Definition at line 8201 of file context.cpp.

8202  {
8204  }
bool isTypedef() const
Definition: memberdef.cpp:4155
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:8161
TemplateVariant NamespaceMembersIndexContext::Private::variables ( ) const
inline

Definition at line 8197 of file context.cpp.

8198  {
8200  }
bool isVariable() const
Definition: memberdef.cpp:4140
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:8161

Member Data Documentation

Cachable NamespaceMembersIndexContext::Private::m_cache
mutableprivate

Definition at line 8260 of file context.cpp.

PropertyMapper< NamespaceMembersIndexContext::Private > NamespaceMembersIndexContext::Private::s_inst
staticprivate

Definition at line 8261 of file context.cpp.


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