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::ConstIteratorcreateIterator () 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 7093 of file context.cpp.

7093  : RefCountedContext("UsedFilesContext")
7094 {
7095  p = new Private;
7096  if (cd)
7097  {
7099  FileDef *fd;
7100  for (li.toFirst();(fd=li.current());++li)
7101  {
7102  p->addFile(fd);
7103  }
7104  }
7105 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
void addFile(FileDef *fd)
Definition: context.cpp:7087
Private * p
Definition: context.h:204
type * current() const
Definition: qlist.h:146
const FileList & usedFiles() const
Definition: classdef.cpp:4723
UsedFilesContext::~UsedFilesContext ( )
private

Definition at line 7107 of file context.cpp.

7108 {
7109  delete p;
7110 }
Private * p
Definition: context.h:204

Member Function Documentation

void UsedFilesContext::addFile ( FileDef fd)

Definition at line 7128 of file context.cpp.

7129 {
7130  p->addFile(fd);
7131 }
void addFile(FileDef *fd)
Definition: context.cpp:7087
Private * p
Definition: context.h:204
virtual int UsedFilesContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 195 of file context.h.

195 { return RefCountedContext::addRef(); }
static UsedFilesContext* UsedFilesContext::alloc ( ClassDef cd)
inlinestatic

Definition at line 189 of file context.h.

189 { return new UsedFilesContext(cd); }
UsedFilesContext(ClassDef *cd)
Definition: context.cpp:7093
TemplateVariant UsedFilesContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 7118 of file context.cpp.

7119 {
7120  return p->at(index);
7121 }
Private * p
Definition: context.h:204
TemplateVariant at(int index) const
Definition: context.cpp:181
int UsedFilesContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 7113 of file context.cpp.

7114 {
7115  return p->count();
7116 }
Private * p
Definition: context.h:204
int count() const
Definition: context.cpp:177
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 7123 of file context.cpp.

7124 {
7125  return p->createIterator();
7126 }
Private * p
Definition: context.h:204
TemplateListIntf::ConstIterator * createIterator() const
Definition: context.cpp:190
virtual int UsedFilesContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 196 of file context.h.

196 { return RefCountedContext::release(); }

Member Data Documentation

Private* UsedFilesContext::p
private

Definition at line 204 of file context.h.


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