sparrow 0.3.0
Loading...
Searching...
No Matches
sparrow::layout_element_functor< Layout, is_const > Class Template Reference

#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
 
constexpr layout_element_functor (storage_type layout_)
 
return_type operator() (std::size_t i) const
 

Detailed Description

template<class Layout, bool is_const>
class sparrow::layout_element_functor< Layout, is_const >

Definition at line 34 of file dictionary_encoded_array.hpp.

Member Typedef Documentation

◆ layout_type

template<class Layout, bool is_const>
using sparrow::layout_element_functor< Layout, is_const >::layout_type = Layout

Definition at line 38 of file dictionary_encoded_array.hpp.

◆ return_type

template<class Layout, bool is_const>
using sparrow::layout_element_functor< Layout, is_const >::return_type
Initial value:
std::
conditional_t<is_const, typename layout_type::const_reference, typename layout_type::reference>

Definition at line 40 of file dictionary_encoded_array.hpp.

◆ storage_type

template<class Layout, bool is_const>
using sparrow::layout_element_functor< Layout, is_const >::storage_type = std::conditional_t<is_const, const layout_type*, layout_type>

Definition at line 39 of file dictionary_encoded_array.hpp.

Constructor & Destructor Documentation

◆ layout_element_functor() [1/2]

template<class Layout, bool is_const>
sparrow::layout_element_functor< Layout, is_const >::layout_element_functor ( )
constexprdefault

◆ layout_element_functor() [2/2]

template<class Layout, bool is_const>
sparrow::layout_element_functor< Layout, is_const >::layout_element_functor ( storage_type layout_)
inlineexplicitconstexpr

Definition at line 45 of file dictionary_encoded_array.hpp.

Member Function Documentation

◆ operator()()

template<class Layout, bool is_const>
return_type sparrow::layout_element_functor< Layout, is_const >::operator() ( std::size_t i) const
inlinenodiscard

Definition at line 50 of file dictionary_encoded_array.hpp.


The documentation for this class was generated from the following file: