Skip to content

Commit 27d76bc

Browse files
committed
Clean up Doxygen comments
1 parent e4bf20e commit 27d76bc

File tree

4 files changed

+43
-10
lines changed

4 files changed

+43
-10
lines changed

source/pdal/capi/Forward.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ namespace pdal
4040

4141
#endif /* __cplusplus */
4242

43-
/// A pointer to a C++ pdal::capi::PDALDimTypeList
43+
/// A pointer to a dimension type list
4444
typedef void* PDALDimTypeListPtr;
4545

46-
/// A pointer to a C++ pdal::capi::Pipeline object
46+
/// A pointer to a pipeline
4747
typedef void* PDALPipelinePtr;
4848

49-
/// A pointer to a C++ pdal::PointLayout
49+
/// A pointer to a point layout
5050
typedef void* PDALPointLayoutPtr;
5151

52-
/// A pointer to a C++ pdal::capi::PointView object
52+
/// A pointer to point view
5353
typedef void* PDALPointViewPtr;
5454

55-
/// A pointer to a C++ pdal::capi::PointViewIterator object
55+
/// A pointer to a point view iterator
5656
typedef void* PDALPointViewIteratorPtr;
5757

5858
#endif /* PDAL_CAPI_FORWARD_H */

source/pdal/capi/Pipeline.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ namespace pdal
113113
/**
114114
* Gets the resulting point views from a pipeline execution.
115115
*
116+
* @note The caller obtains ownership of the point view iterator pointed by the
117+
* returned value and its associated point view collection. Use PDALDisposePointViewIterator
118+
* to free these data structures.
119+
*
116120
* @param pipeline The pipeline
117121
* @return A pointer to a point view collection or nullptr if no point views are available
118122
*/

source/pdal/capi/PointView.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ namespace pdal
9191

9292
/**
9393
* Returns the point layout for the provided point `view`.
94+
*
95+
* @note This point view retains ownership of the
96+
* layout pointed by the return value. Do not free the returned pointer.
9497
*
9598
* @param view The point view
9699
* @return The point layout

source/pdal/capi/PointViewIterator.h

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)