sparrow
2.4.0
C++20 idiomatic APIs for the Apache Arrow Columnar Format
Toggle main menu visibility
Loading...
Searching...
No Matches
array_helper.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 "
sparrow/config/config.hpp
"
18
#include "
sparrow/layout/array_wrapper.hpp
"
19
#include "
sparrow/types/data_traits.hpp
"
20
21
// File containing helper functions to avoid bloating the
22
// include chain.
23
24
namespace
sparrow
25
{
26
[[nodiscard]]
SPARROW_API
std::size_t
array_size
(
const
array_wrapper
& ar);
27
28
[[nodiscard]]
SPARROW_API
bool
array_has_value
(
const
array_wrapper
& ar, std::size_t index);
29
30
[[nodiscard]]
SPARROW_API
array_traits::const_reference
31
array_element
(
const
array_wrapper
& ar, std::size_t index);
32
33
[[nodiscard]]
SPARROW_API
array_traits::inner_value_type
34
array_default_element_value
(
const
array_wrapper
& ar);
35
}
array_wrapper.hpp
sparrow::array_wrapper
Base class for array type erasure.
Definition
array_wrapper.hpp:50
config.hpp
SPARROW_API
#define SPARROW_API
Definition
config.hpp:38
data_traits.hpp
sparrow
Definition
array.hpp:21
sparrow::array_size
SPARROW_API std::size_t array_size(const array_wrapper &ar)
sparrow::array_default_element_value
SPARROW_API array_traits::inner_value_type array_default_element_value(const array_wrapper &ar)
sparrow::array_has_value
SPARROW_API bool array_has_value(const array_wrapper &ar, std::size_t index)
sparrow::array_element
SPARROW_API array_traits::const_reference array_element(const array_wrapper &ar, std::size_t index)
sparrow::array_traits::const_reference
mpl::rename< mpl::unique< mpl::transform< detail::array_const_reference_t, all_base_types_t > >, nullable_variant > const_reference
Definition
data_traits.hpp:276
sparrow::array_traits::inner_value_type
mpl::rename< all_base_types_t, std::variant > inner_value_type
Definition
data_traits.hpp:264
sparrow
layout
array_helper.hpp
Generated by
1.17.0