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

#include <context.h>

Inheritance diagram for ExampleListContext:
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 ExampleListContextalloc ()
 

Private Member Functions

 ExampleListContext ()
 
 ~ExampleListContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 791 of file context.h.

Constructor & Destructor Documentation

ExampleListContext::ExampleListContext ( )
private

Definition at line 7425 of file context.cpp.

7425  : RefCountedContext("ExampleListContext")
7426 {
7427  p = new Private;
7428 }
Private * p
Definition: context.h:806
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
ExampleListContext::~ExampleListContext ( )
private

Definition at line 7430 of file context.cpp.

7431 {
7432  delete p;
7433 }
Private * p
Definition: context.h:806

Member Function Documentation

virtual int ExampleListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 800 of file context.h.

800 { return RefCountedContext::addRef(); }
static ExampleListContext* ExampleListContext::alloc ( )
inlinestatic

Definition at line 794 of file context.h.

794 { return new ExampleListContext; }
TemplateVariant ExampleListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 7441 of file context.cpp.

7442 {
7443  return p->at(index);
7444 }
Private * p
Definition: context.h:806
TemplateVariant at(int index) const
Definition: context.cpp:181
int ExampleListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 7436 of file context.cpp.

7437 {
7438  return p->count();
7439 }
Private * p
Definition: context.h:806
int count() const
Definition: context.cpp:177
TemplateListIntf::ConstIterator * ExampleListContext::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 7446 of file context.cpp.

7447 {
7448  return p->createIterator();
7449 }
Private * p
Definition: context.h:806
TemplateListIntf::ConstIterator * createIterator() const
Definition: context.cpp:190
virtual int ExampleListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 801 of file context.h.

801 { return RefCountedContext::release(); }

Member Data Documentation

Private* ExampleListContext::p
private

Definition at line 806 of file context.h.


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