A sequence that contains only one item. More...
#include <zorba/singleton_item_sequence.h>
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 |
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
Definition at line 34 of file singleton_item_sequence.h.
zorba::SingletonItemSequence::SingletonItemSequence | ( | const Item & | aItem | ) |
Constructor.
aItem | the single item in this sequence |
virtual zorba::SingletonItemSequence::~SingletonItemSequence | ( | ) | [inline, virtual] |
Destructor.
Definition at line 78 of file singleton_item_sequence.h.
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
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.
Item zorba::SingletonItemSequence::theItem [protected] |
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.