My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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.

References m_cachedLists.

{ m_cachedLists.setAutoDelete(TRUE); }
virtual ConfigContext::Private::~Private ( )
inlinevirtual

Definition at line 294 of file context.cpp.

{ }

Member Function Documentation

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

Definition at line 295 of file context.cpp.

References TemplateList::alloc(), TemplateList::append(), and m_cachedLists.

Referenced by ConfigContext::get().

{
TemplateVariant *v = m_cachedLists.find(name);
if (v==0)
{
m_cachedLists.insert(name,new TemplateVariant(tlist));
QStrListIterator li(*list);
char *s;
for (li.toFirst();(s=li.current());++li)
{
tlist->append(s);
}
return tlist;
}
else
{
return *v;
}
}

Member Data Documentation

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

Definition at line 316 of file context.cpp.

Referenced by fetchList(), and Private().


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