ode/src/iterator.cpp
author William Roberts <williamr@symbian.org>
Tue, 01 Jun 2010 15:52:55 +0100
branchRCL_3
changeset 27 d304fad47bf4
parent 0 2f259fa3e83a
permissions -rw-r--r--
Conditionally compile out the use of CAlfEffectObserver, to workaround Bug 2846

#include "set.h"

iterator::iterator(set* sc){
    current = 1;
    this->s = sc;
}

iterator::~iterator(){
     delete s;
}

pair iterator::getElem(){
	return s->getElem(this -> current);
}

int iterator::hasNext(){
	if (current == s->length()) return 0;
	else return 1;
}

void iterator::next(){
	if (this->hasNext()) current++;
}

void iterator::setToFirst(){
	current = 1;
}