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

#include <context.h>

Inheritance diagram for PageListContext:
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 addPages (const PageSDict &pages)
 
- 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 PageListContextalloc (const PageSDict *pages)
 

Private Member Functions

 PageListContext (const PageSDict *pages)
 
 ~PageListContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 687 of file context.h.

Constructor & Destructor Documentation

PageListContext::PageListContext ( const PageSDict pages)
private

Definition at line 7375 of file context.cpp.

7375  : RefCountedContext("PageListContext")
7376 {
7377  p = new Private;
7378  if (pages) p->addPages(*pages);
7379 }
Private * p
Definition: context.h:704
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
void addPages(const PageSDict &pages)
Definition: context.cpp:7361
PageListContext::~PageListContext ( )
private

Definition at line 7381 of file context.cpp.

7382 {
7383  delete p;
7384 }
Private * p
Definition: context.h:704

Member Function Documentation

void PageListContext::addPages ( const PageSDict pages)
virtual int PageListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 696 of file context.h.

696 { return RefCountedContext::addRef(); }
static PageListContext* PageListContext::alloc ( const PageSDict pages)
inlinestatic

Definition at line 690 of file context.h.

690 { return new PageListContext(pages); }
PageListContext(const PageSDict *pages)
Definition: context.cpp:7375
TemplateVariant PageListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 7392 of file context.cpp.

7393 {
7394  return p->at(index);
7395 }
Private * p
Definition: context.h:704
TemplateVariant at(int index) const
Definition: context.cpp:181
int PageListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 7387 of file context.cpp.

7388 {
7389  return p->count();
7390 }
Private * p
Definition: context.h:704
int count() const
Definition: context.cpp:177
TemplateListIntf::ConstIterator * PageListContext::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 7397 of file context.cpp.

7398 {
7399  return p->createIterator();
7400 }
Private * p
Definition: context.h:704
TemplateListIntf::ConstIterator * createIterator() const
Definition: context.cpp:190
virtual int PageListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 697 of file context.h.

697 { return RefCountedContext::release(); }

Member Data Documentation

Private* PageListContext::p
private

Definition at line 704 of file context.h.


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