A TileStorage that store tiles on CPU. More...
#include <CPUTileStorage.h>
Classes | |
class | CPUSlot |
A slot managed by a CPUTileStorage. More... | |
Public Member Functions | |
CPUTileStorage (int tileSize, int channels, int capacity) | |
Creates a new CPUTileStorage. | |
virtual | ~CPUTileStorage () |
Deletes this CPUTileStorage. | |
int | getChannels () |
Returns the number of components per pixel of each tile. | |
Protected Member Functions | |
CPUTileStorage () | |
Creates an uninitialized CPUTileStorage. | |
void | init (int tileSize, int channels, int capacity) |
Initializes this CPUTileStorage. | |
Private Attributes | |
int | channels |
The number of components per pixel of each tile. |
A TileStorage that store tiles on CPU.
T | the type of each tile pixel component (e.g. char, float, etc). |
proland::CPUTileStorage< T >::CPUTileStorage | ( | int | tileSize, | |
int | channels, | |||
int | capacity | |||
) | [inline] |
Creates a new CPUTileStorage.
tileSize | the size in pixels of each (square) tile. | |
channels | the number of components per pixel of each tile. Each component is of type T. | |
capacity | the number of slots managed by this tile storage. |
virtual proland::CPUTileStorage< T >::~CPUTileStorage | ( | ) | [inline, virtual] |
Deletes this CPUTileStorage.
proland::CPUTileStorage< T >::CPUTileStorage | ( | ) | [inline, protected] |
Creates an uninitialized CPUTileStorage.
int proland::CPUTileStorage< T >::getChannels | ( | ) | [inline] |
Returns the number of components per pixel of each tile.
Each component is of type T.
void proland::CPUTileStorage< T >::init | ( | int | tileSize, | |
int | channels, | |||
int | capacity | |||
) | [inline, protected] |
Initializes this CPUTileStorage.
tileSize | the size in pixels of each (square) tile. | |
channels | the number of components per pixel of each tile. Each component is of type T. | |
capacity | the number of slots managed by this tile storage. |
int proland::CPUTileStorage< T >::channels [private] |
The number of components per pixel of each tile.