PostGIS  2.3.7dev-r@@SVN_REVISION@@
int lwpointiterator_has_next ( LWPOINTITERATOR s)

Returns LW_TRUE if there is another point available in the iterator.

Definition at line 204 of file lwiterator.c.

References LWPOINTITERATOR::i, LISTNODE::item, LW_FALSE, LW_TRUE, and LWPOINTITERATOR::pointarrays.

Referenced by count_points_using_iterator(), lwpointiterator_modify_next(), lwpointiterator_next(), lwpointiterator_peek(), test_mixed_rw_access(), test_modification(), and test_ordering().

205 {
206  if (s->pointarrays && s->i < ((POINTARRAY*) s->pointarrays->item)->npoints)
207  return LW_TRUE;
208  return LW_FALSE;
209 }
LISTNODE * pointarrays
Definition: lwiterator.c:47
#define LW_FALSE
Definition: liblwgeom.h:76
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75
uint32_t i
Definition: lwiterator.c:48
void * item
Definition: lwiterator.c:32

Here is the caller graph for this function: