Classes | Public Member Functions | Protected Attributes
zorba::SingletonItemSequence Class Reference

A sequence that contains only one item. More...

#include <zorba/singleton_item_sequence.h>

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

List of all members.

Classes

class  InternalIterator

Public Member Functions

void addReference () const
virtual void free ()
virtual Iterator_t getIterator ()
 get the Iterator over the single item
long getRefCount () const
void removeReference ()
 SingletonItemSequence (const Item &aItem)
 Constructor.
virtual ~SingletonItemSequence ()
 Destructor.

Protected Attributes

Item theItem
unsigned int theRefCount

Detailed Description

A sequence that contains only one item.

This class is an implementation of the ItemSequence. Objects of this class are backed by an iterator that returns on the first next call, the Item that is passed to this class' constructor.

See ItemSequence

Examples:

datamanager.cpp, serialization.cpp, and simple.cpp.


Constructor & Destructor Documentation

zorba::SingletonItemSequence::SingletonItemSequence ( const Item aItem)

Constructor.

Parameters:
aItemthe single item in this sequence
virtual zorba::SingletonItemSequence::~SingletonItemSequence ( ) [inline, virtual]

Destructor.

Definition at line 78 of file singleton_item_sequence.h.


Member Function Documentation

void zorba::SmartObject::addReference ( ) const [inline, inherited]

Definition at line 40 of file smart_ptr.h.

virtual void zorba::SmartObject::free ( ) [virtual, inherited]
virtual Iterator_t zorba::SingletonItemSequence::getIterator ( ) [virtual]

get the Iterator over the single item

Returns:
an iterator over the one item

Implements zorba::ItemSequence.

long zorba::SmartObject::getRefCount ( ) const [inline, inherited]

Definition at line 38 of file smart_ptr.h.

void zorba::SmartObject::removeReference ( ) [inline, inherited]

Definition at line 42 of file smart_ptr.h.


Member Data Documentation

Definition at line 87 of file singleton_item_sequence.h.

unsigned int zorba::SmartObject::theRefCount [mutable, protected, inherited]

Definition at line 27 of file smart_ptr.h.


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