DDC 0.5.0
Loading...
Searching...
No Matches
ddc::StorageDiscreteDomain< DDims > Class Template Reference

#include <storage_discrete_domain.hpp>

Collaboration diagram for ddc::StorageDiscreteDomain< DDims >:
Collaboration graph

Public Types

using discrete_element_type = DiscreteElement< DDims... >
 
using discrete_vector_type = DiscreteVector< DDims... >
 

Public Member Functions

KOKKOS_DEFAULTED_FUNCTION StorageDiscreteDomain ()=default
 
template<class... DDoms, class = std::enable_if_t<(is_storage_discrete_domain_v<DDoms> && ...)>>
KOKKOS_FUNCTION constexpr StorageDiscreteDomain (DDoms const &... domains)
 Construct a StorageDiscreteDomain by copies and merge of domains.
 
 StorageDiscreteDomain (Kokkos::View< DiscreteElement< DDims > *, Kokkos::SharedSpace > const &... views)
 Construct a StorageDiscreteDomain with Kokkos::View explicitly listing the discrete elements.
 
KOKKOS_DEFAULTED_FUNCTION StorageDiscreteDomain (StorageDiscreteDomain const &x)=default
 
KOKKOS_DEFAULTED_FUNCTION StorageDiscreteDomain (StorageDiscreteDomain &&x)=default
 
KOKKOS_DEFAULTED_FUNCTION ~StorageDiscreteDomain ()=default
 
KOKKOS_DEFAULTED_FUNCTION StorageDiscreteDomainoperator= (StorageDiscreteDomain const &x)=default
 
KOKKOS_DEFAULTED_FUNCTION StorageDiscreteDomainoperator= (StorageDiscreteDomain &&x)=default
 
template<class... ODims>
KOKKOS_FUNCTION constexpr bool operator== (StorageDiscreteDomain< ODims... > const &other) const
 
template<class... ODims>
KOKKOS_FUNCTION constexpr bool operator!= (StorageDiscreteDomain< ODims... > const &other) const
 
KOKKOS_FUNCTION constexpr std::size_t size () const
 
KOKKOS_FUNCTION constexpr discrete_vector_type extents () const noexcept
 
KOKKOS_FUNCTION constexpr auto discrete_elements () const noexcept
 
template<class QueryDDim >
KOKKOS_FUNCTION constexpr DiscreteVector< QueryDDimextent () const noexcept
 
KOKKOS_FUNCTION constexpr discrete_element_type front () const noexcept
 
KOKKOS_FUNCTION constexpr discrete_element_type back () const noexcept
 
KOKKOS_FUNCTION constexpr StorageDiscreteDomain take_first (discrete_vector_type n) const
 
KOKKOS_FUNCTION constexpr StorageDiscreteDomain take_last (discrete_vector_type n) const
 
KOKKOS_FUNCTION constexpr StorageDiscreteDomain remove_first (discrete_vector_type n) const
 
KOKKOS_FUNCTION constexpr StorageDiscreteDomain remove_last (discrete_vector_type n) const
 
KOKKOS_FUNCTION constexpr StorageDiscreteDomain remove (discrete_vector_type n1, discrete_vector_type n2) const
 
KOKKOS_FUNCTION constexpr DiscreteElement< DDims... > operator() (DiscreteVector< DDims... > const &dvect) const noexcept
 
template<class... DElems>
KOKKOS_FUNCTION bool contains (DElems const &... delems) const noexcept
 
template<class... DElems>
KOKKOS_FUNCTION DiscreteVector< DDims... > distance_from_front (DElems const &... delems) const noexcept
 
KOKKOS_FUNCTION constexpr bool empty () const noexcept
 
KOKKOS_FUNCTION constexpr operator bool ()
 
template<std::size_t N = sizeof...(DDims), class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION auto begin () const
 
template<std::size_t N = sizeof...(DDims), class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION auto end () const
 
template<std::size_t N = sizeof...(DDims), class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION auto cbegin () const
 
template<std::size_t N = sizeof...(DDims), class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION auto cend () const
 
