LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
|
Random access iterator using the BOOST facade. More...
#include <DensityGrid.hpp>
Public Member Functions | |
DensityGridIterator (const DensityGrid< T > &g, long l) | |
template<typename S > | |
DensityGridIterator (const DensityGridIterator< T, S > &o) | |
loos::GCoord | world () const |
loos::GCoord | coords () const |
DensityGridpoint | grid () const |
Friends | |
class | boost::iterator_core_access |
Random access iterator using the BOOST facade.
This iterator generates a family of iterators for an DensityGrid object. The iterators are random access and provide a "world()" public method that can return the world coordinates of the current iterator location and a "grid()" that returns the grid coordinates. Note that this is a method of the iterator. For example,
the first line will write out the grid value at the origin while the second line will write out the world coords for the origin. On the other hand,
the first line will again write out the grid value at the original, but the second line will be an error...