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
UsedFilesContext Class Reference

#include <context.h>

Inheritance diagram for UsedFilesContext:
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 ()
 
void addFile (FileDef *fd)
 
- 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 UsedFilesContextalloc (ClassDef *cd)
 

Private Member Functions

 UsedFilesContext (ClassDef *cd)
 
 ~UsedFilesContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 186 of file context.h.

Constructor & Destructor Documentation

UsedFilesContext::UsedFilesContext ( ClassDef cd)
private

Definition at line 7108 of file context.cpp.

References UsedFilesContext::Private::addFile(), p, Private, and ClassDef::usedFiles().

Referenced by alloc().

: RefCountedContext("UsedFilesContext")
{
p = new Private;
if (cd)
{
QListIterator<FileDef> li(cd->usedFiles());
FileDef *fd;
for (li.toFirst();(fd=li.current());++li)
{
p->addFile(fd);
}
}
}
UsedFilesContext::~UsedFilesContext ( )
private

Definition at line 7122 of file context.cpp.

References p.

{
delete p;
}

Member Function Documentation

void UsedFilesContext::addFile ( FileDef fd)

Definition at line 7143 of file context.cpp.

References UsedFilesContext::Private::addFile(), and p.

{
p->addFile(fd);
}
virtual int UsedFilesContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 195 of file context.h.

References RefCountedContext::addRef().

static UsedFilesContext* UsedFilesContext::alloc ( ClassDef cd)
inlinestatic

Definition at line 189 of file context.h.

References UsedFilesContext().

Referenced by ClassContext::Private::usedFiles().

{ return new UsedFilesContext(cd); }
TemplateVariant UsedFilesContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 7133 of file context.cpp.

References GenericNodeListContext::at(), and p.

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

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 7128 of file context.cpp.

References GenericNodeListContext::count(), and p.

{
return p->count();
}
TemplateListIntf::ConstIterator * UsedFilesContext::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 7138 of file context.cpp.

References GenericNodeListContext::createIterator(), and p.

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

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 196 of file context.h.

References RefCountedContext::release().

Member Data Documentation

Private* UsedFilesContext::p
private

Definition at line 204 of file context.h.

Referenced by addFile(), at(), count(), createIterator(), UsedFilesContext(), and ~UsedFilesContext().


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