Template Class DenseGrid

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 CellDataT &at(const Index<dim> &index)
inline const CellDataT &at(const Index<dim> &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)