Public Member Functions | Protected Attributes
zorba::VectorItemSequence Class Reference

This class is an implementation of the ItemSequence. More...

#include <zorba/vector_item_sequence.h>

Inheritance diagram for zorba::VectorItemSequence:
Inheritance graph
[legend]
Collaboration diagram for zorba::VectorItemSequence:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void addReference () const
virtual void free ()
virtual Iterator_t getIterator ()
 get the Iterator over the items vector
long getRefCount () const
void removeReference ()
 VectorItemSequence (const std::vector< Item > &aSequence)
 Constructor.
virtual ~VectorItemSequence ()
 Destructor.

Protected Attributes

unsigned int theRefCount
std::vector< ItemtheSequence

Detailed Description

This class is an implementation of the ItemSequence.

    Objects of this class return, on each next call, an
    Item of the vector that is passed to this object.

See ItemSequence

Examples:
external_functions.cpp.

Definition at line 34 of file vector_item_sequence.h.


Constructor & Destructor Documentation

zorba::VectorItemSequence::VectorItemSequence ( const std::vector< Item > &  aSequence)

Constructor.

Parameters:
aSequencethe vector containing the sequence of Items
virtual zorba::VectorItemSequence::~VectorItemSequence ( )
inlinevirtual

Destructor.

Definition at line 80 of file vector_item_sequence.h.


Member Function Documentation

void zorba::SmartObject::addReference ( ) const
inlineinherited

Definition at line 40 of file smart_ptr.h.

virtual void zorba::SmartObject::free ( )
virtualinherited
virtual Iterator_t zorba::VectorItemSequence::getIterator ( )
virtual

get the Iterator over the items vector

Returns:
an iterator over the items

Implements zorba::ItemSequence.

long zorba::SmartObject::getRefCount ( ) const
inlineinherited

Definition at line 38 of file smart_ptr.h.

void zorba::SmartObject::removeReference ( )
inlineinherited

Definition at line 42 of file smart_ptr.h.


Member Data Documentation

unsigned int zorba::SmartObject::theRefCount
mutableprotectedinherited

Definition at line 27 of file smart_ptr.h.

std::vector<Item> zorba::VectorItemSequence::theSequence
protected

Definition at line 88 of file vector_item_sequence.h.


The documentation for this class was generated from the following file:
blog comments powered by Disqus