Logo ROOT   6.08/07
Reference Guide
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
std::__ROOT::array_view< T > Class Template Reference

template<class T>
class std::__ROOT::array_view< T >

Definition at line 148 of file rhysd_array_view.hxx.

Public Types

typedef value_type const * const_iterator
 
typedef value_type const * const_pointer
 
typedef value_type const & const_reference
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef ptrdiff_t difference_type
 
typedef value_type const * iterator
 
typedef value_type const * pointer
 
typedef value_type const & reference
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef size_t size_type
 
typedef T value_type
 

Public Member Functions

constexpr array_view () noexcept
 
constexpr array_view (array_view const &) noexcept=default
 
constexpr array_view (array_view &&) noexcept=default
 
template<size_type N>
 array_view (std::array< T, N > const &a) noexcept
 
template<size_type N>
 array_view (T const (&a)[N]) noexcept
 
 array_view (std::vector< T > const &v) noexcept
 
constexpr array_view (T const *a, size_type const n) noexcept
 
template<class InputIterator , class = typename std::enable_if< std::is_same< T, typename std::iterator_traits<InputIterator>::value_type >::value >::type>
 array_view (InputIterator start, InputIterator last)
 
 array_view (std::initializer_list< T > const &l)
 
constexpr const_reference at (size_type const n) const
 
constexpr const_reference back () const noexcept
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator cend () const noexcept
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
constexpr const_pointer data () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr const_reference front () const noexcept
 
constexpr size_type length () const noexcept
 
constexpr size_type max_size () const noexcept
 
array_viewoperator= (array_view const &) noexcept=delete
 
array_viewoperator= (array_view &&) noexcept=delete
 
constexpr const_reference operator[] (size_type const n) const noexcept
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
constexpr size_type size () const noexcept
 
constexpr array_view< T > slice (check_bound_t, size_type const pos, size_type const slicelen) const
 
constexpr array_view< T > slice (size_type const pos, size_type const slicelen) const
 
constexpr array_view< T > slice (check_bound_t, iterator start, iterator last) const
 
constexpr array_view< T > slice (iterator start, iterator last) const
 
constexpr array_view< T > slice_after (check_bound_t, size_type const pos) const
 
constexpr array_view< T > slice_after (size_type const pos) const
 
constexpr array_view< T > slice_after (check_bound_t, iterator const pos) const
 
constexpr array_view< T > slice_after (iterator const pos) const
 
constexpr array_view< T > slice_before (check_bound_t, size_type const pos) const
 
constexpr array_view< T > slice_before (size_type const pos) const
 
constexpr array_view< T > slice_before (check_bound_t, iterator const pos) const
 
constexpr array_view< T > slice_before (iterator const pos) const
 
template<size_t N>
auto to_array () const -> std::array< T, N >
 
template<class Allocator = std::allocator<T>>
auto to_vector (Allocator const &alloc=Allocator{}) const -> std::vector< T, Allocator >
 

Private Member Functions

template<size_t... I>
auto to_array_impl (detail::indices< I... >) const -> std::array< T, sizeof...(I)>
 

Private Attributes

const_pointer const data_
 
size_type const length_
 

#include <ROOT/rhysd_array_view.hxx>

Member Typedef Documentation

◆ const_iterator

template<class T>
typedef value_type const* std::__ROOT::array_view< T >::const_iterator

Definition at line 159 of file rhysd_array_view.hxx.

◆ const_pointer

template<class T>
typedef value_type const* std::__ROOT::array_view< T >::const_pointer

Definition at line 155 of file rhysd_array_view.hxx.

◆ const_reference

template<class T>
typedef value_type const& std::__ROOT::array_view< T >::const_reference

Definition at line 157 of file rhysd_array_view.hxx.

◆ const_reverse_iterator

template<class T>
typedef std::reverse_iterator<const_iterator> std::__ROOT::array_view< T >::const_reverse_iterator

Definition at line 163 of file rhysd_array_view.hxx.

◆ difference_type

template<class T>
typedef ptrdiff_t std::__ROOT::array_view< T >::difference_type

Definition at line 161 of file rhysd_array_view.hxx.

◆ iterator

template<class T>
typedef value_type const* std::__ROOT::array_view< T >::iterator

Definition at line 158 of file rhysd_array_view.hxx.

◆ pointer

template<class T>
typedef value_type const* std::__ROOT::array_view< T >::pointer

Definition at line 154 of file rhysd_array_view.hxx.

◆ reference

template<class T>
typedef value_type const& std::__ROOT::array_view< T >::reference

Definition at line 156 of file rhysd_array_view.hxx.

