|
CellViz
1.0
|
Represents a type of cellular automaton called DiscreteAutomaton. More...
#include <cells.h>
Public Member Functions | |
| DiscreteAutomaton () | |
| Default constructor for DiscreteAutomaton. More... | |
| DiscreteAutomaton (int x, int y, double value) | |
| Parameterized constructor for DiscreteAutomaton. More... | |
| DiscreteAutomaton (const DiscreteAutomaton &cell) | |
| Copy constructor for DiscreteAutomaton. More... | |
| virtual double | get_value ()=0 |
| virtual int | get_x ()=0 |
| virtual int | get_y ()=0 |
| void | set_x (int x) |
| Sets the x-coordinate of the DiscreteAutomaton. More... | |
| void | set_y (int y) |
| Sets the y-coordinate of the DiscreteAutomaton. More... | |
| void | set_value (double value) |
| Sets the value of the DiscreteAutomaton. More... | |
| bool | operator== (const DiscreteAutomaton &cell) const |
| Equality operator for DiscreteAutomaton. More... | |
Public Member Functions inherited from CellularAutomaton | |
| virtual | ~CellularAutomaton ()=default |
Private Attributes | |
| int | x |
| int | y |
| double | value |
Additional Inherited Members | |
Protected Member Functions inherited from CellularAutomaton | |
| CellularAutomaton ()=default | |
Static Protected Member Functions inherited from CellularAutomaton | |
| static void | compute (Board *board) |
Represents a type of cellular automaton called DiscreteAutomaton.
| DiscreteAutomaton::DiscreteAutomaton | ( | ) |
Default constructor for DiscreteAutomaton.
| DiscreteAutomaton::DiscreteAutomaton | ( | int | x, |
| int | y, | ||
| double | value | ||
| ) |
Parameterized constructor for DiscreteAutomaton.
| x | The x-coordinate of the cell. |
| y | The y-coordinate of the cell. |
| value | The value of the cell. |
| DiscreteAutomaton::DiscreteAutomaton | ( | const DiscreteAutomaton & | cell | ) |
Copy constructor for DiscreteAutomaton.
| cell | The DiscreteAutomaton object to copy. |
|
pure virtual |
| bool DiscreteAutomaton::operator== | ( | const DiscreteAutomaton & | cell | ) | const |
Equality operator for DiscreteAutomaton.
| cell | The DiscreteAutomaton to compare. |
| void DiscreteAutomaton::set_value | ( | double | value | ) |
Sets the value of the DiscreteAutomaton.
| value | The new value. |
| void DiscreteAutomaton::set_x | ( | int | x | ) |
Sets the x-coordinate of the DiscreteAutomaton.
| x | The new x-coordinate. |
| void DiscreteAutomaton::set_y | ( | int | y | ) |
Sets the y-coordinate of the DiscreteAutomaton.
| y | The new y-coordinate. |
|
private |
|
private |
|
private |