|
IPPL API Reference
Independent Parallel Particle Layer C++ API
|
#include <TypeUtils.h>
Public Member Functions | |
| template<typename DataType , typename Filter = std::nullptr_t> | |
| MultispaceContainer (const DataType &data, Filter &&predicate=nullptr) | |
| template<typename Space , typename Filter = std::nullptr_t> | |
| void | copyToOtherSpaces (Filter &&predicate=nullptr) |
| template<typename Space > | |
| const Type< Space > & | get () const |
| template<typename Space > | |
| Type< Space > & | get () |
| template<typename Functor > | |
| void | forAll (Functor &&f) const |
| template<typename Functor > | |
| void | forAll (Functor &&f) |
A container indexed by type instead of by numerical indices; designed for storing elements associated with Kokkos memory spaces
| Type | the element type |
| Spaces... | the memory spaces of interest |
|
inline |
Constructs a container where all spaces have a mirror with the same data as the provided data structure; a predicate functor can be provided to skip any undesired memory spaces
| DataType | the type of the provided element |
| Filter | the predicate type, or nullptr_t if there is no predicate |
| data | the original data |
| predicate | an optional functor that determines which memory spaces need a copy of the data |
|
inline |
Copies the data from one memory space to all other memory spaces
| Space | the source space |
| Filter | the predicate type |
| predicate | an optional functor that determines which memory spaces need a copy of the data |
|
inline |
Performs an action for each element
| Functor | the functor type |
| f | a functor taking an element for a given space |
|
inline |
Accessor for a space's element
| Space | the memory space |