MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types
MFM::GridConfig< CC, W, H > Struct Template Reference

#include <GridConfig.h>

Public Types

enum  { GRID_WIDTH = W }
 
enum  { GRID_HEIGHT = H }
 
typedef CC CORE_CONFIG
 

Detailed Description

template<class CC, u32 W = 5, u32 H = 3>
struct MFM::GridConfig< CC, W, H >

A template class used to hold all compile-time GridConfiguration parameters for a MFM. We make all MFM template classes depend on this one type, rather than having each depend on whichever compile-time parameters they reference.

If an additional compile-time parameter is needed, rather than having to add it to thousands of template declarations throughout the codebase, we just add it here, and then modify only the template classes that need to use the new parameter.

Member Typedef Documentation

template<class CC , u32 W = 5, u32 H = 3>
typedef CC MFM::GridConfig< CC, W, H >::CORE_CONFIG

CORE_CONFIG is the Config type for the core MFM parameters.

Member Enumeration Documentation

template<class CC , u32 W = 5, u32 H = 3>
anonymous enum

GRID_WIDTH is the number of columns of tiles in this Grid Configuration.

template<class CC , u32 W = 5, u32 H = 3>
anonymous enum

GRID_HEIGHT is the number of rows of tiles in this Grid Configuration.


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