Classes | Public Types | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
GlobalsIndexContext::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< GlobalsIndexContext::Privates_inst
 

Detailed Description

Definition at line 7814 of file context.cpp.

Member Typedef Documentation

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

Definition at line 7844 of file context.cpp.

Constructor & Destructor Documentation

GlobalsIndexContext::Private::Private ( )
inline

Definition at line 7817 of file context.cpp.

7818  {
7819  static bool init=FALSE;
7820  if (!init)
7821  {
7822  s_inst.addProperty("all", &Private::all);
7823  s_inst.addProperty("functions", &Private::functions);
7824  s_inst.addProperty("variables", &Private::variables);
7825  s_inst.addProperty("typedefs", &Private::typedefs);
7826  s_inst.addProperty("enums", &Private::enums);
7827  s_inst.addProperty("enumValues", &Private::enumValues);
7828  s_inst.addProperty("macros", &Private::macros);
7829  s_inst.addProperty("properties", &Private::properties);
7830  s_inst.addProperty("events", &Private::events);
7831  s_inst.addProperty("related", &Private::related);
7832  s_inst.addProperty("fileName", &Private::fileName);
7833  s_inst.addProperty("relPath", &Private::relPath);
7834  s_inst.addProperty("highlight", &Private::highlight);
7835  s_inst.addProperty("subhighlight",&Private::subhighlight);
7836  s_inst.addProperty("title", &Private::title);
7837  init=TRUE;
7838  }
7839  }
TemplateVariant variables() const
Definition: context.cpp:7881
TemplateVariant properties() const
Definition: context.cpp:7901
TemplateVariant events() const
Definition: context.cpp:7905
TemplateVariant typedefs() const
Definition: context.cpp:7885
const bool FALSE
Definition: qglobal.h:370
init
Definition: train.py:42
TemplateVariant highlight() const
Definition: context.cpp:7921
TemplateVariant related() const
Definition: context.cpp:7909
TemplateVariant title() const
Definition: context.cpp:7929
TemplateVariant functions() const
Definition: context.cpp:7877
TemplateVariant macros() const
Definition: context.cpp:7897
TemplateVariant fileName() const
Definition: context.cpp:7913
TemplateVariant subhighlight() const
Definition: context.cpp:7925
TemplateVariant enums() const
Definition: context.cpp:7889
TemplateVariant enumValues() const
Definition: context.cpp:7893
TemplateVariant all() const
Definition: context.cpp:7873
TemplateVariant relPath() const
Definition: context.cpp:7917
static PropertyMapper< GlobalsIndexContext::Private > s_inst
Definition: context.cpp:7946
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

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

Definition at line 7873 of file context.cpp.

7874  {
7875  return getMembersFiltered(m_cache.all,0);
7876  }
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:7845
SharedPtr< TemplateList > all
Definition: context.cpp:7937
TemplateVariant GlobalsIndexContext::Private::enums ( ) const
inline

Definition at line 7889 of file context.cpp.

7890  {
7892  }
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:7845
SharedPtr< TemplateList > enums
Definition: context.cpp:7941
bool isEnumerate() const
Definition: memberdef.cpp:4145
TemplateVariant GlobalsIndexContext::Private::enumValues ( ) const
inline

Definition at line 7893 of file context.cpp.

7894  {
7896  }
SharedPtr< TemplateList > enumValues
Definition: context.cpp:7942
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:7845
bool isEnumValue() const
Definition: memberdef.cpp:4150
TemplateVariant GlobalsIndexContext::Private::events ( ) const
inline

Definition at line 7905 of file context.cpp.

7906  {
7907  return FALSE;
7908  }
const bool FALSE
Definition: qglobal.h:370
TemplateVariant GlobalsIndexContext::Private::fileName ( ) const
inline

Definition at line 7913 of file context.cpp.

7914  {
7915  return "globals";
7916  }
TemplateVariant GlobalsIndexContext::Private::functions ( ) const
inline

Definition at line 7877 of file context.cpp.

7878  {
7880  }
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:7845
SharedPtr< TemplateList > functions
Definition: context.cpp:7938
bool isFunction() const
Definition: memberdef.cpp:4160
TemplateVariant GlobalsIndexContext::Private::get ( const char *  n) const
inline

