head	1.2;
access;
symbols
	bobbase:1.2
	bob:1.2;
locks; strict;
comment	@// @;


1.2
date	94.10.05.16.23.24;	author ljr;	state Exp;
branches;
next	1.1;

1.1
date	94.10.03.21.01.43;	author thoth;	state Exp;
branches;
next	;


desc
@ValueSet iterator implementation.
@


1.2
log
@added #include "VSIter.h" for BC++
@
text
@// Emacs -*- C++ -*-

//
//	Copyright 1994, Center for Computer Vision and Visualization,
//	University of Florida.  All rights reserved.
//

//
// $Log: VSIter.c,v $
// Revision 1.1  1994/10/03  21:01:43  thoth
// Initial revision
//

#include "VSIter.h"

template <class T>
IA_BaseSetIter<T> *
IA_ValueSetIter<T>:: clone_self() const
{
    return new IA_ValueSetIter<T>(*this);
}

template <class T>
int
IA_ValueSetIter<T>::next(T &val)
{
    if (idx >= vsp()->size)
	return 0;

    val = vsp()->value_array[idx++];
    return 1;
}

template <class T>
void
IA_ValueSetIter<T>::reset()
{
    idx = 0;
}
@


1.1
log
@Initial revision
@
text
@d10 5
@
