sparrow 2.4.0
C++20 idiomatic APIs for the Apache Arrow Columnar Format
Loading...
Searching...
No Matches
sparrow::repeat_view< T > Class Template Reference

A view that repeats a value a given number of times. More...

#include <repeat_container.hpp>

Inheritance diagram for sparrow::repeat_view< T >:
[legend]
Collaboration diagram for sparrow::repeat_view< T >:
[legend]

Public Types

using storage_traits = detail::repeat_view_storage_traits<T>
 
using value_type = typename storage_traits::value_type
 
using self_type = repeat_view<T>
 
using const_iterator = repeat_view_iterator<value_type>
 

Public Member Functions

constexpr repeat_view (typename storage_traits::constructor_reference value, size_t count) noexcept(std::is_nothrow_constructible_v< typename storage_traits::storage_type, typename storage_traits::constructor_reference >)
 Constructs a repeat_view.
 
constexpr repeat_view (value_type &&value, size_t count) noexcept(std::is_nothrow_move_constructible_v< value_type >)
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator cend () const noexcept
 
constexpr size_t size () const noexcept
 

Detailed Description

template<typename T>
class sparrow::repeat_view< T >

A view that repeats a value a given number of times.

Examples
/home/runner/work/sparrow/sparrow/include/sparrow/variable_size_binary_view_array.hpp.

Definition at line 99 of file repeat_container.hpp.

Member Typedef Documentation

◆ const_iterator

template<typename T>
using sparrow::repeat_view< T >::const_iterator = repeat_view_iterator<value_type>

Definition at line 106 of file repeat_container.hpp.

◆ self_type

template<typename T>
using sparrow::repeat_view< T >::self_type = repeat_view<T>

Definition at line 105 of file repeat_container.hpp.

◆ storage_traits

template<typename T>
using sparrow::repeat_view< T >::storage_traits = detail::repeat_view_storage_traits<T>

Definition at line 103 of file repeat_container.hpp.

◆ value_type

template<typename T>
using sparrow::repeat_view< T >::value_type = typename storage_traits::value_type

Definition at line 104 of file repeat_container.hpp.

Constructor & Destructor Documentation

◆ repeat_view() [1/2]

template<typename T>
sparrow::repeat_view< T >::repeat_view ( typename storage_traits::constructor_reference value,
size_t count )
constexprnoexcept

Constructs a repeat_view.

Parameters
valueThe value to repeat
countThe number of times to repeat the value

Definition at line 192 of file repeat_container.hpp.

◆ repeat_view() [2/2]

template<typename T>
requires (!std::is_reference_v<T>)
sparrow::repeat_view< T >::repeat_view ( value_type && value,
size_t count )
constexprnoexcept

Definition at line 201 of file repeat_container.hpp.

Member Function Documentation

◆ begin()

template<typename T>
auto sparrow::repeat_view< T >::begin ( ) const
constexprnoexcept

Definition at line 218 of file repeat_container.hpp.

◆ cbegin()

template<typename T>
auto sparrow::repeat_view< T >::cbegin ( ) const
constexprnoexcept

Definition at line 230 of file repeat_container.hpp.

◆ cend()

template<typename T>
auto sparrow::repeat_view< T >::cend ( ) const
constexprnoexcept

Definition at line 236 of file repeat_container.hpp.

◆ end()

template<typename T>
auto sparrow::repeat_view< T >::end ( ) const
constexprnoexcept

Definition at line 224 of file repeat_container.hpp.

◆ size()

template<typename T>
size_t sparrow::repeat_view< T >::size ( ) const
nodiscardconstexprnoexcept

Definition at line 242 of file repeat_container.hpp.


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