xtensor
Loading...
Searching...
No Matches
xt::xfunction_iterator< F, CT > Class Template Reference
Inheritance diagram for xt::xfunction_iterator< F, CT >:

Public Types

using self_type = xfunction_iterator<F, CT...>
 
using functor_type = typename std::remove_reference<F>::type
 
using xfunction_type = xfunction<F, CT...>
 
using value_type = typename xfunction_type::value_type
 
using reference = typename xfunction_type::value_type
 
using pointer = typename xfunction_type::const_pointer
 
using difference_type = typename xfunction_type::difference_type
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

Broadcasting
template<class... It>
 xfunction_iterator (const xfunction_type *func, It &&... it) noexcept
 
self_typeoperator++ ()
 
self_typeoperator-- ()
 
self_typeoperator+= (difference_type n)
 
self_typeoperator-= (difference_type n)
 
difference_type operator- (const self_type &rhs) const
 
reference operator* () const
 
bool equal (const self_type &rhs) const
 
bool less_than (const self_type &rhs) const
 
template<std::size_t... I>
auto deref_impl (std::index_sequence< I... >) const -> reference
 
template<std::size_t... I>
auto tuple_max_diff (std::index_sequence< I... >, const data_type &lhs, const data_type &rhs) const -> difference_type
 

Detailed Description

template<class F, class... CT>
class xt::xfunction_iterator< F, CT >

Definition at line 413 of file xfunction.hpp.

Member Typedef Documentation

◆ difference_type

template<class F , class... CT>
using xt::xfunction_iterator< F, CT >::difference_type = typename xfunction_type::difference_type

Definition at line 429 of file xfunction.hpp.

◆ functor_type

template<class F , class... CT>
using xt::xfunction_iterator< F, CT >::functor_type = typename std::remove_reference<F>::type

Definition at line 423 of file xfunction.hpp.

◆ iterator_category

template<class F , class... CT>
using xt::xfunction_iterator< F, CT >::iterator_category = std::random_access_iterator_tag

Definition at line 430 of file xfunction.hpp.

◆ pointer

template<class F , class... CT>
using xt::xfunction_iterator< F, CT >::pointer = typename xfunction_type::const_pointer

Definition at line 428 of file xfunction.hpp.

◆ reference

template<class F , class... CT>
using xt::xfunction_iterator< F, CT >::reference = typename xfunction_type::value_type

Definition at line 427 of file xfunction.hpp.

◆ self_type

template<class F , class... CT>
using xt::xfunction_iterator< F, CT >::self_type = xfunction_iterator<F, CT...>

Definition at line 422 of file xfunction.hpp.

◆ value_type

template<class F , class... CT>
using xt::xfunction_iterator< F, CT >::value_type = typename xfunction_type::value_type

Definition at line 426 of file xfunction.hpp.

◆ xfunction_type

template<class F , class... CT>
using xt::xfunction_iterator< F, CT >::xfunction_type = xfunction<F, CT...>

Definition at line 424 of file xfunction.hpp.

Constructor & Destructor Documentation

◆ xfunction_iterator()

template<class F , class... CT>
template<class... It>
xt::xfunction_iterator< F, CT >::xfunction_iterator ( const xfunction_type * func,
It &&... it )
inlinenoexcept

Definition at line 946 of file xfunction.hpp.

Member Function Documentation

◆ deref_impl()

template<class F , class... CT>
template<std::size_t... I>
auto xt::xfunction_iterator< F, CT >::deref_impl ( std::index_sequence< I... > ) const -> reference
inline

Definition at line 1030 of file xfunction.hpp.

◆ equal()

template<class F , class... CT>
bool xt::xfunction_iterator< F, CT >::equal ( const self_type & rhs) const
inline

Definition at line 1009 of file xfunction.hpp.

◆ less_than()

template<class F , class... CT>
bool xt::xfunction_iterator< F, CT >::less_than ( const self_type & rhs) const
inline

Definition at line 1019 of file xfunction.hpp.

◆ operator*()

template<class F , class... CT>
auto xt::xfunction_iterator< F, CT >::operator* ( ) const
inline

Definition at line 1003 of file xfunction.hpp.

◆ operator++()

template<class F , class... CT>
auto xt::xfunction_iterator< F, CT >::operator++ ( )
inline

Definition at line 953 of file xfunction.hpp.

◆ operator+=()

template<class F , class... CT>
auto xt::xfunction_iterator< F, CT >::operator+= ( difference_type n)
inline

Definition at line 975 of file xfunction.hpp.

◆ operator-()

template<class F , class... CT>
auto xt::xfunction_iterator< F, CT >::operator- ( const self_type & rhs) const
inline

Definition at line 997 of file xfunction.hpp.

◆ operator--()

template<class F , class... CT>
auto xt::xfunction_iterator< F, CT >::operator-- ( )
inline

Definition at line 964 of file xfunction.hpp.

◆ operator-=()

template<class F , class... CT>
auto xt::xfunction_iterator< F, CT >::operator-= ( difference_type n)
inline

Definition at line 986 of file xfunction.hpp.

◆ tuple_max_diff()

template<class F , class... CT>
template<std::size_t... I>
auto xt::xfunction_iterator< F, CT >::tuple_max_diff ( std::index_sequence< I... > ,
const data_type & lhs,
const data_type & rhs ) const -> difference_type
inline

Definition at line 1037 of file xfunction.hpp.


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