xtensor
Loading...
Searching...
No Matches
xt::xcontainer_semantic< D > Class Template Reference

Implementation of the xsemantic_base interface for dense multidimensional containers. More...

#include <xsemantic.hpp>

Inheritance diagram for xt::xcontainer_semantic< D >:
xt::xsemantic_base< D > xt::xarray_adaptor< value_container &, L, SC > xt::xarray_adaptor< flag_container &, L, SC > xt::xarray_adaptor< const value_container &, L, SC > xt::xarray_adaptor< const flag_container &, L, SC > xt::xarray_adaptor< EC, L, SC, xoptional_expression_tag > xt::xarray_container< temporary_container_t< storage_type >, L, SC, Tag > xt::xarray_container< uvector< T, A >, L, xt::svector< typename uvector< T, A >::size_type, 4, SA, true > > xt::xarray_container< xtl::xoptional_vector< T, A, BC >, L, xt::svector< typename uvector< T, A >::size_type, 4, SA, true >, xoptional_expression_tag > xt::xarray_container< EC, L, SC, xoptional_expression_tag > xt::xfixed_container< typename storage_type::value_type, S, L, SH, Tag > xt::xfixed_container< T, FSH, L, Sharable > xt::xoptional_assembly< raw_value_expression, raw_flag_expression > xt::xtensor_adaptor< value_container &, N, L > xt::xtensor_adaptor< flag_container &, N, L > xt::xtensor_adaptor< const value_container &, N, L > xt::xtensor_adaptor< const flag_container &, N, L > xt::xtensor_adaptor< EC, N, L, xoptional_expression_tag > xt::xtensor_container< temporary_container_t< storage_type >, N, L, Tag > xt::xtensor_container< uvector< T, A >, N, L > xt::xtensor_container< xtl::xoptional_vector< T, A, BC >, N, L, xoptional_expression_tag > xt::xtensor_container< std::vector< T, A >, 2, layout_type::row_major > xt::xtensor_container< EC, N, L, xoptional_expression_tag >

Public Types

using base_type = xsemantic_base<D>
using derived_type = D
using temporary_type = typename base_type::temporary_type
Public Types inherited from xt::xsemantic_base< D >
using base_type = select_expression_base_t<D>
using derived_type = typename base_type::derived_type
using temporary_type = typename xcontainer_inner_types<D>::temporary_type

Protected Member Functions

 xcontainer_semantic (const xcontainer_semantic &)=default
xcontainer_semantic & operator= (const xcontainer_semantic &)=default
 xcontainer_semantic (xcontainer_semantic &&)=default
xcontainer_semantic & operator= (xcontainer_semantic &&)=default
Protected Member Functions inherited from xt::xsemantic_base< D >
 xsemantic_base (const xsemantic_base &)=default
xsemantic_base & operator= (const xsemantic_base &)=default
 xsemantic_base (xsemantic_base &&)=default
xsemantic_base & operator= (xsemantic_base &&)=default
template<class E>
derived_type & operator= (const xexpression< E > &)

Assign functions

derived_type & assign_temporary (temporary_type &&)
 Assigns the temporary tmp to *this.
template<class E>
derived_type & assign_xexpression (const xexpression< E > &e)
template<class E>
derived_type & computed_assign (const xexpression< E > &e)
template<class E, class F>
derived_type & scalar_computed_assign (const E &e, F &&f)
template<class E>
derived_type & operator= (const xexpression< E > &)

Additional Inherited Members

Public Member Functions inherited from xt::xsemantic_base< D >
template<class E>
disable_xexpression< E, derived_type & > operator+= (const E &)
 Adds the scalar e to *this.
template<class E>
disable_xexpression< E, derived_type & > operator-= (const E &)
 Subtracts the scalar e from *this.
template<class E>
disable_xexpression< E, derived_type & > operator*= (const E &)
 Multiplies *this with the scalar e.
template<class E>
disable_xexpression< E, derived_type & > operator/= (const E &)
 Divides *this by the scalar e.
template<class E>
disable_xexpression< E, derived_type & > operator%= (const E &)
 Computes the remainder of *this after division by the scalar e.
template<class E>
disable_xexpression< E, derived_type & > operator&= (const E &)
 Computes the bitwise and of *this and the scalar e and assigns it to *this.
template<class E>
disable_xexpression< E, derived_type & > operator|= (const E &)
 Computes the bitwise or of *this and the scalar e and assigns it to *this.
