degate  0.1.2
Public Types | Public Member Functions
degate::StoragePolicy_Base< PixelPolicy > Class Template Reference

Base class for the storage policy of an image. More...

#include <StoragePolicies.h>

Inheritance diagram for degate::StoragePolicy_Base< PixelPolicy >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef PixelPolicy::pixel_type pixel_type
typedef PixelPolicy pixel_policy

Public Member Functions

 StoragePolicy_Base ()
virtual ~StoragePolicy_Base ()
virtual pixel_type get_pixel (unsigned int x, unsigned int y) const =0
 Get pixel for "native" pixel types.
virtual void set_pixel (unsigned int x, unsigned int y, pixel_type new_val)=0
 Set "native" pixel.

Detailed Description

template<class PixelPolicy>
class degate::StoragePolicy_Base< PixelPolicy >

Base class for the storage policy of an image.

This is basically the same as StoragePolicy_GenericBase, but adds some methods depending on the PixelPolicy specialization.

Definition at line 45 of file StoragePolicies.h.


Member Typedef Documentation

template<class PixelPolicy >
typedef PixelPolicy degate::StoragePolicy_Base< PixelPolicy >::pixel_policy

Definition at line 49 of file StoragePolicies.h.

template<class PixelPolicy >
typedef PixelPolicy::pixel_type degate::StoragePolicy_Base< PixelPolicy >::pixel_type

Definition at line 48 of file StoragePolicies.h.


Constructor & Destructor Documentation

template<class PixelPolicy >
degate::StoragePolicy_Base< PixelPolicy >::StoragePolicy_Base ( ) [inline]

Definition at line 51 of file StoragePolicies.h.

{}
template<class PixelPolicy >
virtual degate::StoragePolicy_Base< PixelPolicy >::~StoragePolicy_Base ( ) [inline, virtual]

Definition at line 53 of file StoragePolicies.h.

{}

Member Function Documentation

template<class PixelPolicy >
virtual pixel_type degate::StoragePolicy_Base< PixelPolicy >::get_pixel ( unsigned int  x,
unsigned int  y 
) const [pure virtual]

Get pixel for "native" pixel types.

This method is abstract. If you derive from this class, you should implement it for a concrete StoragePolicy.

Implemented in degate::StoragePolicy_Tile< PixelPolicy >, degate::StoragePolicy_File< PixelPolicy >, and degate::StoragePolicy_Memory< PixelPolicy >.

template<class PixelPolicy >
virtual void degate::StoragePolicy_Base< PixelPolicy >::set_pixel ( unsigned int  x,
unsigned int  y,
pixel_type  new_val 
) [pure virtual]

Set "native" pixel.

This method is abstract. If you derive from this class, you should implement it for a concrete StoragePolicy.

Implemented in degate::StoragePolicy_Tile< PixelPolicy >, degate::StoragePolicy_File< PixelPolicy >, and degate::StoragePolicy_Memory< PixelPolicy >.


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