DDC 0.0.0

a discrete domain computation library

ddc::DiscreteVector< Tags > Class Template Reference

A DiscreteVector is a vector in the discrete dimension. More...

Inheritance diagram for ddc::DiscreteVector< Tags >:
Inheritance graph

Public Member Functions

KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteVector ()=default
 
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteVector (DiscreteVector const &)=default
 
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteVector (DiscreteVector &&)=default
 
template<class... DVects, class = std::enable_if_t<(is_discrete_vector_v<DVects> && ...)>>
KOKKOS_FUNCTION constexpr DiscreteVector (DVects const &... delems) noexcept
 
template<class... Params, class = std::enable_if_t<(!is_discrete_vector_v<Params> && ...)>, class = std::enable_if_t<(std::is_convertible_v<Params, DiscreteVectorElement> && ...)>, class = std::enable_if_t<sizeof...(Params) == sizeof...(Tags)>>
KOKKOS_FUNCTION constexpr DiscreteVector (Params const &... params) noexcept
 
KOKKOS_DEFAULTED_FUNCTION ~DiscreteVector ()=default
 
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteVectoroperator= (DiscreteVector const &other)=default
 
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteVectoroperator= (DiscreteVector &&other)=default
 
template<class... OTags>
KOKKOS_FUNCTION constexpr DiscreteVectoroperator= (DiscreteVector< OTags... > const &other) noexcept
 
template<class... OTags>
KOKKOS_FUNCTION constexpr DiscreteVectoroperator= (DiscreteVector< OTags... > &&other) noexcept
 
template<class... OTags>
KOKKOS_FUNCTION constexpr bool operator== (DiscreteVector< OTags... > const &rhs) const noexcept
 
template<class... OTags>
KOKKOS_FUNCTION constexpr bool operator!= (DiscreteVector< OTags... > const &rhs) const noexcept
 
template<class QueryTag >
KOKKOS_FUNCTION constexpr DiscreteVectorElementget () noexcept
 
template<class QueryTag >
KOKKOS_FUNCTION constexpr DiscreteVectorElement const & get () const noexcept
 
template<class QueryTag >
KOKKOS_FUNCTION constexpr DiscreteVectorElement const & get_or (DiscreteVectorElement const &default_value) const &
 
template<std::size_t N = sizeof...(Tags)>
KOKKOS_FUNCTION constexpr std::enable_if_t< N==1, DiscreteVectorElement const & > value () const noexcept
 
template<std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>>
KOKKOS_FUNCTION constexpr DiscreteVectoroperator++ ()
 
template<std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>>
KOKKOS_FUNCTION constexpr DiscreteVector operator++ (int)
 
template<std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>>
KOKKOS_FUNCTION constexpr DiscreteVectoroperator-- ()
 
template<std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>>
KOKKOS_FUNCTION constexpr DiscreteVector operator-- (int)
 
template<class... OTags>
KOKKOS_FUNCTION constexpr DiscreteVectoroperator+= (DiscreteVector< OTags... > const &rhs)
 
template<class IntegralType , std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>, class = std::enable_if_t<std::is_integral_v<IntegralType>>>
KOKKOS_FUNCTION constexpr DiscreteVectoroperator+= (IntegralType const &rhs)
 
template<class... OTags>
KOKKOS_FUNCTION constexpr DiscreteVectoroperator-= (DiscreteVector< OTags... > const &rhs)
 
template<class IntegralType , std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>, class = std::enable_if_t<std::is_integral_v<IntegralType>>>
KOKKOS_FUNCTION constexpr DiscreteVectoroperator-= (IntegralType const &rhs)
 
template<class... OTags>
KOKKOS_FUNCTION constexpr DiscreteVectoroperator*= (DiscreteVector< OTags... > const &rhs)
 

Static Public Member Functions

static KOKKOS_FUNCTION constexpr std::size_t size () noexcept
 

Detailed Description

template<class... Tags>
class ddc::DiscreteVector< Tags >

A DiscreteVector is a vector in the discrete dimension.

Each is tagged by its associated dimensions.

Constructor & Destructor Documentation

◆ DiscreteVector() [1/5]

template<class... Tags>
KOKKOS_DEFAULTED_FUNCTION constexpr ddc::DiscreteVector< Tags >::DiscreteVector ( )
constexprdefault

◆ DiscreteVector() [2/5]

template<class... Tags>
KOKKOS_DEFAULTED_FUNCTION constexpr ddc::DiscreteVector< Tags >::DiscreteVector ( DiscreteVector< Tags > const &  )
constexprdefault

◆ DiscreteVector() [3/5]

template<class... Tags>
KOKKOS_DEFAULTED_FUNCTION constexpr ddc::DiscreteVector< Tags >::DiscreteVector ( DiscreteVector< Tags > &&  )
constexprdefault

◆ DiscreteVector() [4/5]

template<class... Tags>
template<class... DVects, class = std::enable_if_t<(is_discrete_vector_v<DVects> && ...)>>
KOKKOS_FUNCTION constexpr ddc::DiscreteVector< Tags >::DiscreteVector ( DVects const &...  delems)
inlineexplicitconstexprnoexcept

◆ DiscreteVector() [5/5]

template<class... Tags>
template<class... Params, class = std::enable_if_t<(!is_discrete_vector_v<Params> && ...)>, class = std::enable_if_t<(std::is_convertible_v<Params, DiscreteVectorElement> && ...)>, class = std::enable_if_t<sizeof...(Params) == sizeof...(Tags)>>
KOKKOS_FUNCTION constexpr ddc::DiscreteVector< Tags >::DiscreteVector ( Params const &...  params)
inlineexplicitconstexprnoexcept

