Template Class grid2D
Defined in File grid2D.hpp
Inheritance Relationships
Base Type
public rcppsw::ds::base_grid2D< T >
(Template Class base_grid2D)
Class Documentation
-
template<typename T>
class grid2D : public rcppsw::ds::base_grid2D<T> A 2D grid of SOMETHING. Mainly a convenience wrapper around boost::multi_array.
Public Functions
-
inline explicit grid2D(const coord_type &dims)
-
inline grid2D(size_t x_max, size_t y_max)
-
inline virtual T &access(size_t i, size_t j) override
Return a reference to the element at position (i, j) in the grid.
This is provided in the base class so that the pointer/object variants of the grid (grid2D, grid2D_overlay) can reduce code duplication.
-
inline virtual size_t xsize(void) const override
Get the size of the X dimension of the grid (i.e. what is the array index in X?)
-
inline virtual size_t ysize(void) const override
Get the size of the Y dimension of the grid (i.e. what is the array index in Y?)
-
inline explicit grid2D(const coord_type &dims)