template<std::size_t N = sizeof...(DDims), class = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION constexpr decltype(autooperator[] (std::size_t n)
 
template<std::size_t N = sizeof...(DDims), class = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION constexpr decltype(autooperator[] (std::size_t n) const
 

Static Public Member Functions

static KOKKOS_FUNCTION constexpr std::size_t rank ()
 

Friends

template<class... >
class StorageDiscreteDomain
 

Detailed Description

template<class... DDims>
class ddc::StorageDiscreteDomain< DDims >

Definition at line 120 of file storage_discrete_domain.hpp.

Member Typedef Documentation

◆ discrete_element_type

template<class... DDims>
using ddc::StorageDiscreteDomain< DDims >::discrete_element_type = DiscreteElement<DDims...>

Definition at line 126 of file storage_discrete_domain.hpp.

◆ discrete_vector_type

template<class... DDims>
using ddc::StorageDiscreteDomain< DDims >::discrete_vector_type = DiscreteVector<DDims...>

Definition at line 128 of file storage_discrete_domain.hpp.

Constructor & Destructor Documentation

◆ StorageDiscreteDomain() [1/5]

template<class... DDims>
KOKKOS_DEFAULTED_FUNCTION ddc::StorageDiscreteDomain< DDims >::StorageDiscreteDomain ( )
default

◆ StorageDiscreteDomain() [2/5]

template<class... DDims>
template<class... DDoms, class = std::enable_if_t<(is_storage_discrete_domain_v<DDoms> && ...)>>
KOKKOS_FUNCTION constexpr ddc::StorageDiscreteDomain< DDims >::StorageDiscreteDomain ( DDoms const &...  domains)
inlineexplicitconstexpr

Construct a StorageDiscreteDomain by copies and merge of domains.

Definition at line 145 of file storage_discrete_domain.hpp.

◆ StorageDiscreteDomain() [3/5]

template<class... DDims>
ddc::StorageDiscreteDomain< DDims >::StorageDiscreteDomain ( Kokkos::View< DiscreteElement< DDims > *, Kokkos::SharedSpace > const &...  views)
inlineexplicit

Construct a StorageDiscreteDomain with Kokkos::View explicitly listing the discrete elements.

Parameters
viewslist of Kokkos::View

Definition at line 153 of file storage_discrete_domain.hpp.

◆ StorageDiscreteDomain() [4/5]

template<class... DDims>
KOKKOS_DEFAULTED_FUNCTION ddc::StorageDiscreteDomain< DDims >::StorageDiscreteDomain ( StorageDiscreteDomain< DDims > const x)
default

◆ StorageDiscreteDomain() [5/5]

template<class... DDims>
KOKKOS_DEFAULTED_FUNCTION ddc::StorageDiscreteDomain< DDims >::StorageDiscreteDomain ( StorageDiscreteDomain< DDims > &&  x)
default

◆ ~StorageDiscreteDomain()

Member Function Documentation

◆ rank()

template<class... DDims>
static KOKKOS_FUNCTION constexpr std::size_t ddc::StorageDiscreteDomain< DDims >::rank ( )
inlinestaticconstexpr

Definition at line 134 of file storage_discrete_domain.hpp.

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ operator==()

template<class... DDims>
template<class... ODims>
KOKKOS_FUNCTION constexpr bool ddc::StorageDiscreteDomain< DDims >::operator== ( StorageDiscreteDomain< ODims... > const other) const
inlineconstexpr

Definition at line 182 of file storage_discrete_domain.hpp.

◆ operator!=()

template<class... DDims>
template<class... ODims>
KOKKOS_FUNCTION constexpr bool ddc::StorageDiscreteDomain< DDims >::operator!= ( StorageDiscreteDomain< ODims... > const other) const
inlineconstexpr

Definition at line 207 of file storage_discrete_domain.hpp.

◆ size()

template<class... DDims>
KOKKOS_FUNCTION constexpr std::size_t ddc::StorageDiscreteDomain< DDims >::size ( ) const
inlineconstexpr

Definition at line 213 of file storage_discrete_domain.hpp.

◆ extents()

template<class... DDims>
KOKKOS_FUNCTION constexpr discrete_vector_type ddc::StorageDiscreteDomain< DDims >::extents ( ) const
inlineconstexprnoexcept

Definition at line 218 of file storage_discrete_domain.hpp.

◆ discrete_elements()

template<class... DDims>
KOKKOS_FUNCTION constexpr auto ddc::StorageDiscreteDomain< DDims >::discrete_elements ( ) const
inlineconstexprnoexcept

Definition at line 223 of file storage_discrete_domain.hpp.

◆ extent()

template<class... DDims>
template<class QueryDDim >
KOKKOS_FUNCTION constexpr DiscreteVector< QueryDDim > ddc::StorageDiscreteDomain< DDims >::extent ( ) const
inlineconstexprnoexcept

Definition at line 229 of file storage_discrete_domain.hpp.

◆ front()

template<class... DDims>
KOKKOS_FUNCTION constexpr discrete_element_type ddc::StorageDiscreteDomain< DDims >::front ( ) const
inlineconstexprnoexcept

Definition at line 234 of file storage_discrete_domain.hpp.

◆ back()

template<class... DDims>
KOKKOS_FUNCTION constexpr discrete_element_type ddc::StorageDiscreteDomain< DDims >::back ( ) const
inlineconstexprnoexcept

Definition at line 239 of file storage_discrete_domain.hpp.

◆ take_first()

template<class... DDims>
KOKKOS_FUNCTION constexpr StorageDiscreteDomain ddc::StorageDiscreteDomain< DDims >::take_first ( discrete_vector_type  n) const
inlineconstexpr

Definition at line 244 of file storage_discrete_domain.hpp.

◆ take_last()

template<class... DDims>
KOKKOS_FUNCTION constexpr StorageDiscreteDomain ddc::StorageDiscreteDomain< DDims >::take_last ( discrete_vector_type  n) const
inlineconstexpr

Definition at line 249 of file storage_discrete_domain.hpp.

◆ remove_first()

template<class... DDims>
KOKKOS_FUNCTION constexpr StorageDiscreteDomain ddc::StorageDiscreteDomain< DDims >::remove_first ( discrete_vector_type  n) const
inlineconstexpr

Definition at line 254 of file storage_discrete_domain.hpp.

◆ remove_last()

template<class... DDims>
KOKKOS_FUNCTION constexpr StorageDiscreteDomain ddc::StorageDiscreteDomain< DDims >::remove_last ( discrete_vector_type  n) const
inlineconstexpr

Definition at line 259 of file storage_discrete_domain.hpp.

◆ remove()

template<class... DDims>
KOKKOS_FUNCTION constexpr StorageDiscreteDomain ddc::StorageDiscreteDomain< DDims >::remove ( discrete_vector_type  n1,
discrete_vector_type  n2 
) const
inlineconstexpr

Definition at line 264 of file storage_discrete_domain.hpp.

◆ operator()()

template<class... DDims>
KOKKOS_FUNCTION constexpr DiscreteElement< DDims... > ddc::StorageDiscreteDomain< DDims >::operator() ( DiscreteVector< DDims... > const dvect) const
inlineconstexprnoexcept

Definition at line 271 of file storage_discrete_domain.hpp.

◆ contains()

template<class... DDims>
template<class... DElems>
KOKKOS_FUNCTION bool ddc::StorageDiscreteDomain< DDims >::contains ( DElems const &...  delems) const
inlinenoexcept

Definition at line 278 of file storage_discrete_domain.hpp.

◆ distance_from_front()

template<class... DDims>
template<class... DElems>
KOKKOS_FUNCTION DiscreteVector< DDims... > ddc::StorageDiscreteDomain< DDims >::distance_from_front ( DElems const &...  delems) const
inlinenoexcept

Definition at line 293 of file storage_discrete_domain.hpp.

◆ empty()

template<class... DDims>
KOKKOS_FUNCTION constexpr bool ddc::StorageDiscreteDomain< DDims >::empty ( ) const
inlineconstexprnoexcept

Definition at line 310 of file storage_discrete_domain.hpp.

◆ operator bool()

template<class... DDims>
KOKKOS_FUNCTION constexpr ddc::StorageDiscreteDomain< DDims >::operator bool ( )
inlineexplicitconstexpr

Definition at line 315 of file storage_discrete_domain.hpp.

◆ begin()

template<class... DDims>
template<std::size_t N = sizeof...(DDims), class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION auto ddc::StorageDiscreteDomain< DDims >::begin ( ) const
inline

Definition at line 323 of file storage_discrete_domain.hpp.

◆ end()

template<class... DDims>
template<std::size_t N = sizeof...(DDims), class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION auto ddc::StorageDiscreteDomain< DDims >::end ( ) const
inline

Definition at line 331 of file storage_discrete_domain.hpp.

◆ cbegin()

template<class... DDims>
template<std::size_t N = sizeof...(DDims), class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION auto ddc::StorageDiscreteDomain< DDims >::cbegin ( ) const
inline

Definition at line 339 of file storage_discrete_domain.hpp.

◆ cend()

template<class... DDims>
template<std::size_t N = sizeof...(DDims), class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION auto ddc::StorageDiscreteDomain< DDims >::cend ( ) const
inline

Definition at line 347 of file storage_discrete_domain.hpp.

◆ operator[]() [1/2]

template<class... DDims>
template<std::size_t N = sizeof...(DDims), class = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION constexpr decltype(auto) ddc::StorageDiscreteDomain< DDims >::operator[] ( std::size_t  n)
inlineconstexpr

Definition at line 355 of file storage_discrete_domain.hpp.

◆ operator[]() [2/2]

template<class... DDims>
template<std::size_t N = sizeof...(DDims), class = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
KOKKOS_FUNCTION constexpr decltype(auto) ddc::StorageDiscreteDomain< DDims >::operator[] ( std::size_t  n) const
inlineconstexpr

Definition at line 363 of file storage_discrete_domain.hpp.

Friends And Related Symbol Documentation

◆ StorageDiscreteDomain

template<class... DDims>
template<class... >
friend class StorageDiscreteDomain
friend

Definition at line 123 of file storage_discrete_domain.hpp.


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