|
sparrow 2.3.1
C++20 idiomatic APIs for the Apache Arrow Columnar Format
|
Iterator for traversing elements within a list_value. More...
#include <list_value.hpp>
Public Types | |
| using | self_type = list_value_iterator |
| using | base_type |
| using | size_type = size_t |
Public Types inherited from sparrow::pointer_index_iterator_base< list_value_iterator, const array, array_traits::const_reference, array_traits::const_reference, std::random_access_iterator_tag > | |
| using | size_type |
| using | difference_type |
| using | size_type |
| using | difference_type |
Public Member Functions | |
| list_value_iterator () noexcept=default | |
| Default constructor creating an invalid iterator. | |
| list_value_iterator (const array *flat_array, size_type index) | |
| Constructs iterator from the raw flat array and absolute position. | |
Friends | |
| class | iterator_access |
Iterator for traversing elements within a list_value.
This iterator provides random access traversal over the elements contained within a list_value object. It implements the full random access iterator interface, allowing efficient element access, arithmetic operations, and comparison operations.
The iterator maintains a pointer to the parent list_value and an index into the flattened array data, providing O(1) access to any element within the list bounds.
Definition at line 51 of file list_value.hpp.
Definition at line 61 of file list_value.hpp.
Definition at line 60 of file list_value.hpp.
| using sparrow::list_value_iterator::size_type = size_t |
Definition at line 67 of file list_value.hpp.
|
defaultnoexcept |
Default constructor creating an invalid iterator.
Constructs iterator from the raw flat array and absolute position.
| flat_array | Pointer to the flat child array |
| index | Absolute position within the flat array |
|
friend |
Definition at line 92 of file list_value.hpp.