DDC 0.5.2
Loading...
Searching...
No Matches
ddc::SparseDiscreteDomain<> Class Reference

#include <sparse_discrete_domain.hpp>

Collaboration diagram for ddc::SparseDiscreteDomain<>:
Collaboration graph

Public Types

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

Public Member Functions

KOKKOS_DEFAULTED_FUNCTION constexpr SparseDiscreteDomain ()=default
 
template<class... ODDims>
KOKKOS_FUNCTION constexpr SparseDiscreteDomain (SparseDiscreteDomain< ODDims... > const &domain)
 
KOKKOS_DEFAULTED_FUNCTION SparseDiscreteDomain (SparseDiscreteDomain const &x)=default
 
KOKKOS_DEFAULTED_FUNCTION SparseDiscreteDomain (SparseDiscreteDomain &&x)=default
 
KOKKOS_DEFAULTED_FUNCTION ~SparseDiscreteDomain ()=default
 
KOKKOS_DEFAULTED_FUNCTION SparseDiscreteDomainoperator= (SparseDiscreteDomain const &x)=default
 
KOKKOS_DEFAULTED_FUNCTION SparseDiscreteDomainoperator= (SparseDiscreteDomain &&x)=default
 
KOKKOS_FUNCTION constexpr bool operator== (SparseDiscreteDomain const &other) const
 
KOKKOS_FUNCTION constexpr bool operator!= (SparseDiscreteDomain const &other) const
 
KOKKOS_FUNCTION constexpr SparseDiscreteDomain take_first (discrete_vector_type n) const
 
KOKKOS_FUNCTION constexpr SparseDiscreteDomain take_last (discrete_vector_type n) const
 
KOKKOS_FUNCTION constexpr SparseDiscreteDomain remove_first (discrete_vector_type n) const
 
KOKKOS_FUNCTION constexpr SparseDiscreteDomain remove_last (discrete_vector_type n) const
 
KOKKOS_FUNCTION constexpr SparseDiscreteDomain remove (discrete_vector_type n1, discrete_vector_type n2) const
 
KOKKOS_FUNCTION constexpr DiscreteElement operator() (DiscreteVector<> const &) const noexcept
 
KOKKOS_FUNCTION constexpr operator bool ()
 

Static Public Member Functions

static KOKKOS_FUNCTION constexpr std::size_t rank ()
 
static KOKKOS_FUNCTION constexpr std::size_t size ()
 
static KOKKOS_FUNCTION constexpr discrete_vector_type extents () noexcept
 
static KOKKOS_FUNCTION constexpr discrete_element_type front () noexcept
 
static KOKKOS_FUNCTION constexpr discrete_element_type back () noexcept
 
static KOKKOS_FUNCTION bool contains () noexcept
 
static KOKKOS_FUNCTION bool contains (DiscreteElement<>) noexcept
 
static KOKKOS_FUNCTION DiscreteVector distance_from_front () noexcept
 
static KOKKOS_FUNCTION DiscreteVector distance_from_front (DiscreteElement<>) noexcept
 
static KOKKOS_FUNCTION constexpr bool empty () noexcept
 

Friends

template<class... >
class SparseDiscreteDomain
 

Detailed Description

Definition at line 368 of file sparse_discrete_domain.hpp.

Member Typedef Documentation

◆ discrete_element_type

using ddc::SparseDiscreteDomain<>::discrete_element_type = DiscreteElement<>

Definition at line 374 of file sparse_discrete_domain.hpp.

◆ discrete_vector_type

using ddc::SparseDiscreteDomain<>::discrete_vector_type = DiscreteVector<>

Definition at line 376 of file sparse_discrete_domain.hpp.

Constructor & Destructor Documentation

◆ SparseDiscreteDomain() [1/4]

KOKKOS_DEFAULTED_FUNCTION constexpr ddc::SparseDiscreteDomain<>::SparseDiscreteDomain ( )
constexprdefault

◆ SparseDiscreteDomain() [2/4]

template<class... ODDims>
KOKKOS_FUNCTION constexpr ddc::SparseDiscreteDomain<>::SparseDiscreteDomain ( SparseDiscreteDomain< ODDims... > const domain)
inlineexplicitconstexpr

Definition at line 387 of file sparse_discrete_domain.hpp.

◆ SparseDiscreteDomain() [3/4]

◆ SparseDiscreteDomain() [4/4]

KOKKOS_DEFAULTED_FUNCTION ddc::SparseDiscreteDomain<>::SparseDiscreteDomain ( SparseDiscreteDomain<> &&  x)
default

◆ ~SparseDiscreteDomain()

Member Function Documentation

◆ rank()

static KOKKOS_FUNCTION constexpr std::size_t ddc::SparseDiscreteDomain<>::rank ( )
inlinestaticconstexpr

Definition at line 378 of file sparse_discrete_domain.hpp.

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ operator==()

Definition at line 403 of file sparse_discrete_domain.hpp.

◆ operator!=()

◆ size()

static KOKKOS_FUNCTION constexpr std::size_t ddc::SparseDiscreteDomain<>::size ( )
inlinestaticconstexpr

Definition at line 417 of file sparse_discrete_domain.hpp.

◆ extents()

static KOKKOS_FUNCTION constexpr discrete_vector_type ddc::SparseDiscreteDomain<>::extents ( )
inlinestaticconstexprnoexcept

Definition at line 422 of file sparse_discrete_domain.hpp.

◆ front()

Definition at line 427 of file sparse_discrete_domain.hpp.

◆ back()

Definition at line 432 of file sparse_discrete_domain.hpp.

◆ take_first()

Definition at line 437 of file sparse_discrete_domain.hpp.

◆ take_last()

◆ remove_first()

Definition at line 449 of file sparse_discrete_domain.hpp.

◆ remove_last()

Definition at line 455 of file sparse_discrete_domain.hpp.

◆ remove()

◆ operator()()

◆ contains() [1/2]

static KOKKOS_FUNCTION bool ddc::SparseDiscreteDomain<>::contains ( )
inlinestaticnoexcept

Definition at line 474 of file sparse_discrete_domain.hpp.

◆ contains() [2/2]

static KOKKOS_FUNCTION bool ddc::SparseDiscreteDomain<>::contains ( DiscreteElement<>  )
inlinestaticnoexcept

Definition at line 479 of file sparse_discrete_domain.hpp.

◆ distance_from_front() [1/2]

static KOKKOS_FUNCTION DiscreteVector ddc::SparseDiscreteDomain<>::distance_from_front ( )
inlinestaticnoexcept

Definition at line 484 of file sparse_discrete_domain.hpp.

◆ distance_from_front() [2/2]

static KOKKOS_FUNCTION DiscreteVector ddc::SparseDiscreteDomain<>::distance_from_front ( DiscreteElement<>  )
inlinestaticnoexcept

Definition at line 489 of file sparse_discrete_domain.hpp.

◆ empty()

static KOKKOS_FUNCTION constexpr bool ddc::SparseDiscreteDomain<>::empty ( )
inlinestaticconstexprnoexcept

Definition at line 494 of file sparse_discrete_domain.hpp.

◆ operator bool()

Definition at line 499 of file sparse_discrete_domain.hpp.

Friends And Related Symbol Documentation

◆ SparseDiscreteDomain

template<class... >
friend class SparseDiscreteDomain
friend

Definition at line 371 of file sparse_discrete_domain.hpp.


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