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

Classes

struct  Cachable
 

Public Member Functions

 Private (const SearchIndexInfo *info)
 
TemplateVariant get (const char *n) const
 
TemplateVariant name () const
 
TemplateVariant text () const
 
TemplateVariant symbolIndices () const
 

Private Attributes

const SearchIndexInfom_info
 
Cachable m_cache
 

Static Private Attributes

static PropertyMapper< SearchIndexContext::Privates_inst
 

Detailed Description

Definition at line 9824 of file context.cpp.

Constructor & Destructor Documentation

SearchIndexContext::Private::Private ( const SearchIndexInfo info)
inline

Definition at line 9827 of file context.cpp.

9827  : m_info(info)
9828  {
9829  static bool init=FALSE;
9830  if (!init)
9831  {
9832  s_inst.addProperty("name", &Private::name);
9833  s_inst.addProperty("text", &Private::text);
9834  s_inst.addProperty("symbolIndices",&Private::symbolIndices);
9835  init=TRUE;
9836  }
9837  }
TemplateVariant symbolIndices() const
Definition: context.cpp:9850
TemplateVariant name() const
Definition: context.cpp:9842
const bool FALSE
Definition: qglobal.h:370
init
Definition: train.py:42
static PropertyMapper< SearchIndexContext::Private > s_inst
Definition: context.cpp:9865
TemplateVariant text() const
Definition: context.cpp:9846
const SearchIndexInfo * m_info
Definition: context.cpp:9859
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

TemplateVariant SearchIndexContext::Private::get ( const char *  n) const
inline

Definition at line 9838 of file context.cpp.

9839  {
9840  return s_inst.get(this,n);
9841  }
static PropertyMapper< SearchIndexContext::Private > s_inst
Definition: context.cpp:9865
std::void_t< T > n
TemplateVariant SearchIndexContext::Private::name ( ) const
inline

Definition at line 9842 of file context.cpp.

9843  {
9844  return m_info->name;
9845  }
const SearchIndexInfo * m_info
Definition: context.cpp:9859
TemplateVariant SearchIndexContext::Private::symbolIndices ( ) const
inline

Definition at line 9850 of file context.cpp.

9851  {
9852  if (!m_cache.symbolIndices)
9853  {
9855  }
9856  return m_cache.symbolIndices.get();
9857  }
SharedPtr< SymbolIndicesContext > symbolIndices
Definition: context.cpp:9862
void reset(T *p=0)
Definition: context.cpp:113
const SearchIndexInfo * m_info
Definition: context.cpp:9859
T * get() const
Definition: context.cpp:111
static SymbolIndicesContext * alloc(const SearchIndexInfo *info)
Definition: context.h:1289
TemplateVariant SearchIndexContext::Private::text ( ) const
inline

Definition at line 9846 of file context.cpp.

9847  {
9848  return m_info->text;
9849  }
const SearchIndexInfo * m_info
Definition: context.cpp:9859

Member Data Documentation

Cachable SearchIndexContext::Private::m_cache
mutableprivate

Definition at line 9864 of file context.cpp.

const SearchIndexInfo* SearchIndexContext::Private::m_info
private

Definition at line 9859 of file context.cpp.

PropertyMapper< SearchIndexContext::Private > SearchIndexContext::Private::s_inst
staticprivate

Definition at line 9865 of file context.cpp.


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