|
Celeritas 0.7-develop+ddcb429
|
#include <initializer_list>#include <limits>#include "corecel/Config.hh"#include "corecel/sys/ThreadId.hh"#include "Collection.hh"#include "detail/FillInvalid.hh"Classes | |
| class | celeritas::CollectionBuilder< T, M, I > |
| Helper class for constructing Collection objects. More... | |
Functions | |
| template<class T , MemSpace M, class I > | |
| celeritas::CollectionBuilder (Collection< T, Ownership::value, M, I > *) -> CollectionBuilder< T, M, I > | |
| template<class T , MemSpace M, class I > | |
| CollectionBuilder< T, M, I > | celeritas::make_builder (Collection< T, Ownership::value, M, I > *collection) |
| Helper function for constructing collection builders. | |
| template<class T , MemSpace M, class I > | |
| void | celeritas::resize (Collection< T, Ownership::value, M, I > *collection, std::size_t size) |
| Helper function for resizing a single collection. | |
| template<class T , MemSpace M, class I > | |
| void | celeritas::resize (Collection< T, Ownership::value, M, I > *collection, std::size_t size, StreamId stream) |
| Helper function for resizing a single collection on a stream. | |
| CollectionBuilder< T, M, I > celeritas::make_builder | ( | Collection< T, Ownership::value, M, I > * | collection | ) |
Helper function for constructing collection builders.
(Will not be needed under C++17's template argument deduction).
| void celeritas::resize | ( | Collection< T, Ownership::value, M, I > * | collection, |
| std::size_t | size | ||
| ) |
Helper function for resizing a single collection.
This is useful for analogy to the resize method defined for states.
| void celeritas::resize | ( | Collection< T, Ownership::value, M, I > * | collection, |
| std::size_t | size, | ||
| StreamId | stream | ||
| ) |
Helper function for resizing a single collection on a stream.
Device memory is allocated (and later freed) in stream order, avoiding the implicit device-wide synchronization of a plain allocation.