|
IPPL (Independent Parallel Particle Layer)
IPPL
|
#include <Index.h>
Classes | |
| class | iterator |
Public Member Functions | |
| KOKKOS_INLINE_FUNCTION | Index () |
| KOKKOS_INLINE_FUNCTION | Index (size_t n) |
| KOKKOS_INLINE_FUNCTION | Index (int f, int l) |
| KOKKOS_INLINE_FUNCTION | Index (int f, int l, int s) |
| KOKKOS_DEFAULTED_FUNCTION | ~Index ()=default |
| KOKKOS_INLINE_FUNCTION int | min () const noexcept |
| KOKKOS_INLINE_FUNCTION int | max () const noexcept |
| KOKKOS_INLINE_FUNCTION size_t | length () const noexcept |
| KOKKOS_INLINE_FUNCTION int | stride () const noexcept |
| KOKKOS_INLINE_FUNCTION int | first () const noexcept |
| KOKKOS_INLINE_FUNCTION int | last () const noexcept |
| KOKKOS_INLINE_FUNCTION bool | empty () const noexcept |
| KOKKOS_INLINE_FUNCTION Index & | operator+= (int) |
| KOKKOS_INLINE_FUNCTION Index & | operator-= (int) |
| KOKKOS_INLINE_FUNCTION Index | intersect (const Index &) const |
| KOKKOS_INLINE_FUNCTION Index | grow (int ncells) const |
| KOKKOS_INLINE_FUNCTION bool | touches (const Index &a) const |
| KOKKOS_INLINE_FUNCTION bool | contains (const Index &a) const |
| KOKKOS_INLINE_FUNCTION bool | split (Index &l, Index &r) const |
| KOKKOS_INLINE_FUNCTION bool | split (Index &l, Index &r, int i) const |
| KOKKOS_INLINE_FUNCTION bool | split (Index &l, Index &r, double a) const |
| iterator | begin () |
| iterator | end () |
| KOKKOS_INLINE_FUNCTION bool | operator< (const Index &r) const |
| KOKKOS_INLINE_FUNCTION bool | operator== (const Index &r) const noexcept |
Private Member Functions | |
| KOKKOS_INLINE_FUNCTION Index | reverse () const |
| The number of elements. | |
| KOKKOS_INLINE_FUNCTION | Index (int m, int a, const Index &b) |
| KOKKOS_INLINE_FUNCTION | Index (int f, int s, const Index *b) |
| KOKKOS_INLINE_FUNCTION Index | general_intersect (const Index &) const |
Private Attributes | |
| int | first_m |
| int | stride_m |
| First index element. | |
| size_t | length_m |
Friends | |
| KOKKOS_INLINE_FUNCTION friend Index | operator+ (const Index &i, int off) |
| KOKKOS_INLINE_FUNCTION friend Index | operator+ (int off, const Index &i) |
| KOKKOS_INLINE_FUNCTION friend Index | operator- (const Index &i, int off) |
| KOKKOS_INLINE_FUNCTION friend Index | operator- (int off, const Index &i) |
| KOKKOS_INLINE_FUNCTION friend Index | operator- (const Index &i) |
| KOKKOS_INLINE_FUNCTION friend Index | operator* (const Index &i, int m) |
| KOKKOS_INLINE_FUNCTION friend Index | operator* (int m, const Index &i) |
| KOKKOS_INLINE_FUNCTION friend Index | operator/ (const Index &i, int d) |
| KOKKOS_INLINE_FUNCTION ippl::Index::Index | ( | ) |
Instantiate Index without any range.
Definition at line 36 of file Index.hpp.
References first_m, length_m, and stride_m.
Referenced by contains(), general_intersect(), grow(), Index(), Index(), intersect(), operator*, operator*, operator+, operator+, operator+=(), operator-, operator-, operator-, operator-=(), operator/, operator<(), operator==(), reverse(), split(), split(), split(), touches(), and ~Index().
| KOKKOS_INLINE_FUNCTION ippl::Index::Index | ( | size_t | n | ) |
| KOKKOS_INLINE_FUNCTION ippl::Index::Index | ( | int | f, |
| int | l ) |
| KOKKOS_INLINE_FUNCTION ippl::Index::Index | ( | int | f, |
| int | l, | ||
| int | s ) |
|
default |
|
private |
|
private |
|
inline |
| KOKKOS_INLINE_FUNCTION bool ippl::Index::contains | ( | const Index & | a | ) | const |
|
noexcept |
|
inline |
|
noexcept |
Definition at line 76 of file Index.hpp.
References first_m.
Referenced by ippl::do_intersect(), intersect(), ippl::operator<<(), and ~Index().
Definition at line 308 of file Index.hpp.
References ippl::do_intersect(), first_m, Index(), intersect(), max(), min(), reverse(), and stride_m.
Referenced by intersect().
| KOKKOS_INLINE_FUNCTION Index ippl::Index::grow | ( | int | ncells | ) | const |
|
noexcept |
Definition at line 92 of file Index.hpp.
References first_m, length_m, and stride_m.
Referenced by intersect(), ippl::operator<<(), reverse(), and ~Index().
|
noexcept |
Definition at line 88 of file Index.hpp.
References length_m.
Referenced by ippl::do_intersect(), and ~Index().
|
noexcept |
Definition at line 100 of file Index.hpp.
References first_m, length_m, and stride_m.
Referenced by contains(), ippl::do_intersect(), general_intersect(), touches(), and ~Index().
|
noexcept |
Definition at line 96 of file Index.hpp.
References first_m, length_m, and stride_m.
Referenced by contains(), general_intersect(), and touches().
| KOKKOS_INLINE_FUNCTION Index & ippl::Index::operator+= | ( | int | off | ) |
| KOKKOS_INLINE_FUNCTION Index & ippl::Index::operator-= | ( | int | off | ) |
|
inline |
|
inlinenoexcept |
|
private |
Definition at line 162 of file Index.hpp.
References first_m, Index(), length_m, PAssert_EQ, PAssert_GT, and stride_m.
Referenced by ~Index().
Definition at line 182 of file Index.hpp.
References first_m, Index(), length_m, PAssert_EQ, PAssert_GT, PAssert_LT, and stride_m.
Definition at line 171 of file Index.hpp.
References first_m, Index(), length_m, PAssert_EQ, PAssert_GT, and stride_m.
|
noexcept |
Definition at line 80 of file Index.hpp.
References stride_m.
Referenced by ippl::do_intersect(), intersect(), ippl::Index::iterator::iterator(), ippl::operator<<(), and ~Index().
| KOKKOS_INLINE_FUNCTION bool ippl::Index::touches | ( | const Index & | a | ) | const |
|
private |
Definition at line 237 of file Index.h.
Referenced by begin(), end(), first(), general_intersect(), grow(), Index(), Index(), Index(), Index(), Index(), Index(), intersect(), last(), max(), min(), operator+=(), operator-=(), operator/, operator<(), operator==(), reverse(), split(), split(), and split().
|
private |
|
private |