template<class E>
disable_xexpression< E, derived_type & > operator^= (const E &)
 Computes the bitwise xor of *this and the scalar e and assigns it to *this.
template<class E>
derived_type & operator+= (const xexpression< E > &)
 Adds the xexpression e to *this.
template<class E>
derived_type & operator-= (const xexpression< E > &)
 Subtracts the xexpression e from *this.
template<class E>
derived_type & operator*= (const xexpression< E > &)
 Multiplies *this with the xexpression e.
template<class E>
derived_type & operator/= (const xexpression< E > &)
 Divides *this by the xexpression e.
template<class E>
derived_type & operator%= (const xexpression< E > &)
 Computes the remainder of *this after division by the xexpression e.
template<class E>
derived_type & operator&= (const xexpression< E > &)
 Computes the bitwise and of *this and the xexpression e and assigns it to *this.
template<class E>
derived_type & operator|= (const xexpression< E > &)
 Computes the bitwise or of *this and the xexpression e and assigns it to *this.
template<class E>
derived_type & operator^= (const xexpression< E > &)
 Computes the bitwise xor of *this and the xexpression e and assigns it to *this.
template<class E>
derived_type & assign (const xexpression< E > &)
 Assigns the xexpression e to *this.
template<class E>
derived_type & plus_assign (const xexpression< E > &)
 Adds the xexpression e to *this.
template<class E>
derived_type & minus_assign (const xexpression< E > &)
 Subtracts the xexpression e to *this.
template<class E>
derived_type & multiplies_assign (const xexpression< E > &)
 Multiplies *this with the xexpression e.
template<class E>
derived_type & divides_assign (const xexpression< E > &)
 Divides *this by the xexpression e.
template<class E>
derived_type & modulus_assign (const xexpression< E > &)
 Computes the remainder of *this after division by the xexpression e.
template<class E>
derived_type & bit_and_assign (const xexpression< E > &)
 Computes the bitwise and of e to *this.
template<class E>
derived_type & bit_or_assign (const xexpression< E > &)
 Computes the bitwise or of e to *this.
template<class E>
derived_type & bit_xor_assign (const xexpression< E > &)
 Computes the bitwise xor of e to *this.

Detailed Description

template<class D>
class xt::xcontainer_semantic< D >

Implementation of the xsemantic_base interface for dense multidimensional containers.

The xcontainer_semantic class is an implementation of the xsemantic_base interface for dense multidimensional containers.

Template Parameters
Dthe derived type

Definition at line 177 of file xsemantic.hpp.

Member Typedef Documentation

◆ base_type

template<class D>
using xt::xcontainer_semantic< D >::base_type = xsemantic_base<D>

Definition at line 181 of file xsemantic.hpp.

◆ derived_type

template<class D>
using xt::xcontainer_semantic< D >::derived_type = D

Definition at line 182 of file xsemantic.hpp.

◆ temporary_type

template<class D>
using xt::xcontainer_semantic< D >::temporary_type = typename base_type::temporary_type

Definition at line 183 of file xsemantic.hpp.

Member Function Documentation

◆ assign_temporary()

template<class D>
auto xt::xcontainer_semantic< D >::assign_temporary ( temporary_type && tmp)
inline

Assigns the temporary tmp to *this.

Parameters
tmpthe temporary to assign.
Returns
a reference to *this.

Definition at line 652 of file xsemantic.hpp.

◆ assign_xexpression()

template<class D>
template<class E>
auto xt::xcontainer_semantic< D >::assign_xexpression ( const xexpression< E > & e) -> derived_type &
inline

Definition at line 659 of file xsemantic.hpp.

◆ computed_assign()

template<class D>
template<class E>
auto xt::xcontainer_semantic< D >::computed_assign ( const xexpression< E > & e) -> derived_type &
inline

Definition at line 667 of file xsemantic.hpp.

◆ operator=()

template<class D>
template<class E>
auto xt::xcontainer_semantic< D >::operator= ( const xexpression< E > & e) -> derived_type &
inlineprotected

Definition at line 683 of file xsemantic.hpp.

◆ scalar_computed_assign()

template<class D>
template<class E, class F>
auto xt::xcontainer_semantic< D >::scalar_computed_assign ( const E & e,
F && f ) -> derived_type &
inline

Definition at line 675 of file xsemantic.hpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/xtensor/xtensor/include/xtensor/core/xsemantic.hpp