|
| Level (uvec2 const &size=uvec2(0, 0), T const &borderValue=(T) 0) |
|
T & | at (uvec2 const &pos) |
|
T & | at (uint const x, uint const y) |
|
T * | data () |
|
void | clear () |
|
void | resize (uvec2 const &size) |
|
uvec2 const & | size () const |
|
template<typename T>
class QuadTree::Level< T >
QuadTree::Level represents a level in the quad-tree.
Definition at line 15 of file QuadTree.hpp.
Level |
( |
uvec2 const & |
size = uvec2(0,0) , |
|
|
T const & |
borderValue = (T)0 |
|
) |
| |
|
inline |
Constructs a Level.
- Parameters
-
size | The size of the level |
borderValue | the value that shall be returned when accessing a cell outside the borders |
Definition at line 28 of file QuadTree.hpp.
T& at |
( |
uvec2 const & |
pos | ) |
|
|
inline |
Accessor to a cell.
- Parameters
-
pos | The position of the cell |
- Returns
- The value at the cell
Definition at line 39 of file QuadTree.hpp.
T& at |
( |
uint const |
x, |
|
|
uint const |
y |
|
) |
| |
|
inline |
Accessor to a cell.
- Parameters
-
x | The x-coordinate of the cell |
y | The y-coordinate of the cell |
- Returns
- The value at the cell
Definition at line 56 of file QuadTree.hpp.
Accessor to the layers data.
- Returns
- The layers data
Definition at line 64 of file QuadTree.hpp.
void resize |
( |
uvec2 const & |
size | ) |
|
|
inline |
Resizes the layer.
- Parameters
-
size | The new size of the layer |
Definition at line 79 of file QuadTree.hpp.
uvec2 const& size |
( |
| ) |
const |
|
inline |
Accessor to the layers size.
- Returns
- The layers size.
Definition at line 100 of file QuadTree.hpp.
The value that shall be returned when accessing a cell outside the borders
Definition at line 19 of file QuadTree.hpp.
The documentation for this class was generated from the following file: