sparrow ..
|
Functor for accessing elements in a layout. More...
#include <dictionary_encoded_array.hpp>
Public Types | |
using | layout_type = Layout |
using | storage_type = std::conditional_t<is_const, const layout_type*, layout_type> |
using | return_type |
Public Member Functions | |
constexpr | layout_element_functor ()=default |
Default constructor. | |
constexpr | layout_element_functor (storage_type layout_) |
Constructs a functor with the given layout. | |
constexpr return_type | operator() (std::size_t i) const |
Access operator for getting element at index. | |
Functor for accessing elements in a layout.
Layout | The layout type. |
is_const | Whether the functor provides const access. |
Definition at line 45 of file dictionary_encoded_array.hpp.
using sparrow::layout_element_functor< Layout, is_const >::layout_type = Layout |
Definition at line 49 of file dictionary_encoded_array.hpp.
using sparrow::layout_element_functor< Layout, is_const >::return_type |
Definition at line 51 of file dictionary_encoded_array.hpp.
using sparrow::layout_element_functor< Layout, is_const >::storage_type = std::conditional_t<is_const, const layout_type*, layout_type> |
Definition at line 50 of file dictionary_encoded_array.hpp.
|
constexprdefault |
Default constructor.
|
inlineexplicitconstexpr |
Constructs a functor with the given layout.
layout_ | Pointer to the layout to access. |
Definition at line 64 of file dictionary_encoded_array.hpp.
|
inlinenodiscardconstexpr |
Access operator for getting element at index.
i | The index of the element to access. |
Definition at line 75 of file dictionary_encoded_array.hpp.