xtensor
Loading...
Searching...
No Matches
xt::extension::xfunction_optional_base< F, CT > Class Template Reference
Inheritance diagram for xt::extension::xfunction_optional_base< F, CT >:
xt::extension::xoptional_empty_base< xfunction< F, CT... > >

Public Types

using expression_tag = xoptional_expression_tag
 
using value_functor = F
 
using flag_functor = xt::detail::optional_bitwise<bool>
 
using value_expression = xfunction<value_functor, xt::detail::value_expression_t<CT>...>
 
using flag_expression = xfunction<flag_functor, xt::detail::flag_expression_t<CT>...>
 
using const_value_expression = value_expression
 
using const_flag_expression = flag_expression
 
- Public Types inherited from xt::extension::xoptional_empty_base< xfunction< F, CT... > >
using expression_tag
 

Public Member Functions

const_value_expression value () const
 
const_flag_expression has_value () const
 
template<std::size_t... I>
auto value_impl (std::index_sequence< I... >) const -> const_value_expression
 
template<std::size_t... I>
auto has_value_impl (std::index_sequence< I... >) const -> const_flag_expression
 

Additional Inherited Members

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

Detailed Description

template<class F, class... CT>
class xt::extension::xfunction_optional_base< F, CT >

Definition at line 485 of file xoptional.hpp.

Member Typedef Documentation

◆ const_flag_expression

template<class F , class... CT>
using xt::extension::xfunction_optional_base< F, CT >::const_flag_expression = flag_expression

Definition at line 496 of file xoptional.hpp.

◆ const_value_expression

template<class F , class... CT>
using xt::extension::xfunction_optional_base< F, CT >::const_value_expression = value_expression

Definition at line 495 of file xoptional.hpp.

◆ expression_tag

template<class F , class... CT>
using xt::extension::xfunction_optional_base< F, CT >::expression_tag = xoptional_expression_tag

Definition at line 489 of file xoptional.hpp.

◆ flag_expression

template<class F , class... CT>
using xt::extension::xfunction_optional_base< F, CT >::flag_expression = xfunction<flag_functor, xt::detail::flag_expression_t<CT>...>

Definition at line 494 of file xoptional.hpp.

◆ flag_functor

template<class F , class... CT>
using xt::extension::xfunction_optional_base< F, CT >::flag_functor = xt::detail::optional_bitwise<bool>

Definition at line 491 of file xoptional.hpp.

◆ value_expression

template<class F , class... CT>
using xt::extension::xfunction_optional_base< F, CT >::value_expression = xfunction<value_functor, xt::detail::value_expression_t<CT>...>

Definition at line 493 of file xoptional.hpp.

◆ value_functor

template<class F , class... CT>
using xt::extension::xfunction_optional_base< F, CT >::value_functor = F

Definition at line 490 of file xoptional.hpp.

Member Function Documentation

◆ has_value()

template<class F , class... CT>
auto xt::extension::xfunction_optional_base< F, CT >::has_value ( ) const
inline

Definition at line 973 of file xoptional.hpp.

◆ has_value_impl()

template<class F , class... CT>
template<std::size_t... I>
auto xt::extension::xfunction_optional_base< F, CT >::has_value_impl ( std::index_sequence< I... > ) const -> const_flag_expression
inline

Definition at line 991 of file xoptional.hpp.

◆ value()

template<class F , class... CT>
auto xt::extension::xfunction_optional_base< F, CT >::value ( ) const
inline

Definition at line 967 of file xoptional.hpp.

◆ value_impl()

template<class F , class... CT>
template<std::size_t... I>
auto xt::extension::xfunction_optional_base< F, CT >::value_impl ( std::index_sequence< I... > ) const -> const_value_expression
inline

Definition at line 980 of file xoptional.hpp.


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