
Public Member Functions | |
| def | __init__ |
| def | cell_iter |
| Returns an iterator that iterates over all cells in the grid. | |
| def | get_item_i |
| def | set_item_i |
| def | __getitem__ |
| def | __setitem__ |
Public Attributes | |
| grid | |
Definition at line 341 of file fast_grid.py.
| def fast_grid.Grid2D.__getitem__ | ( | self, | ||
| p | ||||
| ) |
Definition at line 367 of file fast_grid.py.
| def fast_grid.Grid2D.__init__ | ( | self, | ||
| dims, | ||||
initial_item = None | ||||
| ) |
| def fast_grid.Grid2D.__setitem__ | ( | self, | ||
| p, | ||||
| item | ||||
| ) |
Definition at line 372 of file fast_grid.py.
| def fast_grid.Grid2D.cell_iter | ( | self | ) |
Returns an iterator that iterates over all cells in the grid.
This allows you to write:
for cell in cell_iter(grid): process(cell)
Reimplemented from fast_grid.Container2D.
Definition at line 353 of file fast_grid.py.
| def fast_grid.Grid2D.get_item_i | ( | self, | ||
| x, | ||||
| y | ||||
| ) |
Definition at line 359 of file fast_grid.py.
| def fast_grid.Grid2D.set_item_i | ( | self, | ||
| x, | ||||
| y, | ||||
| item | ||||
| ) |
Definition at line 363 of file fast_grid.py.
Definition at line 345 of file fast_grid.py.
1.5.8