Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
toolbox::util::ArrayView< ValueT > Class Template Reference

#include <toolbox/util/Array.hpp>

Public Types

using value_type = ValueT
 
using pointer = const ValueT *
 
using const_pointer = const ValueT *
 
using reference = const ValueT &
 
using const_reference = const ValueT &
 
using iterator = const ValueT *
 
using const_iterator = const ValueT *
 
using reverse_iterator = std::reverse_iterator< iterator >
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 
using difference_type = std::ptrdiff_t
 
using size_type = std::size_t
 

Public Member Functions

constexpr ArrayView (const ValueT *ptr, std::size_t len) noexcept
 
template<typename TypeU , std::size_t SizeN>
constexpr ArrayView (TypeU(&arr)[SizeN]) noexcept
 
 ArrayView (const std::vector< ValueT > &arr) noexcept
 
constexpr ArrayView () noexcept=default
 
 ~ArrayView ()=default
 
constexpr ArrayView (const ArrayView &) noexcept=default
 
constexpr ArrayViewoperator= (const ArrayView &) noexcept=default
 
constexpr ArrayView (ArrayView &&) noexcept=default
 
constexpr ArrayViewoperator= (ArrayView &&) noexcept=default
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr const_reverse_iterator rbegin () const noexcept
 
constexpr const_reverse_iterator rend () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator cend () const noexcept
 
constexpr const_reverse_iterator crbegin () const noexcept
 
constexpr const_reverse_iterator crend () const noexcept
 
constexpr const_reference operator[] (size_type pos) const noexcept
 
constexpr const_reference front () const noexcept
 
constexpr const_reference back () const noexcept
 
constexpr const ValueTdata () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr std::size_t size () const noexcept
 
constexpr void clear () noexcept
 
void swap (ArrayView &rhs) noexcept
 

Detailed Description

template<typename ValueT>
class toolbox::util::ArrayView< ValueT >

Definition at line 32 of file Array.hpp.

Member Typedef Documentation

◆ value_type

Definition at line 34 of file Array.hpp.

◆ pointer

Definition at line 36 of file Array.hpp.

◆ const_pointer

template<typename ValueT >
using toolbox::util::ArrayView< ValueT >::const_pointer = const ValueT*

Definition at line 37 of file Array.hpp.

◆ reference

Definition at line 39 of file Array.hpp.

◆ const_reference

template<typename ValueT >
using toolbox::util::ArrayView< ValueT >::const_reference = const ValueT&

Definition at line 40 of file Array.hpp.

◆ iterator

Definition at line 42 of file Array.hpp.

◆ const_iterator

template<typename ValueT >
using toolbox::util::ArrayView< ValueT >::const_iterator = const ValueT*

Definition at line 43 of file Array.hpp.

◆ reverse_iterator

template<typename ValueT >
using toolbox::util::ArrayView< ValueT >::reverse_iterator = std::reverse_iterator<iterator>

Definition at line 45 of file Array.hpp.

◆ const_reverse_iterator

template<typename ValueT >
using toolbox::util::ArrayView< ValueT >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Definition at line 46 of file Array.hpp.

◆ difference_type

template<typename ValueT >
using toolbox::util::ArrayView< ValueT >::difference_type = std::ptrdiff_t

Definition at line 48 of file Array.hpp.

◆ size_type

template<typename ValueT >
using toolbox::util::ArrayView< ValueT >::size_type = std::size_t

Definition at line 49 of file Array.hpp.

Constructor & Destructor Documentation

◆ ArrayView() [1/6]

template<typename ValueT >
constexpr toolbox::util::ArrayView< ValueT >::ArrayView ( const ValueT ptr,
std::size_t  len 
)
inlineconstexprnoexcept

Definition at line 51 of file Array.hpp.

◆ ArrayView() [2/6]

template<typename ValueT >
template<typename TypeU , std::size_t SizeN>
constexpr toolbox::util::ArrayView< ValueT >::ArrayView ( TypeU(&)  arr[SizeN])
inlineconstexprnoexcept

Definition at line 57 of file Array.hpp.

◆ ArrayView() [3/6]

template<typename ValueT >
toolbox::util::ArrayView< ValueT >::ArrayView ( const std::vector< ValueT > &  arr)
inlinenoexcept

Definition at line 62 of file Array.hpp.