◆ reverse_iterator

template<class T>
typedef std::reverse_iterator<iterator> std::__ROOT::array_view< T >::reverse_iterator

Definition at line 162 of file rhysd_array_view.hxx.

◆ size_type

template<class T>
typedef size_t std::__ROOT::array_view< T >::size_type

Definition at line 160 of file rhysd_array_view.hxx.

◆ value_type

template<class T>
typedef T std::__ROOT::array_view< T >::value_type

Definition at line 153 of file rhysd_array_view.hxx.

Constructor & Destructor Documentation

◆ array_view() [1/9]

template<class T>
constexpr std::__ROOT::array_view< T >::array_view ( )
inlinenoexcept

Definition at line 168 of file rhysd_array_view.hxx.

◆ array_view() [2/9]

template<class T>
constexpr std::__ROOT::array_view< T >::array_view ( array_view< T > const &  )
defaultnoexcept

◆ array_view() [3/9]

template<class T>
constexpr std::__ROOT::array_view< T >::array_view ( array_view< T > &&  )
defaultnoexcept

◆ array_view() [4/9]

template<class T>
template<size_type N>
std::__ROOT::array_view< T >::array_view ( std::array< T, N > const &  a)
inlinenoexcept

Definition at line 178 of file rhysd_array_view.hxx.

◆ array_view() [5/9]

template<class T>
template<size_type N>
std::__ROOT::array_view< T >::array_view ( T const (&)  a[N])
inlinenoexcept

Definition at line 185 of file rhysd_array_view.hxx.

◆ array_view() [6/9]

template<class T>
std::__ROOT::array_view< T >::array_view ( std::vector< T > const &  v)
inlinenoexcept

Definition at line 191 of file rhysd_array_view.hxx.

◆ array_view() [7/9]

template<class T>
constexpr std::__ROOT::array_view< T >::array_view ( T const *  a,
size_type const  n 
)
inlinenoexcept

Definition at line 195 of file rhysd_array_view.hxx.

◆ array_view() [8/9]

template<class T>
template<class InputIterator , class = typename std::enable_if< std::is_same< T, typename std::iterator_traits<InputIterator>::value_type >::value >::type>
std::__ROOT::array_view< T >::array_view ( InputIterator  start,
InputIterator  last 
)
inlineexplicit

Definition at line 208 of file rhysd_array_view.hxx.

◆ array_view() [9/9]

template<class T>
std::__ROOT::array_view< T >::array_view ( std::initializer_list< T > const &  l)
inline

Definition at line 212 of file rhysd_array_view.hxx.

Member Function Documentation

◆ at()

template<class T>
constexpr const_reference std::__ROOT::array_view< T >::at ( size_type const  n) const
inline

Definition at line 278 of file rhysd_array_view.hxx.

◆ back()

template<class T>
constexpr const_reference std::__ROOT::array_view< T >::back ( ) const
inlinenoexcept

Definition at line 291 of file rhysd_array_view.hxx.

◆ begin()

template<class T>
constexpr const_iterator std::__ROOT::array_view< T >::begin ( ) const
inlinenoexcept

Definition at line 222 of file rhysd_array_view.hxx.

◆ cbegin()

template<class T>
constexpr const_iterator std::__ROOT::array_view< T >::cbegin ( ) const
inlinenoexcept

Definition at line 230 of file rhysd_array_view.hxx.

◆ cend()

template<class T>
constexpr const_iterator std::__ROOT::array_view< T >::cend ( ) const
inlinenoexcept

Definition at line 234 of file rhysd_array_view.hxx.

◆ crbegin()

template<class T>
const_reverse_iterator std::__ROOT::array_view< T >::crbegin ( ) const
inline

Definition at line 246 of file rhysd_array_view.hxx.

◆ crend()

template<class T>
const_reverse_iterator std::__ROOT::array_view< T >::crend ( ) const
inline

Definition at line 250 of file rhysd_array_view.hxx.

◆ data()

template<class T>
constexpr const_pointer std::__ROOT::array_view< T >::data ( ) const
inlinenoexcept

Definition at line 283 of file rhysd_array_view.hxx.

◆ empty()

template<class T>
constexpr bool std::__ROOT::array_view< T >::empty ( ) const
inlinenoexcept

Definition at line 270 of file rhysd_array_view.hxx.

◆ end()

template<class T>
constexpr const_iterator std::__ROOT::array_view< T >::end ( ) const
inlinenoexcept

Definition at line 226 of file rhysd_array_view.hxx.

◆ front()

template<class T>
constexpr const_reference std::__ROOT::array_view< T >::front ( ) const
inlinenoexcept

