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

#include <context.h>

Inheritance diagram for ModuleListContext:
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 addModules (const GroupSDict &)
 
void addModules (const GroupList &)
 
- 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 ModuleListContextalloc ()
 

Private Member Functions

 ModuleListContext ()
 
 ~ModuleListContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 748 of file context.h.

Constructor & Destructor Documentation

ModuleListContext::ModuleListContext ( )
private

Definition at line 7471 of file context.cpp.

7471  : RefCountedContext("ModuleListContext")
7472 {
7473  p = new Private;
7474  p->addModules();
7475 }
Private * p
Definition: context.h:766
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
ModuleListContext::~ModuleListContext ( )
private

Definition at line 7477 of file context.cpp.

7478 {
7479  delete p;
7480 }
Private * p
Definition: context.h:766

Member Function Documentation

void ModuleListContext::addModules ( const GroupSDict )
void ModuleListContext::addModules ( const GroupList )
virtual int ModuleListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 757 of file context.h.

757 { return RefCountedContext::addRef(); }
static ModuleListContext* ModuleListContext::alloc ( )
inlinestatic

Definition at line 751 of file context.h.

751 { return new ModuleListContext(); }
TemplateVariant ModuleListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 7488 of file context.cpp.

7489 {
7490  return p->at(index);
7491 }
Private * p
Definition: context.h:766
TemplateVariant at(int index) const
Definition: context.cpp:181
int ModuleListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 7483 of file context.cpp.

7484 {
7485  return p->count();
7486 }
Private * p
Definition: context.h:766
int count() const
Definition: context.cpp:177
TemplateListIntf::ConstIterator * ModuleListContext::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 7493 of file context.cpp.

7494 {
7495  return p->createIterator();
7496 }
Private * p
Definition: context.h:766
TemplateListIntf::ConstIterator * createIterator() const
Definition: context.cpp:190
virtual int ModuleListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 758 of file context.h.

758 { return RefCountedContext::release(); }

Member Data Documentation

Private* ModuleListContext::p
private

Definition at line 766 of file context.h.


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