[MOAB-dev] iMesh_stepIter

James Porter jvporter at wisc.edu
Wed Feb 22 15:45:12 CST 2012


On Wed, 2012-02-22 at 15:38 -0600, Tim Tautges wrote:
> What's the difference between that and getNextEntIter?  If you're likely to want to step over multiple items, wouldn't 
> you already be using an ArrIter?

I'll let Steve chime in on this, but this is part of working with
structured meshes. I think Steve wants to get one element at a time, but
sometimes he needs to skip ahead to get to the elements he cares about.
Since doing that with getNextEntIter is an O(N) operation, it's not as
good as using stepIter, which is O(1), at least for list-type sets.

- Jim



More information about the moab-dev mailing list