My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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::ConstIterator
createIterator () 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 1763 of file context.cpp.

References p, and Private.

Referenced by alloc().

: RefCountedContext("IncludeListContext")
{
p = new Private(list,lang);
}
IncludeInfoListContext::~IncludeInfoListContext ( )
private

Definition at line 1768 of file context.cpp.

References p.

{
delete p;
}

Member Function Documentation

virtual int IncludeInfoListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 240 of file context.h.

References RefCountedContext::addRef().

static IncludeInfoListContext* IncludeInfoListContext::alloc ( const QList< IncludeInfo > &  list,
SrcLangExt  lang 
)
inlinestatic

Definition at line 233 of file context.h.

References IncludeInfoListContext().

Referenced by FileContext::Private::includeList().

{ return new IncludeInfoListContext(list,lang); }
TemplateVariant IncludeInfoListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 1779 of file context.cpp.

References GenericNodeListContext::at(), and p.

{
return p->at(index);
}
int IncludeInfoListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 1774 of file context.cpp.

References GenericNodeListContext::count(), and p.

{
return p->count();
}
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 1784 of file context.cpp.

References GenericNodeListContext::createIterator(), and p.

{
return p->createIterator();
}
virtual int IncludeInfoListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 241 of file context.h.

References RefCountedContext::release().

Member Data Documentation

Private* IncludeInfoListContext::p
private

Definition at line 246 of file context.h.

Referenced by at(), count(), createIterator(), IncludeInfoListContext(), and ~IncludeInfoListContext().


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