@@ -13,7 +13,7 @@ namespace pdal
1313{
1414 namespace capi
1515 {
16- class PDAL_C_API PointViewIterator
16+ class PointViewIterator
1717 {
1818 public:
1919 PointViewIterator (const pdal::PointViewSet& views);
@@ -32,13 +32,39 @@ namespace pdal
3232#include < stdbool.h> // for bool
3333#endif /* __cplusplus */
3434
35- PDAL_C_API bool PDALHasNextPointView (PDALPointViewIteratorPtr collection);
35+ /* *
36+ * Returns whether another point view is available in the provided iterator.
37+ *
38+ * @param itr A pointer to the point view iterator
39+ * @return Whether another point view is available
40+ */
41+ PDAL_C_API bool PDALHasNextPointView (PDALPointViewIteratorPtr itr);
3642
37- PDAL_C_API PDALPointViewPtr PDALGetNextPointView (PDALPointViewIteratorPtr collection);
43+ /* *
44+ * Returns the next available point view in the provided iterator.
45+ *
46+ * @note The caller obtains ownership of the data structure pointed by the returned value.
47+ * Use PDALDisposePointView to free the point view data structure.
48+ *
49+ * @param itr A pointer to the point view iterator
50+ * @return The next point view in the iterator or NULL if none available
51+ */
52+ PDAL_C_API PDALPointViewPtr PDALGetNextPointView (PDALPointViewIteratorPtr itr);
3853
39- PDAL_C_API void PDALResetPointViewIterator (PDALPointViewIteratorPtr collection);
54+ /* *
55+ * Resets the provided point view iterator to its starting position.
56+ *
57+ * @param itr A pointer to the point view iterator
58+ */
59+ PDAL_C_API void PDALResetPointViewIterator (PDALPointViewIteratorPtr itr);
60+
61+ /* *
62+ * Disposes the provided point view iterator.
63+ *
64+ * @param itr A pointer to the point view iterator
65+ */
66+ PDAL_C_API void PDALDisposePointViewIterator (PDALPointViewIteratorPtr itr);
4067
41- PDAL_C_API void PDALDisposePointViewIterator (PDALPointViewIteratorPtr collection);
4268#ifdef __cplusplus
4369 }
4470 }
0 commit comments