degate  0.1.2
Public Member Functions
degate::Image< PixelPolicy, StoragePolicy_Tile > Class Template Reference

Partial template specialization for the storage policy StoragePolicy_Tile. More...

#include <Image.h>

Inheritance diagram for degate::Image< PixelPolicy, StoragePolicy_Tile >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Image (unsigned int _width, unsigned int _height, unsigned int _tile_width_exp=10)
 Constructor for temporary virtual images.
 Image (unsigned int _width, unsigned int _height, std::string const &directory, bool persistent=true, unsigned int _tile_width_exp=10)
 Constructor for persistent virtual images.
virtual ~Image ()
 The dtor.
template<typename PixelTypeDst >
PixelTypeDst get_pixel_as (unsigned int x, unsigned int y)
 Get pixel with conversion.
template<typename PixelTypeSrc >
void set_pixel_as (unsigned int x, unsigned int y, PixelTypeSrc p)
 Set pixel with conversion.

Detailed Description

template<class PixelPolicy>
class degate::Image< PixelPolicy, StoragePolicy_Tile >

Partial template specialization for the storage policy StoragePolicy_Tile.

Definition at line 206 of file Image.h.


Constructor & Destructor Documentation

template<class PixelPolicy >
degate::Image< PixelPolicy, StoragePolicy_Tile >::Image ( unsigned int  _width,
unsigned int  _height,
unsigned int  _tile_width_exp = 10 
) [inline]

Constructor for temporary virtual images.

Definition at line 216 of file Image.h.

                                             :
      ImageBase(_width, _height),
      StoragePolicy_Tile<PixelPolicy>(_width, _height,
                                      create_temp_directory(),
                                      false,
                                      _tile_width_exp) {}
template<class PixelPolicy >
degate::Image< PixelPolicy, StoragePolicy_Tile >::Image ( unsigned int  _width,
unsigned int  _height,
std::string const &  directory,
bool  persistent = true,
unsigned int  _tile_width_exp = 10 
) [inline]

Constructor for persistent virtual images.

Definition at line 229 of file Image.h.

                                             :
      ImageBase(_width, _height),
      StoragePolicy_Tile<PixelPolicy>(_width, _height,
                                      directory,
                                      persistent,
                                      _tile_width_exp) {}
template<class PixelPolicy >
virtual degate::Image< PixelPolicy, StoragePolicy_Tile >::~Image ( ) [inline, virtual]

The dtor.

Definition at line 244 of file Image.h.

{}

Member Function Documentation

template<class PixelPolicy >
template<typename PixelTypeDst >
PixelTypeDst degate::Image< PixelPolicy, StoragePolicy_Tile >::get_pixel_as ( unsigned int  x,
unsigned int  y 
) [inline]

Get pixel with conversion.

Definition at line 250 of file Image.h.

                                                                     {
      return convert_pixel<PixelTypeDst, typename PixelPolicy::pixel_type>(this->get_pixel(x, y));
    }
template<class PixelPolicy >
template<typename PixelTypeSrc >
void degate::Image< PixelPolicy, StoragePolicy_Tile >::set_pixel_as ( unsigned int  x,
unsigned int  y,
PixelTypeSrc  p 
) [inline]

Set pixel with conversion.

Definition at line 258 of file Image.h.

                                                                             {
      this->set_pixel(x, y,
                      convert_pixel<typename PixelPolicy::pixel_type, PixelTypeSrc>(p));
    }

The documentation for this class was generated from the following file: