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 T,
class U>
60template <
class... DDims,
class... ODDims>
61struct RebindDomain<
DiscreteDomain<DDims...>, detail::TypeSeq<ODDims...>>
68template <
class... DDims>
75 type_seq_is_unique_v<detail::TypeSeq<DDims...>>,
76 "The dimensions of a DiscreteDomain must be unique");
79 using discrete_element_type = DiscreteElement<DDims...>;
84 DiscreteElement<DDims...> m_element_begin;
86 DiscreteElement<DDims...> m_element_end;
89 static KOKKOS_FUNCTION
constexpr std::size_t
rank()
91 return sizeof...(DDims);
97 template <
concepts::discrete_domain... DDoms>
98 KOKKOS_FUNCTION
constexpr explicit DiscreteDomain(DDoms
const&... domains)
99 : m_element_begin(domains.front()...)
100 , m_element_end((domains.front() + domains.extents())...)
105
106
107
109 discrete_element_type
const& element_begin,
110 discrete_vector_type
const& size)
111 : m_element_begin(element_begin)
112 , m_element_end(element_begin + size)
126 template <
class... ODims>
129 if (
empty() && other.empty()) {
132 return m_element_begin == other.m_element_begin && m_element_end == other.m_element_end;
135#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
137 template <
class...
ODims>
140 return !(*
this ==
other);
144 KOKKOS_FUNCTION
constexpr std::size_t
size()
const
146 return (1UL * ... * extent<DDims>().value());
149 KOKKOS_FUNCTION
constexpr discrete_vector_type
extents()
const noexcept
151 return m_element_end - m_element_begin;
154 template <
class QueryDDim>
157 return DiscreteElement<QueryDDim>(m_element_end)
158 - DiscreteElement<QueryDDim>(m_element_begin);
161 KOKKOS_FUNCTION
constexpr discrete_element_type
front()
const noexcept
163 return m_element_begin;
166 KOKKOS_FUNCTION
constexpr discrete_element_type
back()
const noexcept
168 return discrete_element_type((DiscreteElement<DDims>(m_element_end) - 1)...);
192 discrete_vector_type n1,
193 discrete_vector_type n2)
const
198 KOKKOS_FUNCTION
constexpr DiscreteElement<DDims...>
operator()(
201 return m_element_begin + dvect;
204 template <
class... ODDims>
208 ((DiscreteElement<ODDims>(m_element_begin)
209 <= DiscreteElement<ODDims>(odomain.m_element_begin))
212 ((DiscreteElement<ODDims>(m_element_end)
213 >= DiscreteElement<ODDims>(odomain.m_element_end))
218 DiscreteElement<DDims...>((select_or<DDims>(
219 odomain.m_element_begin,
220 DiscreteElement<DDims>(m_element_begin)))...),
222 (select_or<DDims>(oextents,
DiscreteVector<DDims>(myextents)))...));
225 template <
class... DElems>
226 KOKKOS_FUNCTION
bool contains(DElems
const&... delems)
const noexcept
229 sizeof...(DDims) == (0 + ... + DElems::size()),
230 "Invalid number of dimensions");
231 static_assert((is_discrete_element_v<DElems> && ...),
"Expected DiscreteElements");
232 DiscreteElement<DDims...>
const delem(delems...);
233 for (std::size_t i = 0; i <
rank(); ++i) {
234 if ((detail::array(delem)[i] < detail::array(m_element_begin)[i])
235 || (detail::array(delem)[i] >= detail::array(m_element_end)[i])) {
242 template <
class... DElems>
244 DElems
const&... delems)
const noexcept
247 sizeof...(DDims) == (0 + ... + DElems::size()),
248 "Invalid number of dimensions");
249 static_assert((is_discrete_element_v<DElems> && ...),
"Expected DiscreteElements");
251 (DiscreteElement<DDims>(take<DDims>(delems...))
252 - DiscreteElement<DDims>(m_element_begin))...);
255 KOKKOS_FUNCTION
constexpr bool empty()
const noexcept
260 KOKKOS_FUNCTION
constexpr explicit operator bool()
265 KOKKOS_FUNCTION
auto begin()
const
266 requires(
sizeof...(DDims) == 1)
271 KOKKOS_FUNCTION
auto end()
const
272 requires(
sizeof...(DDims) == 1)
277 KOKKOS_FUNCTION
auto cbegin()
const
278 requires(
sizeof...(DDims) == 1)
283 KOKKOS_FUNCTION
auto cend()
const
284 requires(
sizeof...(DDims) == 1)
289 KOKKOS_FUNCTION
constexpr decltype(
auto)
operator[](std::size_t n)
290 requires(
sizeof...(DDims) == 1)
295 KOKKOS_FUNCTION
constexpr decltype(
auto)
operator[](std::size_t n)
const
296 requires(
sizeof...(DDims) == 1)
309 using discrete_element_type = DiscreteElement<>;
313 static KOKKOS_FUNCTION
constexpr std::size_t
rank()
321 template <
class... DDoms>
322 KOKKOS_FUNCTION
constexpr explicit DiscreteDomain(DDoms
const&... )
323 requires(is_discrete_domain_v<DDoms> && ...)
328
329
330
332 [[
maybe_unused]] discrete_element_type
const& element_begin,
353#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
357 return !(*
this ==
other);
361 static KOKKOS_FUNCTION
constexpr std::size_t
size()
366 static KOKKOS_FUNCTION
constexpr discrete_vector_type
extents()
noexcept
371 static KOKKOS_FUNCTION
constexpr discrete_element_type
front()
noexcept
376 static KOKKOS_FUNCTION
constexpr discrete_element_type
back()
noexcept
402 discrete_vector_type ,
403 discrete_vector_type )
const
408 KOKKOS_FUNCTION
constexpr DiscreteElement<>
operator()(
414 template <
class... ODims>
421 static KOKKOS_FUNCTION
bool contains()
noexcept
426 static KOKKOS_FUNCTION
bool contains(DiscreteElement<>)
noexcept
441 static KOKKOS_FUNCTION
constexpr bool empty()
noexcept
446 KOKKOS_FUNCTION
constexpr explicit operator bool()
452template <
class... QueryDDims,
class... DDims>
462struct ConvertTypeSeqToDiscreteDomain;
464template <
class... DDims>
465struct ConvertTypeSeqToDiscreteDomain<detail::TypeSeq<DDims...>>
471using convert_type_seq_to_discrete_domain_t =
typename ConvertTypeSeqToDiscreteDomain<T>::type;
477template <
typename... DDoms>
478struct cartesian_prod;
480template <
typename... DDims1,
typename... DDims2,
typename... DDomsTail>
483 using type =
typename cartesian_prod<
DiscreteDomain<DDims1..., DDims2...>, DDomsTail...>::type;
486template <
typename... DDims>
493struct cartesian_prod<>
498template <
typename... DDoms>
499using cartesian_prod_t =
typename cartesian_prod<DDoms...>::type;
502template <
class... DDimsA,
class... DDimsB>
507 using TagSeqA = detail::TypeSeq<DDimsA...>;
508 using TagSeqB = detail::TypeSeq<DDimsB...>;
510 using type_seq_r = type_seq_remove_t<TagSeqA, TagSeqB>;
511 return detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(DDom_a);
517template <
class... DDimsB,
class... DDimsA>
520 using TagSeqA = detail::TypeSeq<DDimsA...>;
521 using TagSeqB = detail::TypeSeq<DDimsB...>;
523 using type_seq_r = type_seq_remove_t<TagSeqA, TagSeqB>;
524 return detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(DDom_a);
528template <
typename DDom,
typename... DDims>
529using remove_dims_of_t =
decltype(remove_dims_of<DDims...>(std::declval<DDom>()));
534template <
typename DDim1,
typename DDim2,
typename DDimA,
typename... DDimsB>
535KOKKOS_FUNCTION
constexpr std::conditional_t<
536 std::is_same_v<DDimA, DDim1>,
541 [[maybe_unused]]
DiscreteDomain<DDimsB...>
const& DDom_b)
noexcept
543 if constexpr (std::is_same_v<DDimA, DDim1>) {
553template <
typename DDim1,
typename DDim2,
typename... DDimsA,
typename... DDimsB>
559 using TagSeqA = detail::TypeSeq<DDimsA...>;
560 using TagSeqB = detail::TypeSeq<DDim1>;
561 using TagSeqC = detail::TypeSeq<DDim2>;
563 using type_seq_r =
ddc::type_seq_replace_t<TagSeqA, TagSeqB, TagSeqC>;
564 return ddc::detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(
565 detail::replace_dim_of_1d<
573template <
typename DDom,
typename DDim1,
typename DDim2>
574using replace_dim_of_t =
decltype(replace_dim_of<DDim1, DDim2>(
575 std::declval<DDom>(),
576 std::declval<
typename detail::RebindDomain<DDom, detail::TypeSeq<DDim2>>::type>()));
579template <
class... QueryDDims,
class... DDims>
586template <
class... QueryDDims,
class... DDims>
587KOKKOS_FUNCTION
constexpr DiscreteElement<QueryDDims...>
front(
590 return DiscreteElement<QueryDDims...>(
DiscreteDomain<QueryDDims>(domain).front()...);
593template <
class... QueryDDims,
class... DDims>
594KOKKOS_FUNCTION
constexpr DiscreteElement<QueryDDims...>
back(
597 return DiscreteElement<QueryDDims...>(
DiscreteDomain<QueryDDims>(domain).back()...);
604 DiscreteElement<DDim> m_value = DiscreteElement<DDim>();
607 using iterator_category = std::random_access_iterator_tag;
609 using value_type = DiscreteElement<DDim>;
611 using difference_type = std::ptrdiff_t;
620 KOKKOS_FUNCTION
constexpr DiscreteElement<DDim>
operator*()
const noexcept
653 if (n >=
static_cast<difference_type>(0)) {
654 m_value +=
static_cast<DiscreteElementType>(n);
656 m_value -=
static_cast<DiscreteElementType>(-n);
663 if (n >=
static_cast<difference_type>(0)) {
664 m_value -=
static_cast<DiscreteElementType>(n);
666 m_value +=
static_cast<DiscreteElementType>(-n);
671 KOKKOS_FUNCTION
constexpr DiscreteElement<DDim>
operator[](difference_type n)
const
676 friend KOKKOS_FUNCTION
constexpr bool operator==(
680 return xx.m_value == yy.m_value;
683#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
693 friend KOKKOS_FUNCTION
constexpr bool operator<(
697 return xx.m_value < yy.m_value;
700 friend KOKKOS_FUNCTION
constexpr bool operator>(
707 friend KOKKOS_FUNCTION
constexpr bool operator<=(
714 friend KOKKOS_FUNCTION
constexpr bool operator>=(
742 friend KOKKOS_FUNCTION
constexpr difference_type
operator-(
746 return (yy.m_value > xx.m_value) ? (-
static_cast<difference_type>(yy.m_value - xx.m_value))
747 : (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.
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[](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)