#include <jem/util/ObjectSequence.h>
virtual jem::util::ObjectSequence::~ObjectSequence |
( |
| ) |
|
|
protectedvirtual |
Ref<SeqEnum> jem::util::ObjectSequence::enumerate |
( |
| ) |
const |
virtual Ref<Enumerator> jem::util::ObjectSequence::getEnumerator |
( |
| ) |
const |
|
virtual |
Returns an Enumerator
that can be used to iterate over all objects in this collection. This object collection may not be structurally modified as long as one or more enumerators are pointing to it.
Implements jem::util::ObjectCollection.
virtual Ref<SeqEnum> jem::util::ObjectSequence::getSeqEnum |
( |
| ) |
const |
|
pure virtual |
virtual void jem::util::ObjectSequence::insert |
( |
idx_t |
idx, |
|
|
const Ref< Object > & |
obj |
|
) |
| |
|
pure virtual |
virtual void jem::util::ObjectSequence::insertSpace |
( |
idx_t |
idx, |
|
|
idx_t |
count |
|
) |
| |
|
virtual |
virtual void jem::util::ObjectSequence::erase |
( |
idx_t |
idx | ) |
|
|
pure virtual |
virtual void jem::util::ObjectSequence::eraseRange |
( |
idx_t |
first, |
|
|
idx_t |
last |
|
) |
| |
|
virtual |
virtual Ref<Object> jem::util::ObjectSequence::get |
( |
idx_t |
idx | ) |
const |
|
pure virtual |
virtual void jem::util::ObjectSequence::set |
( |
idx_t |
idx, |
|
|
const Ref< Object > & |
obj |
|
) |
| |
|
pure virtual |
virtual bool jem::util::ObjectSequence::add |
( |
const Ref< Object > & |
obj | ) |
|
|
virtual |
Requests that the object obj is added to this collection. This function returns true
if the object has been added, and false
otherwise. An implementation of this function does not have to add the object if it is already present in this collection and if all objects in this collection should be unique.
This function may not be called if an enumerator points to this collection.
- Parameters
-
obj | - the object to be added. |
- Returns
true
if the object has been added to this collection, and false
otherwise.
Implements jem::util::ObjectCollection.
Reimplemented in jem::util::ObjectList.
virtual Ref<Object> jem::util::ObjectSequence::front |
( |
| ) |
const |
|
virtual |
virtual Ref<Object> jem::util::ObjectSequence::back |
( |
| ) |
const |
|
virtual |
virtual void jem::util::ObjectSequence::pushBack |
( |
const Ref< Object > & |
obj | ) |
|
|
virtual |
virtual void jem::util::ObjectSequence::pushFront |
( |
const Ref< Object > & |
obj | ) |
|
|
virtual |
virtual void jem::util::ObjectSequence::popBack |
( |
| ) |
|
|
virtual |
virtual void jem::util::ObjectSequence::popFront |
( |
| ) |
|
|
virtual |
virtual void jem::util::ObjectSequence::clear |
( |
| ) |
|
|
virtual |
void jem::util::ObjectSequence::emptyError_ |
( |
| ) |
const |
|
protected |
void jem::util::ObjectSequence::indexError_ |
( |
idx_t |
idx | ) |
const |
|
protected |
void jem::util::ObjectSequence::indexError_ |
( |
idx_t |
idx, |
|
|
idx_t |
ubound |
|
) |
| const |
|
protected |