Template Class DenseGrid
Defined in File dense_grid.h
Class Documentation
-
template<typename CellDataT, int dim, unsigned cells_per_side>
class DenseGrid Public Types
-
using DataArrayType = std::array<CellDataT, kCellsPerBlock>
Public Functions
-
inline explicit DenseGrid(const CellDataT &default_value)
-
inline CellDataT &operator[](size_t linear_index)
-
inline const CellDataT &operator[](size_t linear_index) const
-
inline DataArrayType &data()
-
inline const DataArrayType &data() const
Public Static Attributes
-
static constexpr IndexElement kDim = dim
-
static constexpr IndexElement kCellsPerSide = cells_per_side
-
static constexpr IndexElement kCellsPerBlock = int_math::exp2(dim * kCellsPerSideLog2)
-
using DataArrayType = std::array<CellDataT, kCellsPerBlock>