proland::CPUTileStorage< T > Class Template Reference
[producer]

A TileStorage that store tiles on CPU. More...

#include <CPUTileStorage.h>

Inheritance diagram for proland::CPUTileStorage< T >:
proland::TileStorage

List of all members.

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.

Detailed Description

template<class T>
class proland::CPUTileStorage< T >

A TileStorage that store tiles on CPU.

Authors:
Eric Bruneton, Antoine Begault
Template Parameters:
T the type of each tile pixel component (e.g. char, float, etc).

Constructor & Destructor Documentation

template<class T >
proland::CPUTileStorage< T >::CPUTileStorage ( int  tileSize,
int  channels,
int  capacity 
) [inline]

Creates a new CPUTileStorage.

Parameters:
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.
template<class T >
virtual proland::CPUTileStorage< T >::~CPUTileStorage (  )  [inline, virtual]

Deletes this CPUTileStorage.

template<class T >
proland::CPUTileStorage< T >::CPUTileStorage (  )  [inline, protected]

Creates an uninitialized CPUTileStorage.


Member Function Documentation

template<class T >
int proland::CPUTileStorage< T >::getChannels (  )  [inline]

Returns the number of components per pixel of each tile.

Each component is of type T.

template<class T >
void proland::CPUTileStorage< T >::init ( int  tileSize,
int  channels,
int  capacity 
) [inline, protected]

Initializes this CPUTileStorage.

Parameters:
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.

Member Data Documentation

template<class T >
int proland::CPUTileStorage< T >::channels [private]

The number of components per pixel of each tile.


Generated on Sat May 12 09:41:37 2012 for proland by  doxygen 1.6.1