Definition at line 7840 of file context.cpp.

7841  {
7842  return s_inst.get(this,n);
7843  }
std::void_t< T > n
static PropertyMapper< GlobalsIndexContext::Private > s_inst
Definition: context.cpp:7946
TemplateVariant GlobalsIndexContext::Private::getMembersFiltered ( SharedPtr< TemplateList > &  listRef,
MemberFunc  filter 
) const
inline

Definition at line 7845 of file context.cpp.

7846  {
7847  if (!listRef)
7848  {
7850  MemberName *mn;
7852  for (fnli.toFirst();(mn=fnli.current());++fnli)
7853  {
7854  MemberDef *md;
7855  MemberNameIterator mni(*mn);
7856  for (mni.toFirst();(md=mni.current());++mni)
7857  {
7858  FileDef *fd=md->getFileDef();
7859  if (fd && fd->isLinkableInProject() &&
7860  !md->name().isEmpty() && !md->getNamespaceDef() && md->isLinkableInProject())
7861  {
7862  if (filter==0 || (md->*filter)())
7863  {
7864  list->append(MemberContext::alloc(md));
7865  }
7866  }
7867  }
7868  }
7869  listRef.reset(list);
7870  }
7871  return listRef.get();
7872  }
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
FileDef * getFileDef() const
Definition: memberdef.cpp:4075
const QCString & name() const
Definition: definition.h:114
bool isLinkableInProject() const
Definition: filedef.cpp:1877
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
static MemberContext * alloc(MemberDef *md)
Definition: context.h:351
TemplateVariant GlobalsIndexContext::Private::highlight ( ) const
inline

Definition at line 7921 of file context.cpp.

7922  {
7923  return "files";
7924  }
TemplateVariant GlobalsIndexContext::Private::macros ( ) const
inline

Definition at line 7897 of file context.cpp.

7898  {
7900  }
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:7845
bool isDefine() const
Definition: memberdef.cpp:4170
SharedPtr< TemplateList > macros
Definition: context.cpp:7943
TemplateVariant GlobalsIndexContext::Private::properties ( ) const
inline

Definition at line 7901 of file context.cpp.

7902  {
7903  return FALSE;
7904  }
const bool FALSE
Definition: qglobal.h:370
TemplateVariant GlobalsIndexContext::Private::related ( ) const
inline

Definition at line 7909 of file context.cpp.

7910  {
7911  return FALSE;
7912  }
const bool FALSE
Definition: qglobal.h:370
TemplateVariant GlobalsIndexContext::Private::relPath ( ) const
inline

Definition at line 7917 of file context.cpp.

7918  {
7919  return "";
7920  }
TemplateVariant GlobalsIndexContext::Private::subhighlight ( ) const
inline

Definition at line 7925 of file context.cpp.

7926  {
7927  return "filemembers";
7928  }
TemplateVariant GlobalsIndexContext::Private::title ( ) const
inline

Definition at line 7929 of file context.cpp.

7930  {
7931  return theTranslator->trFileMembers();
7932  }
virtual QCString trFileMembers()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant GlobalsIndexContext::Private::typedefs ( ) const
inline

Definition at line 7885 of file context.cpp.

7886  {
7888  }
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:7845
SharedPtr< TemplateList > typedefs
Definition: context.cpp:7940
bool isTypedef() const
Definition: memberdef.cpp:4155
TemplateVariant GlobalsIndexContext::Private::variables ( ) const
inline

Definition at line 7881 of file context.cpp.

7882  {
7884  }
SharedPtr< TemplateList > variables
Definition: context.cpp:7939
TemplateVariant getMembersFiltered(SharedPtr< TemplateList > &listRef, MemberFunc filter) const
Definition: context.cpp:7845
bool isVariable() const
Definition: memberdef.cpp:4140

Member Data Documentation

Cachable GlobalsIndexContext::Private::m_cache
mutableprivate

Definition at line 7945 of file context.cpp.

PropertyMapper< GlobalsIndexContext::Private > GlobalsIndexContext::Private::s_inst
staticprivate

Definition at line 7946 of file context.cpp.


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