lucbettaieb / twod-1

A flexible 2D grid library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TwoD

Description

Collection of generic grid and grid viewing containers. Includes dynamic, fixed size and memeory-mapped grid containers. Compiles with C++17.

Grids and views are implemented with a common CRTP base. Functions working on grids can be written like so to accept any grid-like type:

template<typename DerivedT, typename BoundsT>
void doThing(twod::GridBase<DerivedT, BoundsT>& grid, ...)
{
  grid[twod::Indices{1, 1}] = twod::cell_t<DerivedT>{...};

  /// etc.
}

Running Tests

In the WORKSPACE folder

bazel test ... --test_output=all --cache_test_results=no

About

A flexible 2D grid library

License:MIT License


Languages

Language:C++ 97.5%Language:Python 2.5%