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

Public Member Functions

 Private ()
 
virtual ~Private ()
 
TemplateVariant fetchList (const QCString &name, const QStrList *list)
 

Private Attributes

QDict< TemplateVariantm_cachedLists
 

Detailed Description

Definition at line 290 of file context.cpp.

Constructor & Destructor Documentation

ConfigContext::Private::Private ( )
inline

Definition at line 293 of file context.cpp.

293 { m_cachedLists.setAutoDelete(TRUE); }
QDict< TemplateVariant > m_cachedLists
Definition: context.cpp:316
const bool TRUE
Definition: qglobal.h:371
virtual ConfigContext::Private::~Private ( )
inlinevirtual

Definition at line 294 of file context.cpp.

294 { }

Member Function Documentation

TemplateVariant ConfigContext::Private::fetchList ( const QCString name,
const QStrList list 
)
inline

Definition at line 295 of file context.cpp.

296  {
297  TemplateVariant *v = m_cachedLists.find(name);
298  if (v==0)
299  {
301  m_cachedLists.insert(name,new TemplateVariant(tlist));
302  QStrListIterator li(*list);
303  char *s;
304  for (li.toFirst();(s=li.current());++li)
305  {
306  tlist->append(s);
307  }
308  return tlist;
309  }
310  else
311  {
312  return *v;
313  }
314  }
QDict< TemplateVariant > m_cachedLists
Definition: context.cpp:316
static TemplateList * alloc()
Definition: template.cpp:420
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
static QCString * s
Definition: config.cpp:1042

Member Data Documentation

QDict<TemplateVariant> ConfigContext::Private::m_cachedLists
private

Definition at line 316 of file context.cpp.


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