xtensor
Loading...
Searching...
No Matches
xt::extension::xreducer_optional< F, CT, X, O > Class Template Reference
Inheritance diagram for xt::extension::xreducer_optional< F, CT, X, O >:
xt::extension::xoptional_empty_base< xreducer< F, CT, X, O > >

Public Types

using expression_tag = xoptional_expression_tag
 
using result_type = typename F::init_value_type
 
using rebound_result_type = typename result_type::value_type
 
using rebound_functors_type = typename F::template rebind_t<rebound_result_type>
 
using rebound_reduce_options_values = typename O::template rebind_t<rebound_result_type>
 
using rebound_reduce_options_flag = typename O::template rebind_t<bool>
 
using flag_reducer = xreducer_functors<xt::detail::optional_bitwise<bool>, xt::const_value<bool>>
 
using flag_expression = xreducer<flag_reducer, xt::detail::flag_expression_t<CT>, X, rebound_reduce_options_flag>
 
using value_expression = xreducer<rebound_functors_type, xt::detail::value_expression_t<CT>, X, rebound_reduce_options_values>
 
using const_value_expression = value_expression
 
using const_flag_expression = flag_expression
 
- Public Types inherited from xt::extension::xoptional_empty_base< xreducer< F, CT, X, O > >
using expression_tag
 

Public Member Functions

const_value_expression value () const
 
const_flag_expression has_value () const
 

Additional Inherited Members

- Protected Member Functions inherited from xt::extension::xoptional_empty_base< xreducer< F, CT, X, O > >
xreducer< F, CT, X, O > & derived_cast () noexcept
 
const xreducer< F, CT, X, O > & derived_cast () const noexcept
 

Detailed Description

template<class F, class CT, class X, class O>
class xt::extension::xreducer_optional< F, CT, X, O >

Definition at line 657 of file xoptional.hpp.

Member Typedef Documentation

◆ const_flag_expression

template<class F , class CT , class X , class O >
using xt::extension::xreducer_optional< F, CT, X, O >::const_flag_expression = flag_expression

Definition at line 674 of file xoptional.hpp.

◆ const_value_expression

template<class F , class CT , class X , class O >
using xt::extension::xreducer_optional< F, CT, X, O >::const_value_expression = value_expression

Definition at line 673 of file xoptional.hpp.

◆ expression_tag

Definition at line 661 of file xoptional.hpp.

◆ flag_expression

template<class F , class CT , class X , class O >
using xt::extension::xreducer_optional< F, CT, X, O >::flag_expression = xreducer<flag_reducer, xt::detail::flag_expression_t<CT>, X, rebound_reduce_options_flag>

Definition at line 670 of file xoptional.hpp.

◆ flag_reducer

template<class F , class CT , class X , class O >
using xt::extension::xreducer_optional< F, CT, X, O >::flag_reducer = xreducer_functors<xt::detail::optional_bitwise<bool>, xt::const_value<bool>>

Definition at line 669 of file xoptional.hpp.

◆ rebound_functors_type

template<class F , class CT , class X , class O >
using xt::extension::xreducer_optional< F, CT, X, O >::rebound_functors_type = typename F::template rebind_t<rebound_result_type>

Definition at line 665 of file xoptional.hpp.

◆ rebound_reduce_options_flag

template<class F , class CT , class X , class O >
using xt::extension::xreducer_optional< F, CT, X, O >::rebound_reduce_options_flag = typename O::template rebind_t<bool>

Definition at line 667 of file xoptional.hpp.

◆ rebound_reduce_options_values

template<class F , class CT , class X , class O >
using xt::extension::xreducer_optional< F, CT, X, O >::rebound_reduce_options_values = typename O::template rebind_t<rebound_result_type>

Definition at line 666 of file xoptional.hpp.

◆ rebound_result_type

template<class F , class CT , class X , class O >
using xt::extension::xreducer_optional< F, CT, X, O >::rebound_result_type = typename result_type::value_type

Definition at line 664 of file xoptional.hpp.

◆ result_type

template<class F , class CT , class X , class O >
using xt::extension::xreducer_optional< F, CT, X, O >::result_type = typename F::init_value_type

Definition at line 662 of file xoptional.hpp.

◆ value_expression

template<class F , class CT , class X , class O >
using xt::extension::xreducer_optional< F, CT, X, O >::value_expression = xreducer<rebound_functors_type, xt::detail::value_expression_t<CT>, X, rebound_reduce_options_values>

Definition at line 671 of file xoptional.hpp.

Member Function Documentation

◆ has_value()

template<class F , class CT , class X , class O >
auto xt::extension::xreducer_optional< F, CT, X, O >::has_value ( ) const
inline

Definition at line 1138 of file xoptional.hpp.

◆ value()

template<class F , class CT , class X , class O >
auto xt::extension::xreducer_optional< F, CT, X, O >::value ( ) const
inline

Definition at line 1122 of file xoptional.hpp.


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