Cellular Automata CHEM274B Group Project
Contributor(s): Chongye Feng, Emmanuel Cortes, Trevor Oldham
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Variables
CAdatatypes.h File Reference

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"
 

Detailed Description

This file contains the custom datatypes used in the Cellular Automata project.

Author
Trevor Oldham (trevo.nosp@m.ldha.nosp@m.m@ber.nosp@m.kele.nosp@m.y.edu)

Contributor(s)
   Emmanuel Cortes, Chongye Feng

Date
2022-12-03

Typedef Documentation

◆ MajorityCounter

using MajorityCounter = std::unordered_map<int, int>

counter type for determining which cell state is the majority