|
Bitstream Interpretation Library (BIL)
0.1
|
A 2-dimensional lookup for tiles. More...
#include <xdlrc/util/TileLookup2D.hpp>
Public Member Functions | |
| TileLookup2D () | |
| Constructs a new TileLookup2D instance. | |
| unsigned | rowCount () const |
| Gets the number of tile rows. | |
| unsigned | columnCount () const |
| Gets the number of tile columns. | |
| const Tile * | lookup (unsigned row, unsigned column) const |
| Gets the tile at specified position read only. | |
| void | reset (const Device &device) |
| Rebuilds the lookup. | |
| void | clear () |
| Empties the lookup. | |
A 2-dimensional lookup for tiles.
This class helps for fast look up of tiles inside a Device instance by their row and column position. It is a simple read-only lookup, and if the tiles are changed from outside, the lookup must be rebuild in order to work correct.
Definition at line 28 of file TileLookup2D.hpp.
| TileLookup2D::TileLookup2D | ( | ) |
Constructs a new TileLookup2D instance.
Definition at line 12 of file TileLookup2D.cpp.
| unsigned TileLookup2D::rowCount | ( | ) | const |
Gets the number of tile rows.
Definition at line 21 of file TileLookup2D.cpp.
| unsigned TileLookup2D::columnCount | ( | ) | const |
Gets the number of tile columns.
Definition at line 27 of file TileLookup2D.cpp.
| const Tile * TileLookup2D::lookup | ( | unsigned | row, |
| unsigned | column | ||
| ) | const |
Gets the tile at specified position read only.
| row | Row of tile. |
| column | Column of tile. |
Definition at line 33 of file TileLookup2D.cpp.
| void TileLookup2D::reset | ( | const Device & | device | ) |
Rebuilds the lookup.
| device | The device instance which tiles will be used. |
Definition at line 41 of file TileLookup2D.cpp.
| void TileLookup2D::clear | ( | ) |
Empties the lookup.
Definition at line 65 of file TileLookup2D.cpp.
1.8.1.1