Grid Engine (C++) is a C++ templated data structure for storing grids of information. The grids may be connected in a D4 (Manhatten), D8, or hexagonal sense. The grids may also wrap toroidally so their edges are connected.