hasNext method
Tests whether there are any vertices left to iterator over. Specifically, hasNext() return true if the current state of the iterator represents a valid location on the linear geometry.
@return true
if there are more vertices to scan
Implementation
bool hasNext() {
if (componentIndex >= numLines) return false;
if (componentIndex == numLines - 1 &&
vertexIndex >= currentLine!.getNumPoints()) return false;
return true;
}