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

Public Types

using expression_tag = xoptional_expression_tag
 
using uvt = typename std::decay_t<CT>::value_expression
 
using uft = typename std::decay_t<CT>::flag_expression
 
using ucvt = typename std::decay_t<CT>::const_value_expression
 
using ucft = typename std::decay_t<CT>::const_flag_expression
 
using value_expression = xfunctor_view<F, uvt>
 
using flag_expression = uft
 
using const_value_expression = xfunctor_view<F, ucvt>
 
using const_flag_expression = ucft
 
- Public Types inherited from xt::extension::xoptional_empty_base< xfunctor_view< F, CT > >
using expression_tag
 

Public Member Functions

value_expression value ()
 
const_value_expression value () const
 
flag_expression has_value ()
 
const_flag_expression has_value () const
 

Additional Inherited Members

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

Detailed Description

template<class F, class CT>
class xt::extension::xfunctor_view_optional< F, CT >

Definition at line 587 of file xoptional.hpp.

Member Typedef Documentation

◆ const_flag_expression

template<class F , class CT >
using xt::extension::xfunctor_view_optional< F, CT >::const_flag_expression = ucft

Definition at line 599 of file xoptional.hpp.

◆ const_value_expression

template<class F , class CT >
using xt::extension::xfunctor_view_optional< F, CT >::const_value_expression = xfunctor_view<F, ucvt>

Definition at line 598 of file xoptional.hpp.

◆ expression_tag

Definition at line 591 of file xoptional.hpp.

◆ flag_expression

template<class F , class CT >
using xt::extension::xfunctor_view_optional< F, CT >::flag_expression = uft

Definition at line 597 of file xoptional.hpp.

◆ ucft

template<class F , class CT >
using xt::extension::xfunctor_view_optional< F, CT >::ucft = typename std::decay_t<CT>::const_flag_expression

Definition at line 595 of file xoptional.hpp.

◆ ucvt

template<class F , class CT >
using xt::extension::xfunctor_view_optional< F, CT >::ucvt = typename std::decay_t<CT>::const_value_expression

Definition at line 594 of file xoptional.hpp.

◆ uft

template<class F , class CT >
using xt::extension::xfunctor_view_optional< F, CT >::uft = typename std::decay_t<CT>::flag_expression

Definition at line 593 of file xoptional.hpp.

◆ uvt

template<class F , class CT >
using xt::extension::xfunctor_view_optional< F, CT >::uvt = typename std::decay_t<CT>::value_expression

Definition at line 592 of file xoptional.hpp.

◆ value_expression

template<class F , class CT >
using xt::extension::xfunctor_view_optional< F, CT >::value_expression = xfunctor_view<F, uvt>

Definition at line 596 of file xoptional.hpp.

Member Function Documentation

◆ has_value() [1/2]

template<class F , class CT >
auto xt::extension::xfunctor_view_optional< F, CT >::has_value ( )
inline

Definition at line 1072 of file xoptional.hpp.

◆ has_value() [2/2]

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

Definition at line 1078 of file xoptional.hpp.

◆ value() [1/2]

template<class F , class CT >
auto xt::extension::xfunctor_view_optional< F, CT >::value ( )
inline

Definition at line 1060 of file xoptional.hpp.

◆ value() [2/2]

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

Definition at line 1066 of file xoptional.hpp.


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