bwmodel
A modeling environment for Minecraft Bedwars
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
bwmodel::GridInterface< T, Index > Class Template Referenceabstract

#include <grid.h>

Public Member Functions

Index width () const
 
Index height () const
 

Protected Member Functions

virtual const Grid< T > & backing () const =0
 
void assert_grid_invariant ()
 

Detailed Description

template<typename T, typename Index>
class bwmodel::GridInterface< T, Index >

A generic grid with width and height.

Member Function Documentation

◆ assert_grid_invariant()

template<typename T , typename Index >
void bwmodel::GridInterface< T, Index >::assert_grid_invariant ( )
inlineprotected

Ensures that all rows in the grid have the same length.

◆ backing()

template<typename T , typename Index >
virtual const Grid< T > & bwmodel::GridInterface< T, Index >::backing ( ) const
protectedpure virtual

Internally retrieves the backing (nested vector) for helper function generation in GridInterface.

Implemented in bwmodel::HeatMap, and bwmodel::Map.


The documentation for this class was generated from the following file: