From 92bf9d2cf81228b259eda6f166562a7c8536438f Mon Sep 17 00:00:00 2001 From: Alexis Placet Date: Fri, 19 Apr 2024 11:36:26 +0200 Subject: [PATCH] Add documentation --- include/sparrow/c_interface.hpp | 108 +++++++++++++++++++++++++++----- test/test_c_data_interface.cpp | 8 +-- 2 files changed, 98 insertions(+), 18 deletions(-) diff --git a/include/sparrow/c_interface.hpp b/include/sparrow/c_interface.hpp index 730eee5e..a82664e3 100644 --- a/include/sparrow/c_interface.hpp +++ b/include/sparrow/c_interface.hpp @@ -66,7 +66,14 @@ extern "C" namespace sparrow { + /** + * Holds the allocator for the buffers of an ArrowArray. + * + * @tparam BufferType The type of the buffers. + * @tparam Allocator An allocator for BufferType. + */ template class Allocator> + requires sparrow::allocator> struct ArrowArrayPrivateData { ArrowArrayPrivateData() @@ -82,7 +89,13 @@ namespace sparrow any_allocator buffer_allocator; }; + /** + * Holds the allocator for the strings of an ArrowSchema. + * + * @tparam Allocator An allocator for char. + */ template