Header-only library to collect personal implementations of algorithms, data structures, primitives and multiple useful classes/functions/snippets written in modern C++
File | Class | Base/Derived | Description |
---|---|---|---|
include/data_structures/matrix.h | Matrix |
B | Generic 2D matrix template |
include/data_structures/grid.h | Grid |
D(Matrix) | Generic 2D characters grid |
File | Class | Base/Derived | Description |
---|---|---|---|
include/primitives/actor.h | Actor |
B | Generic actor to be placed on a Grid |
include/primitives/position.h | Position |
B | Generic 2D position |
Tests are written in C++ and are based on the Google Test framework. To build and run them:
cd build
cmake . && make
./commonlib_tests
To interactively debug any (covered) part of the library, just place a breakpoint in Visual Studio Code and press F5
.