Public Member Functions | Protected Attributes | List of all members
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]

Public Member Functions

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

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.

Definition at line 34 of file singleton_item_sequence.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
aItemthe single item in this sequence
virtual zorba::SingletonItemSequence::~SingletonItemSequence ( )
inlinevirtual

Destructor.

Definition at line 78 of file singleton_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::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
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

Item zorba::SingletonItemSequence::theItem
protected

Definition at line 87 of file singleton_item_sequence.h.

unsigned int zorba::SmartObject::theRefCount
mutableprotectedinherited

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