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

#include <context.h>

Inheritance diagram for IncludeInfoListContext:
RefCountedContext TemplateListIntf

Classes

class  Private
 

Public Member Functions

virtual int count () const
 
virtual TemplateVariant at (int index) const
 
virtual TemplateListIntf::ConstIteratorcreateIterator () const
 
virtual int addRef ()
 
virtual int release ()
 
- Public Member Functions inherited from RefCountedContext
 RefCountedContext (const char *)
 
virtual ~RefCountedContext ()
 
int addRef ()
 
int release ()
 
- Public Member Functions inherited from TemplateListIntf
virtual ~TemplateListIntf ()
 

Static Public Member Functions

static IncludeInfoListContextalloc (const QList< IncludeInfo > &list, SrcLangExt lang)
 

Private Member Functions

 IncludeInfoListContext (const QList< IncludeInfo > &list, SrcLangExt lang)
 
 ~IncludeInfoListContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 230 of file context.h.

Constructor & Destructor Documentation

IncludeInfoListContext::IncludeInfoListContext ( const QList< IncludeInfo > &  list,
SrcLangExt  lang 
)
private

Definition at line 1748 of file context.cpp.

1748  : RefCountedContext("IncludeListContext")
1749 {
1750  p = new Private(list,lang);
1751 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
IncludeInfoListContext::~IncludeInfoListContext ( )
private

Definition at line 1753 of file context.cpp.

1754 {
1755  delete p;
1756 }

Member Function Documentation

virtual int IncludeInfoListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 240 of file context.h.

240 { return RefCountedContext::addRef(); }
static IncludeInfoListContext* IncludeInfoListContext::alloc ( const QList< IncludeInfo > &  list,
SrcLangExt  lang 
)
inlinestatic

Definition at line 233 of file context.h.

234  { return new IncludeInfoListContext(list,lang); }
IncludeInfoListContext(const QList< IncludeInfo > &list, SrcLangExt lang)
Definition: context.cpp:1748
TemplateVariant IncludeInfoListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 1764 of file context.cpp.

1765 {
1766  return p->at(index);
1767 }
TemplateVariant at(int index) const
Definition: context.cpp:181
int IncludeInfoListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 1759 of file context.cpp.

1760 {
1761  return p->count();
1762 }
int count() const
Definition: context.cpp:177
TemplateListIntf::ConstIterator * IncludeInfoListContext::createIterator ( ) const
virtual

Creates a new iterator for this list.

Note
the user should call delete on the returned pointer.

Implements TemplateListIntf.

Definition at line 1769 of file context.cpp.

1770 {
1771  return p->createIterator();
1772 }
TemplateListIntf::ConstIterator * createIterator() const
Definition: context.cpp:190
virtual int IncludeInfoListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 241 of file context.h.

241 { return RefCountedContext::release(); }

Member Data Documentation

Private* IncludeInfoListContext::p
private

Definition at line 246 of file context.h.


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