Jive reference manual
List of all members | Public Member Functions | Protected Member Functions
jem::util::SequenceEnumerator Class Referenceabstract

#include <jem/util/SequenceEnumerator.h>

Inheritance diagram for jem::util::SequenceEnumerator:
Inheritance graph

Public Member Functions

virtual bool atBegin () const =0
 
virtual void toNext ()
 Advances this enumerator to the next object. More...
 
virtual void toPrevious ()
 
virtual void move (idx_t count)=0
 
virtual void set (const Ref< Object > &obj)=0
 
virtual void insert (const Ref< Object > &obj)=0
 
virtual void erase ()=0
 
- Public Member Functions inherited from jem::util::Enumerator
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual bool atEnd () const =0
 Checks whether this enumerator points to an end object. More...
 
virtual Ref< Objectget () const =0
 Returns the current object. More...
 
- Public Member Functions inherited from jem::Object
virtual String toString () const
 Returns a short textual description of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Protected Member Functions

virtual ~SequenceEnumerator ()
 
void writeError_ () const
 
void moveError_ (idx_t count) const
 
void atEndError_ () const
 
- Protected Member Functions inherited from jem::util::Enumerator
virtual ~Enumerator ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from jem::util::Enumerator
static ClassmakeClass ()
 
static ClassgetType ()
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 

Constructor & Destructor Documentation

virtual jem::util::SequenceEnumerator::~SequenceEnumerator ( )
protectedvirtual

Member Function Documentation

virtual bool jem::util::SequenceEnumerator::atBegin ( ) const
pure virtual
virtual void jem::util::SequenceEnumerator::toNext ( )
virtual

Advances this enumerator to the next object in the collection, or to the end object if there is no next object. This function may not be called if this enumerator already points to the end object.

Precondition
this->atEnd() == false

Implements jem::util::Enumerator.

virtual void jem::util::SequenceEnumerator::toPrevious ( )
virtual
virtual void jem::util::SequenceEnumerator::move ( idx_t  count)
pure virtual
virtual void jem::util::SequenceEnumerator::set ( const Ref< Object > &  obj)
pure virtual
virtual void jem::util::SequenceEnumerator::insert ( const Ref< Object > &  obj)
pure virtual
virtual void jem::util::SequenceEnumerator::erase ( )
pure virtual
void jem::util::SequenceEnumerator::writeError_ ( ) const
protected
void jem::util::SequenceEnumerator::moveError_ ( idx_t  count) const
protected
void jem::util::SequenceEnumerator::atEndError_ ( ) const
protected