Celeritas  0.5.0-86+4a8eea4
Classes | Functions
CollectionBuilder.hh File Reference
#include <initializer_list>
#include <limits>
#include "corecel/Config.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. More...
 
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. More...
 

Function Documentation

◆ make_builder()

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.

(Will not be needed under C++17's template argument deduction).

◆ resize()

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.

This is useful for analogy to the resize method defined for states.