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

#include <context.h>

Inheritance diagram for DirListContext:
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 DirListContextalloc ()
 

Private Member Functions

 DirListContext ()
 
 ~DirListContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 626 of file context.h.

Constructor & Destructor Documentation

DirListContext::DirListContext ( )
private

Definition at line 7054 of file context.cpp.

7054  : RefCountedContext("DirListContext")
7055 {
7056  p = new Private;
7057 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
Private * p
Definition: context.h:641
DirListContext::~DirListContext ( )
private

Definition at line 7059 of file context.cpp.

7060 {
7061  delete p;
7062 }
Private * p
Definition: context.h:641

Member Function Documentation

virtual int DirListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 635 of file context.h.

635 { return RefCountedContext::addRef(); }
static DirListContext* DirListContext::alloc ( )
inlinestatic

Definition at line 629 of file context.h.

629 { return new DirListContext; }
TemplateVariant DirListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 7070 of file context.cpp.

7071 {
7072  return p->at(index);
7073 }
Private * p
Definition: context.h:641
TemplateVariant at(int index) const
Definition: context.cpp:181
int DirListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 7065 of file context.cpp.

7066 {
7067  return p->count();
7068 }
Private * p
Definition: context.h:641
int count() const
Definition: context.cpp:177
TemplateListIntf::ConstIterator * DirListContext::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 7075 of file context.cpp.

7076 {
7077  return p->createIterator();
7078 }
TemplateListIntf::ConstIterator * createIterator() const
Definition: context.cpp:190
Private * p
Definition: context.h:641
virtual int DirListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 636 of file context.h.

636 { return RefCountedContext::release(); }

Member Data Documentation

Private* DirListContext::p
private

Definition at line 641 of file context.h.


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