parallel-cellular-automata
Framework for building parallel cellular automata.
cellular_automata.hpp
Go to the documentation of this file.
1 
11 #ifndef PARALLEL_CELLULAR_AUTOMATA_CELLULAR_AUTOMATA_HPP
12 #define PARALLEL_CELLULAR_AUTOMATA_CELLULAR_AUTOMATA_HPP
13 #include <iostream>
14 // clang-format off
15 #include "grid.hpp"
16 #include "sequential_automaton.hpp"
17 #include "parallel_automaton.hpp"
19 #include "omp_automaton.hpp"
20 #include "ff_automaton.hpp"
21 // clang-format on
22 
27 namespace ca
28 {
33 {
34  public:
41  virtual void simulate(unsigned steps = 1) = 0;
47  virtual size_t get_generation() = 0;
48 };
49 
50 } // namespace ca
51 
52 #endif
Interface of the CellularAutomaton.
Definition: cellular_automata.hpp:33
virtual size_t get_generation()=0
Get the generation of the simulation.
virtual void simulate(unsigned steps=1)=0
Run the simulation for a given number of steps.
This file contains the definition and implementation of the parallel version of the Cellular Automato...
Definition of the grid of the automaton.
Namespace of the framework.
Definition: barrier.hpp:20
This file contains the definition and implementation of the Cellular Automaton parallelized using Ope...
This file contains the definition and implementation of the parallel version of the Cellular Automato...
This file implements the parallel cellular automaton using the busy wait function of the barrier.
This file contains the definition and implementation of the sequential version of the Cellular Automa...