SPH
Public Member Functions | List of all members
Bitmap< Type > Class Template Reference

#include <Bitmap.h>

Inheritance diagram for Bitmap< Type >:
Noncopyable

Public Member Functions

 Bitmap ()
 
 Bitmap (const Pixel resolution)
 
Bitmap clone () const
 
void resize (const Pixel newResolution, const Type &value)
 
void fill (const Type &value)
 
Type & operator[] (const Pixel p)
 
const Type & operator[] (const Pixel p) const
 
Type & operator() (const int x, const int y)
 
const Type & operator() (const int x, const int y) const
 
Type * data ()
 
const Type * data () const
 
Pixel size () const
 
bool empty () const
 
- Public Member Functions inherited from Noncopyable
 Noncopyable ()=default
 
 Noncopyable (const Noncopyable &)=delete
 
 Noncopyable (Noncopyable &&)=default
 
Noncopyableoperator= (const Noncopyable &)=delete
 
Noncopyableoperator= (Noncopyable &&)=default
 

Detailed Description

template<typename Type>
class Bitmap< Type >

Definition at line 17 of file Bitmap.h.

Constructor & Destructor Documentation

◆ Bitmap() [1/2]

template<typename Type >
Bitmap< Type >::Bitmap ( )
inline

Definition at line 23 of file Bitmap.h.

◆ Bitmap() [2/2]

template<typename Type >
Bitmap< Type >::Bitmap ( const Pixel  resolution)
inlineexplicit

Definition at line 26 of file Bitmap.h.

Member Function Documentation

◆ clone()

template<typename Type >
Bitmap Bitmap< Type >::clone ( ) const
inline

Definition at line 31 of file Bitmap.h.

◆ data() [1/2]

template<typename Type >
Type* Bitmap< Type >::data ( )
inline

Definition at line 64 of file Bitmap.h.

◆ data() [2/2]

template<typename Type >
const Type* Bitmap< Type >::data ( ) const
inline

Definition at line 68 of file Bitmap.h.

◆ empty()

template<typename Type >
bool Bitmap< Type >::empty ( ) const
inline

Definition at line 76 of file Bitmap.h.

◆ fill()

template<typename Type >
void Bitmap< Type >::fill ( const Type &  value)
inline

Definition at line 44 of file Bitmap.h.

◆ operator()() [1/2]

template<typename Type >
Type& Bitmap< Type >::operator() ( const int  x,
const int  y 
)
inline

Definition at line 56 of file Bitmap.h.

◆ operator()() [2/2]

template<typename Type >
const Type& Bitmap< Type >::operator() ( const int  x,
const int  y 
) const
inline

Definition at line 60 of file Bitmap.h.

◆ operator[]() [1/2]

template<typename Type >
Type& Bitmap< Type >::operator[] ( const Pixel  p)
inline

Definition at line 48 of file Bitmap.h.

◆ operator[]() [2/2]

template<typename Type >
const Type& Bitmap< Type >::operator[] ( const Pixel  p) const
inline

Definition at line 52 of file Bitmap.h.

◆ resize()

template<typename Type >
void Bitmap< Type >::resize ( const Pixel  newResolution,
const Type &  value 
)
inline

Definition at line 38 of file Bitmap.h.

◆ size()

template<typename Type >
Pixel Bitmap< Type >::size ( ) const
inline

Definition at line 72 of file Bitmap.h.


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