◆ ~DiscreteVector()

template<class... Tags>
KOKKOS_DEFAULTED_FUNCTION ddc::DiscreteVector< Tags >::~DiscreteVector ( )
default

Member Function Documentation

◆ size()

template<class... Tags>
static KOKKOS_FUNCTION constexpr std::size_t ddc::DiscreteVector< Tags >::size ( )
inlinestaticconstexprnoexcept

◆ operator=() [1/4]

template<class... Tags>
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteVector & ddc::DiscreteVector< Tags >::operator= ( DiscreteVector< Tags > const &  other)
constexprdefault

◆ operator=() [2/4]

template<class... Tags>
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteVector & ddc::DiscreteVector< Tags >::operator= ( DiscreteVector< Tags > &&  other)
constexprdefault

◆ operator=() [3/4]

template<class... Tags>
template<class... OTags>
KOKKOS_FUNCTION constexpr DiscreteVector & ddc::DiscreteVector< Tags >::operator= ( DiscreteVector< OTags... > const &  other)
inlineconstexprnoexcept

◆ operator=() [4/4]

template<class... Tags>
template<class... OTags>
KOKKOS_FUNCTION constexpr DiscreteVector & ddc::DiscreteVector< Tags >::operator= ( DiscreteVector< OTags... > &&  other)
inlineconstexprnoexcept

◆ operator==()

template<class... Tags>
template<class... OTags>
KOKKOS_FUNCTION constexpr bool ddc::DiscreteVector< Tags >::operator== ( DiscreteVector< OTags... > const &  rhs) const
inlineconstexprnoexcept

◆ operator!=()

template<class... Tags>
template<class... OTags>
KOKKOS_FUNCTION constexpr bool ddc::DiscreteVector< Tags >::operator!= ( DiscreteVector< OTags... > const &  rhs) const
inlineconstexprnoexcept

◆ get() [1/2]

template<class... Tags>
template<class QueryTag >
KOKKOS_FUNCTION constexpr DiscreteVectorElement & ddc::DiscreteVector< Tags >::get ( )
inlineconstexprnoexcept

◆ get() [2/2]

template<class... Tags>
template<class QueryTag >
KOKKOS_FUNCTION constexpr DiscreteVectorElement const & ddc::DiscreteVector< Tags >::get ( ) const
inlineconstexprnoexcept

◆ get_or()

template<class... Tags>
template<class QueryTag >
KOKKOS_FUNCTION constexpr DiscreteVectorElement const & ddc::DiscreteVector< Tags >::get_or ( DiscreteVectorElement const &  default_value) const &
inlineconstexpr

◆ value()

template<class... Tags>
template<std::size_t N = sizeof...(Tags)>
KOKKOS_FUNCTION constexpr std::enable_if_t< N==1, DiscreteVectorElement const & > ddc::DiscreteVector< Tags >::value ( ) const
inlineconstexprnoexcept

◆ operator++() [1/2]

template<class... Tags>
template<std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>>
KOKKOS_FUNCTION constexpr DiscreteVector & ddc::DiscreteVector< Tags >::operator++ ( )
inlineconstexpr

◆ operator++() [2/2]

template<class... Tags>
template<std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>>
KOKKOS_FUNCTION constexpr DiscreteVector ddc::DiscreteVector< Tags >::operator++ ( int  )
inlineconstexpr

◆ operator--() [1/2]

template<class... Tags>
template<std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>>
KOKKOS_FUNCTION constexpr DiscreteVector & ddc::DiscreteVector< Tags >::operator-- ( )
inlineconstexpr

◆ operator--() [2/2]

template<class... Tags>
template<std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>>
KOKKOS_FUNCTION constexpr DiscreteVector ddc::DiscreteVector< Tags >::operator-- ( int  )
inlineconstexpr

◆ operator+=() [1/2]

template<class... Tags>
template<class... OTags>
KOKKOS_FUNCTION constexpr DiscreteVector & ddc::DiscreteVector< Tags >::operator+= ( DiscreteVector< OTags... > const &  rhs)
inlineconstexpr

◆ operator+=() [2/2]

template<class... Tags>
template<class IntegralType , std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>, class = std::enable_if_t<std::is_integral_v<IntegralType>>>
KOKKOS_FUNCTION constexpr DiscreteVector & ddc::DiscreteVector< Tags >::operator+= ( IntegralType const &  rhs)
inlineconstexpr

◆ operator-=() [1/2]

template<class... Tags>
template<class... OTags>
KOKKOS_FUNCTION constexpr DiscreteVector & ddc::DiscreteVector< Tags >::operator-= ( DiscreteVector< OTags... > const &  rhs)
inlineconstexpr

◆ operator-=() [2/2]

template<class... Tags>
template<class IntegralType , std::size_t N = sizeof...(Tags), class = std::enable_if_t<N == 1>, class = std::enable_if_t<std::is_integral_v<IntegralType>>>
KOKKOS_FUNCTION constexpr DiscreteVector & ddc::DiscreteVector< Tags >::operator-= ( IntegralType const &  rhs)
inlineconstexpr

◆ operator*=()

template<class... Tags>
template<class... OTags>
KOKKOS_FUNCTION constexpr DiscreteVector & ddc::DiscreteVector< Tags >::operator*= ( DiscreteVector< OTags... > const &  rhs)
inlineconstexpr

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