![]() |
CMlib
Cell mapping algorithms in C++
|
Template class for Cells used with Simple Cell Mapping. More...
#include <cell.h>
Public Member Functions | |
SCMCell () | |
Step number of this cell (0 for periodic cells, positive for transient cells) More... | |
IDType | getImage () const |
Returns the image of the cell. More... | |
void | setImage (IDType image) |
Sets the image of the cell. More... | |
IDType | getGroup () const |
Returns the group number of the cell. More... | |
void | setGroup (IDType group) |
Sets the group number of the cell. More... | |
IDType | getStep () const |
Returns the step number of the cell. More... | |
void | setStep (IDType step) |
Sets the step number of the cell. More... | |
![]() | |
CellBase () | |
The state of the cell. More... | |
CellState | getState () const |
Returns the state of the cell. More... | |
void | setState (CellState state) |
Sets the state of the cell. More... | |
Template class for Cells used with Simple Cell Mapping.
If ID_type is uint32_t, max number of cells is: ~4294 million sizeof(SCMCell) is: 4*4 = 16 bytes (due to padding) max usable memory: ~68.7 Gigabytes If you have more memory, use uint64_t as IDType.
|
inline |
Step number of this cell (0 for periodic cells, positive for transient cells)
|
inline |
Returns the group number of the cell.
|
inline |
Returns the image of the cell.
|
inline |
Returns the step number of the cell.
|
inline |
Sets the group number of the cell.
|
inline |
Sets the image of the cell.
|
inline |
Sets the step number of the cell.