sparrow 2.3.1
C++20 idiomatic APIs for the Apache Arrow Columnar Format
Loading...
Searching...
No Matches
array_iterator.hpp
Go to the documentation of this file.
1// Copyright 2024 Man Group Operations Limited
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or mplied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
17#include <cstddef>
18
22
23namespace sparrow
24{
25 class array;
26
28 array_const_iterator,
29 const array,
30 array_traits::value_type,
31 array_traits::const_reference,
32 std::random_access_iterator_tag>
33 {
34 public:
35
38 const array,
41 std::random_access_iterator_tag>;
42 using difference_type = std::ptrdiff_t;
43 using size_type = std::size_t;
44
46
47 private:
48
49 array_const_iterator(const array* array_ptr, size_type index);
50 [[nodiscard]] array_traits::const_reference dereference() const;
51
52 friend class iterator_access;
53 friend class array;
54 };
55}
pointer_index_iterator_base< array_const_iterator, const array, array_traits::value_type, array_traits::const_reference, std::random_access_iterator_tag > base_type
Dynamically typed array encapsulating an Arrow layout.
Definition array_api.hpp:50
#define SPARROW_API
Definition config.hpp:38
mpl::rename< mpl::unique< mpl::transform< detail::array_const_reference_t, all_base_types_t > >, nullable_variant > const_reference
mpl::rename< mpl::transform< detail::array_value_type_t, all_base_types_t >, nullable_variant > value_type