![]() |
Fréchet View
1.6.0
A Tool for Exploring Fréchet Distance Algorithms
|
an integer iterator that goes in "spirals", like this:
i, i+1, i-1, i+2, i-2, ...
It is used for searching a range of numbers, preferring values "in the middle".
Definition at line 16 of file spirolator.h.
#include <spirolator.h>
Public Member Functions | |
| Spirolator (int amin, int amax) | |
| constructor with number range More... | |
| operator bool () | |
| operator int () | |
| Spirolator & | operator++ () |
| advance the iterator More... | |
Private Attributes | |
| int | min |
| minimum value More... | |
| int | max |
| maximaum value More... | |
| int | current |
| current value More... | |
| int | increment |
| increment for next step More... | |
|
inline |
constructor with number range
| amin | minimum value, inclusive |
| amax | maximum value, exclusive |
Definition at line 28 of file spirolator.h.
|
inline |
Definition at line 34 of file spirolator.h.
|
inline |
Definition at line 38 of file spirolator.h.
|
inline |
advance the iterator
Definition at line 43 of file spirolator.h.
|
private |
current value
Definition at line 20 of file spirolator.h.
|
private |
increment for next step
Definition at line 21 of file spirolator.h.
|
private |
maximaum value
Definition at line 19 of file spirolator.h.
|
private |
minimum value
Definition at line 18 of file spirolator.h.