Definition at line 287 of file rhysd_array_view.hxx.

◆ length()

template<class T>
constexpr size_type std::__ROOT::array_view< T >::length ( ) const
inlinenoexcept

Definition at line 262 of file rhysd_array_view.hxx.

◆ max_size()

template<class T>
constexpr size_type std::__ROOT::array_view< T >::max_size ( ) const
inlinenoexcept

Definition at line 266 of file rhysd_array_view.hxx.

◆ operator=() [1/2]

template<class T>
array_view& std::__ROOT::array_view< T >::operator= ( array_view< T > const &  )
deletenoexcept

◆ operator=() [2/2]

template<class T>
array_view& std::__ROOT::array_view< T >::operator= ( array_view< T > &&  )
deletenoexcept

◆ operator[]()

template<class T>
constexpr const_reference std::__ROOT::array_view< T >::operator[] ( size_type const  n) const
inlinenoexcept

Definition at line 274 of file rhysd_array_view.hxx.

◆ rbegin()

template<class T>
const_reverse_iterator std::__ROOT::array_view< T >::rbegin ( ) const
inline

Definition at line 238 of file rhysd_array_view.hxx.

◆ rend()

template<class T>
const_reverse_iterator std::__ROOT::array_view< T >::rend ( ) const
inline

Definition at line 242 of file rhysd_array_view.hxx.

◆ size()

template<class T>
constexpr size_type std::__ROOT::array_view< T >::size ( ) const
inlinenoexcept

Definition at line 258 of file rhysd_array_view.hxx.

◆ slice() [1/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice ( check_bound_t  ,
size_type const  pos,
size_type const  slicelen 
) const
inline

Definition at line 301 of file rhysd_array_view.hxx.

◆ slice() [2/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice ( size_type const  pos,
size_type const  slicelen 
) const
inline

Definition at line 324 of file rhysd_array_view.hxx.

◆ slice() [3/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice ( check_bound_t  ,
iterator  start,
iterator  last 
) const
inline

Definition at line 340 of file rhysd_array_view.hxx.

◆ slice() [4/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice ( iterator  start,
iterator  last 
) const
inline

Definition at line 366 of file rhysd_array_view.hxx.

◆ slice_after() [1/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice_after ( check_bound_t  ,
size_type const  pos 
) const
inline

Definition at line 315 of file rhysd_array_view.hxx.

◆ slice_after() [2/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice_after ( size_type const  pos) const
inline

Definition at line 332 of file rhysd_array_view.hxx.

◆ slice_after() [3/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice_after ( check_bound_t  ,
iterator const  pos 
) const
inline

Definition at line 357 of file rhysd_array_view.hxx.

◆ slice_after() [4/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice_after ( iterator const  pos) const
inline

Definition at line 374 of file rhysd_array_view.hxx.

◆ slice_before() [1/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice_before ( check_bound_t  ,
size_type const  pos 
) const
inline

Definition at line 308 of file rhysd_array_view.hxx.

◆ slice_before() [2/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice_before ( size_type const  pos) const
inline

Definition at line 328 of file rhysd_array_view.hxx.

◆ slice_before() [3/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice_before ( check_bound_t  ,
iterator const  pos 
) const
inline

Definition at line 350 of file rhysd_array_view.hxx.

◆ slice_before() [4/4]

template<class T>
constexpr array_view<T> std::__ROOT::array_view< T >::slice_before ( iterator const  pos) const
inline

Definition at line 370 of file rhysd_array_view.hxx.

◆ to_array()

template<class T>
template<size_t N>
auto std::__ROOT::array_view< T >::to_array ( ) const -> std::array<T, N>
inline

Definition at line 392 of file rhysd_array_view.hxx.

◆ to_array_impl()

template<class T>
template<size_t... I>
auto std::__ROOT::array_view< T >::to_array_impl ( detail::indices< I... >  ) const -> std::array<T, sizeof...(I)>
inlineprivate

Definition at line 399 of file rhysd_array_view.hxx.

◆ to_vector()

template<class T>
template<class Allocator = std::allocator<T>>
auto std::__ROOT::array_view< T >::to_vector ( Allocator const &  alloc = Allocator{}) const -> std::vector<T, Allocator>
inline

Definition at line 385 of file rhysd_array_view.hxx.

Member Data Documentation

◆ data_

template<class T>
const_pointer const std::__ROOT::array_view< T >::data_
private

Definition at line 407 of file rhysd_array_view.hxx.

◆ length_

template<class T>
size_type const std::__ROOT::array_view< T >::length_
private

Definition at line 406 of file rhysd_array_view.hxx.


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