13#include <Kokkos_Assert.hpp>
14#include <Kokkos_Macros.hpp>
16#include "detail/type_seq.hpp"
26template <
class... DDims>
34template <
class... Tags>
45concept discrete_domain = is_discrete_domain_v<T>;
51template <
class... Tags>
54 using type = TypeSeq<Tags...>;
57template <
class... DDims,
class... ODDims>
65template <
class... DDims>
72 type_seq_is_unique_v<detail::TypeSeq<DDims...>>,
73 "The dimensions of a DiscreteDomain must be unique");
76 using discrete_element_type = DiscreteElement<DDims...>;
81 DiscreteElement<DDims...> m_element_begin;
83 DiscreteElement<DDims...> m_element_end;
86 static KOKKOS_FUNCTION
constexpr std::size_t
rank()
88 return sizeof...(DDims);
94 template <
concepts::discrete_domain... DDoms>
95 KOKKOS_FUNCTION
constexpr explicit DiscreteDomain(DDoms
const&... domains)
96 : m_element_begin(domains.front()...)
97 , m_element_end((domains.front() + domains.extents())...)
102
103
104
106 discrete_element_type
const& element_begin,
107 discrete_vector_type
const& size)
108 : m_element_begin(element_begin)
109 , m_element_end(element_begin + size)
123 template <
class... ODims>
126 if (
empty() && other.empty()) {
129 return m_element_begin == other.m_element_begin && m_element_end == other.m_element_end;
132#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
134 template <
class...
ODims>
137 return !(*
this ==
other);
141 KOKKOS_FUNCTION
constexpr std::size_t
size()
const
143 return (1UL * ... * extent<DDims>().value());
146 KOKKOS_FUNCTION
constexpr discrete_vector_type
extents()
const noexcept
148 return m_element_end - m_element_begin;
151 template <
class QueryDDim>
154 return DiscreteElement<QueryDDim>(m_element_end)
155 - DiscreteElement<QueryDDim>(m_element_begin);
158 KOKKOS_FUNCTION
constexpr discrete_element_type
front()
const noexcept
160 return m_element_begin;
163 KOKKOS_FUNCTION
constexpr discrete_element_type
back()
const noexcept
165 return discrete_element_type((DiscreteElement<DDims>(m_element_end) - 1)...);
189 discrete_vector_type n1,
190 discrete_vector_type n2)
const
195 KOKKOS_FUNCTION
constexpr DiscreteElement<DDims...>
operator()(
198 return m_element_begin + dvect;
201 template <
class... ODDims>
205 ((DiscreteElement<ODDims>(m_element_begin)
206 <= DiscreteElement<ODDims>(odomain.m_element_begin))
209 ((DiscreteElement<ODDims>(m_element_end)
210 >= DiscreteElement<ODDims>(odomain.m_element_end))
215 DiscreteElement<DDims...>((select_or<DDims>(
216 odomain.m_element_begin,
217 DiscreteElement<DDims>(m_element_begin)))...),
219 (select_or<DDims>(oextents,
DiscreteVector<DDims>(myextents)))...));
222 template <
class... DElems>
223 KOKKOS_FUNCTION
bool contains(DElems
const&... delems)
const noexcept
226 sizeof...(DDims) == (0 + ... + DElems::size()),
227 "Invalid number of dimensions");
228 static_assert((is_discrete_element_v<DElems> && ...),
"Expected DiscreteElements");
229 DiscreteElement<DDims...>
const delem(delems...);
230 for (std::size_t i = 0; i <
rank(); ++i) {
231 if ((detail::array(delem)[i] < detail::array(m_element_begin)[i])
232 || (detail::array(delem)[i] >= detail::array(m_element_end)[i])) {
239 template <
class... DElems>
241 DElems
const&... delems)
const noexcept
244 sizeof...(DDims) == (0 + ... + DElems::size()),
245 "Invalid number of dimensions");
246 static_assert((is_discrete_element_v<DElems> && ...),
"Expected DiscreteElements");
248 (DiscreteElement<DDims>(take<DDims>(delems...))
249 - DiscreteElement<DDims>(m_element_begin))...);
252 KOKKOS_FUNCTION
constexpr bool empty()
const noexcept
257 KOKKOS_FUNCTION
constexpr explicit operator bool()
262 KOKKOS_FUNCTION
auto begin()
const
263 requires(
sizeof...(DDims) == 1)
268 KOKKOS_FUNCTION
auto end()
const
269 requires(
sizeof...(DDims) == 1)
274 KOKKOS_FUNCTION
auto cbegin()
const
275 requires(
sizeof...(DDims) == 1)
280 KOKKOS_FUNCTION
auto cend()
const
281 requires(
sizeof...(DDims) == 1)
286 KOKKOS_FUNCTION
constexpr decltype(
auto)
operator[](std::size_t n)
287 requires(
sizeof...(DDims) == 1)
292 KOKKOS_FUNCTION
constexpr decltype(
auto)
operator[](std::size_t n)
const
293 requires(
sizeof...(DDims) == 1)
306 using discrete_element_type = DiscreteElement<>;
310 static KOKKOS_FUNCTION
constexpr std::size_t
rank()
318 template <
class... DDoms>
319 KOKKOS_FUNCTION
constexpr explicit DiscreteDomain(DDoms
const&... )
320 requires(is_discrete_domain_v<DDoms> && ...)
325
326
327
329 [[
maybe_unused]] discrete_element_type
const& element_begin,
350#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
354 return !(*
this ==
other);
358 static KOKKOS_FUNCTION
constexpr std::size_t
size()
363 static KOKKOS_FUNCTION
constexpr discrete_vector_type
extents()
noexcept
368 static KOKKOS_FUNCTION
constexpr discrete_element_type
front()
noexcept
373 static KOKKOS_FUNCTION
constexpr discrete_element_type
back()
noexcept
399 discrete_vector_type ,
400 discrete_vector_type )
const
405 KOKKOS_FUNCTION
constexpr DiscreteElement<>
operator()(
411 template <
class... ODims>
418 static KOKKOS_FUNCTION
bool contains()
noexcept
423 static KOKKOS_FUNCTION
bool contains(DiscreteElement<>)
noexcept
438 static KOKKOS_FUNCTION
constexpr bool empty()
noexcept
443 KOKKOS_FUNCTION
constexpr explicit operator bool()
449template <
class... QueryDDims,
class... DDims>
459struct ConvertTypeSeqToDiscreteDomain
463template <
class... DDims>
464struct ConvertTypeSeqToDiscreteDomain<detail::TypeSeq<DDims...>>
470using convert_type_seq_to_discrete_domain_t = ConvertTypeSeqToDiscreteDomain<T>::type;
475template <
class... DDimsA,
class... DDimsB>
480 using TagSeqA = detail::TypeSeq<DDimsA...>;
481 using TagSeqB = detail::TypeSeq<DDimsB...>;
483 using type_seq_r = type_seq_remove_t<TagSeqA, TagSeqB>;
484 return detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(DDom_a);
490template <
class... DDimsB,
class... DDimsA>
493 using TagSeqA = detail::TypeSeq<DDimsA...>;
494 using TagSeqB = detail::TypeSeq<DDimsB...>;
496 using type_seq_r = type_seq_remove_t<TagSeqA, TagSeqB>;
497 return detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(DDom_a);
501template <
typename DDom,
typename... DDims>
502using remove_dims_of_t =
decltype(remove_dims_of<DDims...>(std::declval<DDom>()));
507template <
typename DDim1,
typename DDim2,
typename DDimA,
typename... DDimsB>
508KOKKOS_FUNCTION
constexpr std::conditional_t<
509 std::is_same_v<DDimA, DDim1>,
514 [[maybe_unused]]
DiscreteDomain<DDimsB...>
const& DDom_b)
noexcept
516 if constexpr (std::is_same_v<DDimA, DDim1>) {
526template <
typename DDim1,
typename DDim2,
typename... DDimsA,
typename... DDimsB>
532 using TagSeqA = detail::TypeSeq<DDimsA...>;
533 using TagSeqB = detail::TypeSeq<DDim1>;
534 using TagSeqC = detail::TypeSeq<DDim2>;
536 using type_seq_r =
ddc::type_seq_replace_t<TagSeqA, TagSeqB, TagSeqC>;
537 return ddc::detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(
538 detail::replace_dim_of_1d<
546template <
typename DDom,
typename DDim1,
typename DDim2>
547using replace_dim_of_t =
decltype(replace_dim_of<DDim1, DDim2>(
548 std::declval<DDom>(),
549 std::declval<
typename detail::Rebind<DDom, detail::TypeSeq<DDim2>>::type>()));
552template <
class... QueryDDims,
class... DDims>
559template <
class... QueryDDims,
class... DDims>
560KOKKOS_FUNCTION
constexpr DiscreteElement<QueryDDims...>
front(
563 return DiscreteElement<QueryDDims...>(
DiscreteDomain<QueryDDims>(domain).front()...);
566template <
class... QueryDDims,
class... DDims>
567KOKKOS_FUNCTION
constexpr DiscreteElement<QueryDDims...>
back(
570 return DiscreteElement<QueryDDims...>(
DiscreteDomain<QueryDDims>(domain).back()...);
577 DiscreteElement<DDim> m_value = DiscreteElement<DDim>();
580 using iterator_category = std::random_access_iterator_tag;
582 using value_type = DiscreteElement<DDim>;
584 using difference_type = std::ptrdiff_t;
593 KOKKOS_FUNCTION
constexpr DiscreteElement<DDim>
operator*()
const noexcept
626 if (n >=
static_cast<difference_type>(0)) {
627 m_value +=
static_cast<DiscreteElementType>(n);
629 m_value -=
static_cast<DiscreteElementType>(-n);
636 if (n >=
static_cast<difference_type>(0)) {
637 m_value -=
static_cast<DiscreteElementType>(n);
639 m_value +=
static_cast<DiscreteElementType>(-n);
644 KOKKOS_FUNCTION
constexpr DiscreteElement<DDim>
operator[](difference_type n)
const
649 friend KOKKOS_FUNCTION
constexpr bool operator==(
653 return xx.m_value == yy.m_value;
656#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
666 friend KOKKOS_FUNCTION
constexpr bool operator<(
670 return xx.m_value < yy.m_value;
673 friend KOKKOS_FUNCTION
constexpr bool operator>(
680 friend KOKKOS_FUNCTION
constexpr bool operator<=(
687 friend KOKKOS_FUNCTION
constexpr bool operator>=(
715 friend KOKKOS_FUNCTION
constexpr difference_type
operator-(
719 return (yy.m_value > xx.m_value) ? (-
static_cast<difference_type>(yy.m_value - xx.m_value))
720 : (xx.m_value - yy.m_value);
KOKKOS_FUNCTION constexpr ChunkCommon(ElementType *ptr, SupportType const &domain)
Constructs a new ChunkCommon from scratch.
KOKKOS_FUNCTION constexpr bool is_strided() const noexcept
KOKKOS_DEFAULTED_FUNCTION ~ChunkCommon() noexcept=default
KOKKOS_FUNCTION constexpr ElementType * data_handle() const
Access to the underlying allocation pointer.
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkCommon()=default
Empty ChunkCommon.
allocation_mdspan_type m_allocation_mdspan
The raw view of the data.
KOKKOS_FUNCTION constexpr SupportType domain() const noexcept
Provide access to the domain on which this chunk is defined.
static KOKKOS_FUNCTION constexpr bool is_always_strided() noexcept
KOKKOS_FUNCTION constexpr allocation_mdspan_type allocation_mdspan() const
Provide a modifiable view of the data.
KOKKOS_FUNCTION constexpr ChunkCommon(allocation_mdspan_type allocation_mdspan, SupportType const &domain) noexcept
Constructs a new ChunkCommon from scratch.
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkCommon(ChunkCommon const &other)=default
Constructs a new ChunkCommon by copy, yields a new view to the same data.
static KOKKOS_FUNCTION constexpr bool is_always_unique() noexcept
KOKKOS_FUNCTION constexpr DiscreteDomain< QueryDDims... > domain() const noexcept
Provide access to the domain on which this chunk is defined.
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkCommon & operator=(ChunkCommon const &other)=default
Copy-assigns a new value to this ChunkCommon, yields a new view to the same data.
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkCommon(ChunkCommon &&other) noexcept=default
Constructs a new ChunkCommon by move.
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkCommon & operator=(ChunkCommon &&other) noexcept=default
Move-assigns a new value to this ChunkCommon.
KOKKOS_FUNCTION constexpr size_type extent() const noexcept
KOKKOS_FUNCTION constexpr size_type stride() const
KOKKOS_FUNCTION constexpr bool is_exhaustive() const noexcept
KOKKOS_FUNCTION constexpr mapping_type mapping() const noexcept
static KOKKOS_FUNCTION constexpr int rank() noexcept
KOKKOS_FUNCTION constexpr bool is_unique() const noexcept
KOKKOS_FUNCTION constexpr accessor_type accessor() const
KOKKOS_FUNCTION constexpr SupportType::discrete_vector_type extents() const noexcept
KOKKOS_FUNCTION constexpr size_type size() const noexcept
SupportType m_domain
The mesh on which this chunk is defined.
static KOKKOS_FUNCTION constexpr int rank_dynamic() noexcept
static KOKKOS_FUNCTION constexpr size_type static_extent(std::size_t r) noexcept
static KOKKOS_FUNCTION constexpr bool is_always_exhaustive() noexcept
auto operator[](DiscreteElement< QueryDDims... > const &slice_spec) const
Slice out some dimensions.
auto operator[](DiscreteVector< QueryDDims... > const &slice_spec) const
Slice out some dimensions.
char const * label() const
Returns the label of the Chunk.
const_allocation_mdspan_type allocation_mdspan() const
Provide a mdspan on the memory allocation.
ElementType const * data_handle() const
Access to the underlying allocation pointer.
auto allocation_kokkos_view()
Provide an unmanaged Kokkos::View on the memory allocation.
auto operator[](DiscreteDomain< QueryDDims... > const &odomain)
Slice out some dimensions.
auto allocation_kokkos_view() const
Provide an unmanaged Kokkos::View on the memory allocation.
Chunk(SupportType const &domain, Allocator allocator=Allocator())
Construct a Chunk on a domain with uninitialized values.
Chunk & operator=(Chunk const &other)=delete
Deleted: use deepcopy instead.
allocation_mdspan_type allocation_mdspan()
Provide a mdspan on the memory allocation.
ElementType * data_handle()
Access to the underlying allocation pointer.
view_type span_cview() const
Chunk(Chunk const &other)=delete
Deleted: use deepcopy instead.
Chunk(std::string const &label, SupportType const &domain, Allocator allocator=Allocator())
Construct a labeled Chunk on a domain with uninitialized values.
element_type & operator()(DElems const &... delems) noexcept
Element access using a list of DiscreteElement.
Chunk()=default
Empty Chunk.
Chunk & operator=(Chunk &&other) noexcept
Move-assigns a new value to this field.
Chunk(Chunk &&other) noexcept
Constructs a new Chunk by move.
view_type span_view() const
auto operator[](DiscreteDomain< QueryDDims... > const &odomain) const
Slice out some dimensions.
element_type const & operator()(DElems const &... delems) const noexcept
Element access using a list of DiscreteElement.
auto operator[](DiscreteVector< QueryDDims... > const &slice_spec)
Slice out some dimensions.
auto operator[](DiscreteElement< QueryDDims... > const &slice_spec)
Slice out some dimensions.
static KOKKOS_FUNCTION constexpr discrete_vector_type extents() noexcept
KOKKOS_DEFAULTED_FUNCTION ~DiscreteDomain()=default
KOKKOS_FUNCTION constexpr DiscreteDomain(discrete_element_type const &element_begin, discrete_vector_type const &size)
Construct a DiscreteDomain starting from element_begin with size points.
KOKKOS_FUNCTION constexpr DiscreteDomain(DDoms const &...)
Construct a DiscreteDomain by copies and merge of domains.
KOKKOS_FUNCTION constexpr DiscreteDomain take_last(discrete_vector_type) const
KOKKOS_FUNCTION constexpr bool operator==(DiscreteDomain const &) const
KOKKOS_FUNCTION constexpr DiscreteDomain remove(discrete_vector_type, discrete_vector_type) const
static KOKKOS_FUNCTION constexpr std::size_t rank()
KOKKOS_FUNCTION constexpr DiscreteDomain remove_last(discrete_vector_type) const
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain(DiscreteDomain const &x)=default
static KOKKOS_FUNCTION bool contains() noexcept
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteDomain()=default
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain & operator=(DiscreteDomain &&x)=default
KOKKOS_FUNCTION constexpr operator bool()
static KOKKOS_FUNCTION constexpr std::size_t size()
static KOKKOS_FUNCTION constexpr bool empty() noexcept
static KOKKOS_FUNCTION bool contains(DiscreteElement<>) noexcept
static KOKKOS_FUNCTION constexpr discrete_element_type back() noexcept
static KOKKOS_FUNCTION DiscreteVector distance_from_front(DiscreteElement<>) noexcept
KOKKOS_FUNCTION constexpr DiscreteDomain remove_first(discrete_vector_type) const
static KOKKOS_FUNCTION constexpr discrete_element_type front() noexcept
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain & operator=(DiscreteDomain const &x)=default
KOKKOS_FUNCTION constexpr DiscreteDomain take_first(discrete_vector_type) const
KOKKOS_FUNCTION constexpr DiscreteDomain restrict_with(DiscreteDomain< ODims... > const &) const
KOKKOS_FUNCTION constexpr DiscreteElement operator()(DiscreteVector<> const &) const noexcept
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain(DiscreteDomain &&x)=default
static KOKKOS_FUNCTION DiscreteVector distance_from_front() noexcept
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain(DiscreteDomain const &x)=default
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain(DiscreteDomain &&x)=default
KOKKOS_FUNCTION constexpr DiscreteDomain remove_last(discrete_vector_type n) const
KOKKOS_FUNCTION bool contains(DElems const &... delems) const noexcept
KOKKOS_FUNCTION constexpr DiscreteDomain take_last(discrete_vector_type n) const
KOKKOS_FUNCTION constexpr DiscreteDomain(DDoms const &... domains)
Construct a DiscreteDomain by copies and merge of domains.
KOKKOS_FUNCTION constexpr decltype(auto) operator[](std::size_t n)
KOKKOS_FUNCTION constexpr DiscreteDomain remove(discrete_vector_type n1, discrete_vector_type n2) const
KOKKOS_FUNCTION constexpr decltype(auto) operator[](std::size_t n) const
KOKKOS_FUNCTION constexpr auto restrict_with(DiscreteDomain< ODDims... > const &odomain) const
static KOKKOS_FUNCTION constexpr std::size_t rank()
KOKKOS_FUNCTION constexpr bool empty() const noexcept
KOKKOS_FUNCTION constexpr std::size_t size() const
friend class DiscreteDomain
KOKKOS_FUNCTION constexpr discrete_vector_type extents() const noexcept
KOKKOS_FUNCTION constexpr DiscreteVector< QueryDDim > extent() const noexcept
KOKKOS_FUNCTION constexpr discrete_element_type front() const noexcept
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain & operator=(DiscreteDomain &&x)=default
KOKKOS_FUNCTION constexpr DiscreteDomain remove_first(discrete_vector_type n) const
KOKKOS_FUNCTION constexpr bool operator==(DiscreteDomain< ODims... > const &other) const
KOKKOS_FUNCTION constexpr DiscreteDomain take_first(discrete_vector_type n) const
KOKKOS_DEFAULTED_FUNCTION ~DiscreteDomain()=default
KOKKOS_FUNCTION DiscreteVector< DDims... > distance_from_front(DElems const &... delems) const noexcept
KOKKOS_FUNCTION constexpr discrete_element_type back() const noexcept
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain & operator=(DiscreteDomain const &x)=default
KOKKOS_FUNCTION constexpr DiscreteElement< DDims... > operator()(DiscreteVector< DDims... > const &dvect) const noexcept
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain()=default
KOKKOS_FUNCTION constexpr operator bool()
KOKKOS_FUNCTION constexpr DiscreteDomain(discrete_element_type const &element_begin, discrete_vector_type const &size)
Construct a DiscreteDomain starting from element_begin with size points.
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteElement()=default
KOKKOS_FUNCTION constexpr bool operator!=(DiscreteVector< OTags... > const &rhs) const noexcept
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteVector()=default
The top-level namespace of DDC.
constexpr bool is_borrowed_chunk_v
KOKKOS_FUNCTION auto get_domain(ChunkType const &chunk) noexcept
Access the domain (or subdomain) of a view.
constexpr bool enable_chunk< Chunk< ElementType, SupportType, Allocator > >
KOKKOS_FUNCTION constexpr DiscreteElement< QueryDDims... > back(DiscreteDomain< DDims... > const &domain) noexcept
constexpr bool enable_borrowed_chunk
constexpr bool enable_chunk
constexpr bool is_chunk_v
KOKKOS_FUNCTION constexpr auto remove_dims_of(DiscreteDomain< DDimsA... > const &DDom_a, DiscreteDomain< DDimsB... > const &) noexcept
KOKKOS_FUNCTION constexpr auto remove_dims_of(DiscreteDomain< DDimsA... > const &DDom_a) noexcept
Remove the dimensions DDimsB from DDom_a.
KOKKOS_FUNCTION constexpr DiscreteElement< QueryDDims... > front(DiscreteDomain< DDims... > const &domain) noexcept
constexpr bool is_writable_chunk_v
KOKKOS_FUNCTION constexpr DiscreteVector< QueryDDims... > extents(DiscreteDomain< DDims... > const &domain) noexcept
Chunk(SupportType const &, Allocator) -> Chunk< typename Allocator::value_type, SupportType, Allocator >
KOKKOS_FUNCTION constexpr auto replace_dim_of(DiscreteDomain< DDimsA... > const &DDom_a, DiscreteDomain< DDimsB... > const &DDom_b) noexcept
Chunk(std::string const &, SupportType const &, Allocator) -> Chunk< typename Allocator::value_type, SupportType, Allocator >
constexpr bool is_discrete_domain_v
KOKKOS_FUNCTION constexpr DiscreteDomain< QueryDDims... > select(DiscreteDomain< DDims... > const &domain)
KOKKOS_FUNCTION constexpr DiscreteDomainIterator operator--(int)
friend KOKKOS_FUNCTION constexpr bool operator<=(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
KOKKOS_FUNCTION constexpr DiscreteElement< DDim > operator*() const noexcept
friend KOKKOS_FUNCTION constexpr bool operator>=(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
KOKKOS_DEFAULTED_FUNCTION DiscreteDomainIterator()=default
KOKKOS_FUNCTION constexpr DiscreteElement< DDim > operator[](difference_type n) const
KOKKOS_FUNCTION constexpr DiscreteDomainIterator & operator--()
KOKKOS_FUNCTION constexpr DiscreteDomainIterator operator++(int)
friend KOKKOS_FUNCTION constexpr DiscreteDomainIterator operator-(DiscreteDomainIterator i, difference_type n)
friend KOKKOS_FUNCTION constexpr DiscreteDomainIterator operator+(DiscreteDomainIterator i, difference_type n)
friend KOKKOS_FUNCTION constexpr bool operator>(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
friend KOKKOS_FUNCTION constexpr bool operator!=(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
friend KOKKOS_FUNCTION constexpr bool operator<(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
KOKKOS_FUNCTION constexpr DiscreteDomainIterator & operator+=(difference_type n)
KOKKOS_FUNCTION constexpr DiscreteDomainIterator & operator++()
friend KOKKOS_FUNCTION constexpr DiscreteDomainIterator operator+(difference_type n, DiscreteDomainIterator i)
friend KOKKOS_FUNCTION constexpr bool operator==(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
KOKKOS_FUNCTION constexpr DiscreteDomainIterator(DiscreteElement< DDim > value)
KOKKOS_FUNCTION constexpr DiscreteDomainIterator & operator-=(difference_type n)
friend KOKKOS_FUNCTION constexpr difference_type operator-(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)