|
Cellular Automata CHEM274B Group Project
Contributor(s): Chongye Feng, Emmanuel Cortes, Trevor Oldham
|
This file contains the custom datatypes used in the Cellular Automata project. More...
#include "CAutils.h"#include <array>#include <unordered_map>#include <iostream>#include <algorithm>#include <utility>#include <cmath>Go to the source code of this file.
Classes | |
| class | BaseCellularAutomata |
| A base CellularAutomata class that contains non-templated member variables and method definitions from which templated and specialized template classes can inherit. More... | |
| class | CellularAutomata< T > |
| A CellularAutomata class for simulating cellular automata models. More... | |
Namespaces | |
| namespace | CAEnums |
| Enum namespace that contains various enum definitions used by CellularAutomata. | |
Typedefs | |
| using | MajorityCounter = std::unordered_map< int, int > |
| counter type for determining which cell state is the majority More... | |
Enumerations | |
| enum | CAEnums::Neighborhood { VonNeumann , Moore } |
| enum containing the different type of neighborhoods the CellularAutomata class supports More... | |
| enum | CAEnums::Boundary { Periodic , Walled , CutOff } |
| enum containing the different type of boundaries the CellularAutomata class supports More... | |
| enum | CAEnums::Rule { Majority , Parity , Custom } |
| enum containing the different type of rules the CellularAutomata class supports for it's transitions More... | |
| enum | CAEnums::ErrorCode { CellsAlreadyInitialized = -1 , CellsAreNull = -2 , CellsMalloc = -3 , InvalidCellState = -4 , InvalidCellStateCondition = -5 , InvalidRadius = -6 , InvalidNumStates = -7 , NeighborhoodCellsMalloc = -8 , CustomRuleIsNull = -9 , RadiusLargerThanDimensions = -10 } |
| enum containing the various error codes the CellularAutomata class can return More... | |
Variables | |
| const std::string | FILE_PATH = "Data/data.csv" |
This file contains the custom datatypes used in the Cellular Automata project.
Contributor(s)
Emmanuel Cortes, Chongye Feng
| using MajorityCounter = std::unordered_map<int, int> |
counter type for determining which cell state is the majority