xtensor
Loading...
Searching...
No Matches
xt::extension::xscalar_optional_base< CT > Class Template Reference
Inheritance diagram for xt::extension::xscalar_optional_base< CT >:
xt::extension::xoptional_empty_base< xscalar< CT > >

Public Types

using traits = xscalar_optional_traits<CT>
 
using value_expression = typename traits::value_expression
 
using flag_expression = typename traits::flag_expression
 
using const_value_expression = typename traits::const_value_expression
 
using const_flag_expression = typename traits::const_flag_expression
 
using expression_tag = xoptional_expression_tag
 
- Public Types inherited from xt::extension::xoptional_empty_base< xscalar< 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< xscalar< CT > >
xscalar< CT > & derived_cast () noexcept
 
const xscalar< CT > & derived_cast () const noexcept
 

Detailed Description

template<class CT>
class xt::extension::xscalar_optional_base< CT >

Definition at line 305 of file xoptional.hpp.

Member Typedef Documentation

◆ const_flag_expression

template<class CT >
using xt::extension::xscalar_optional_base< CT >::const_flag_expression = typename traits::const_flag_expression

Definition at line 313 of file xoptional.hpp.

◆ const_value_expression

template<class CT >
using xt::extension::xscalar_optional_base< CT >::const_value_expression = typename traits::const_value_expression

Definition at line 312 of file xoptional.hpp.

◆ expression_tag

Definition at line 314 of file xoptional.hpp.

◆ flag_expression

template<class CT >
using xt::extension::xscalar_optional_base< CT >::flag_expression = typename traits::flag_expression

Definition at line 311 of file xoptional.hpp.

◆ traits

Definition at line 309 of file xoptional.hpp.

◆ value_expression

template<class CT >
using xt::extension::xscalar_optional_base< CT >::value_expression = typename traits::value_expression

Definition at line 310 of file xoptional.hpp.

Member Function Documentation

◆ has_value() [1/2]

template<class CT >
auto xt::extension::xscalar_optional_base< CT >::has_value ( )
inline

Definition at line 917 of file xoptional.hpp.

◆ has_value() [2/2]

template<class CT >
auto xt::extension::xscalar_optional_base< CT >::has_value ( ) const
inline

Definition at line 923 of file xoptional.hpp.

◆ value() [1/2]

template<class CT >
auto xt::extension::xscalar_optional_base< CT >::value ( )
inline

Definition at line 905 of file xoptional.hpp.

◆ value() [2/2]

template<class CT >
auto xt::extension::xscalar_optional_base< CT >::value ( ) const
inline

Definition at line 911 of file xoptional.hpp.


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