Skip to content

Collection of useful classes, functions and snippets in a common library, categorized by type (data structures, algorithms...)

Notifications You must be signed in to change notification settings

albertosantagostino/commonlib-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commonlib

Header-only library to collect personal implementations of algorithms, data structures, primitives and multiple useful classes/functions/snippets written in modern C++

Library

Data structures

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

Primitives

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

Unit testing and debugging

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.

About

Collection of useful classes, functions and snippets in a common library, categorized by type (data structures, algorithms...)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published