◆ ArrayView() [4/6]

template<typename ValueT >
constexpr toolbox::util::ArrayView< ValueT >::ArrayView ( )
constexprdefaultnoexcept

◆ ~ArrayView()

◆ ArrayView() [5/6]

template<typename ValueT >
constexpr toolbox::util::ArrayView< ValueT >::ArrayView ( const ArrayView< ValueT > &  )
constexprdefaultnoexcept

◆ ArrayView() [6/6]

template<typename ValueT >
constexpr toolbox::util::ArrayView< ValueT >::ArrayView ( ArrayView< ValueT > &&  )
constexprdefaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

template<typename ValueT >
constexpr ArrayView & toolbox::util::ArrayView< ValueT >::operator= ( const ArrayView< ValueT > &  )
constexprdefaultnoexcept

◆ operator=() [2/2]

template<typename ValueT >
constexpr ArrayView & toolbox::util::ArrayView< ValueT >::operator= ( ArrayView< ValueT > &&  )
constexprdefaultnoexcept

◆ begin()

template<typename ValueT >
constexpr const_iterator toolbox::util::ArrayView< ValueT >::begin ( ) const
inlineconstexprnoexcept

◆ end()

template<typename ValueT >
constexpr const_iterator toolbox::util::ArrayView< ValueT >::end ( ) const
inlineconstexprnoexcept

◆ rbegin()

template<typename ValueT >
constexpr const_reverse_iterator toolbox::util::ArrayView< ValueT >::rbegin ( ) const
inlineconstexprnoexcept

Definition at line 80 of file Array.hpp.

◆ rend()

template<typename ValueT >
constexpr const_reverse_iterator toolbox::util::ArrayView< ValueT >::rend ( ) const
inlineconstexprnoexcept

Definition at line 84 of file Array.hpp.

◆ cbegin()

template<typename ValueT >
constexpr const_iterator toolbox::util::ArrayView< ValueT >::cbegin ( ) const
inlineconstexprnoexcept

Definition at line 88 of file Array.hpp.

◆ cend()

template<typename ValueT >
constexpr const_iterator toolbox::util::ArrayView< ValueT >::cend ( ) const
inlineconstexprnoexcept

Definition at line 89 of file Array.hpp.

◆ crbegin()

template<typename ValueT >
constexpr const_reverse_iterator toolbox::util::ArrayView< ValueT >::crbegin ( ) const
inlineconstexprnoexcept

Definition at line 90 of file Array.hpp.

◆ crend()

template<typename ValueT >
constexpr const_reverse_iterator toolbox::util::ArrayView< ValueT >::crend ( ) const
inlineconstexprnoexcept

Definition at line 94 of file Array.hpp.

◆ operator[]()

template<typename ValueT >
constexpr const_reference toolbox::util::ArrayView< ValueT >::operator[] ( size_type  pos) const
inlineconstexprnoexcept

Definition at line 98 of file Array.hpp.

◆ front()

template<typename ValueT >
constexpr const_reference toolbox::util::ArrayView< ValueT >::front ( ) const
inlineconstexprnoexcept

Definition at line 99 of file Array.hpp.

◆ back()

template<typename ValueT >
constexpr const_reference toolbox::util::ArrayView< ValueT >::back ( ) const
inlineconstexprnoexcept

Definition at line 100 of file Array.hpp.

◆ data()

template<typename ValueT >
constexpr const ValueT * toolbox::util::ArrayView< ValueT >::data ( ) const
inlineconstexprnoexcept

Definition at line 101 of file Array.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ empty()

template<typename ValueT >
constexpr bool toolbox::util::ArrayView< ValueT >::empty ( ) const
inlineconstexprnoexcept

Definition at line 102 of file Array.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ size()

template<typename ValueT >
constexpr std::size_t toolbox::util::ArrayView< ValueT >::size ( ) const
inlineconstexprnoexcept

Definition at line 103 of file Array.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ clear()

template<typename ValueT >
constexpr void toolbox::util::ArrayView< ValueT >::clear ( )
inlineconstexprnoexcept

Definition at line 104 of file Array.hpp.

◆ swap()

template<typename ValueT >
void toolbox::util::ArrayView< ValueT >::swap ( ArrayView< ValueT > &  rhs)
inlinenoexcept

Definition at line 109 of file Array.hpp.


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