#include <Window.h>

Public Member Functions

 Window (WindowType type, int size)
 Construct a windower of the given type and size. More...
 
 Window (const Window &w)
 
Windowoperator= (const Window &w)
 
virtual ~Window ()
 
void cut (T *const BQ_R__ block) const
 
void cut (const T *const BQ_R__ src, T *const BQ_R__ dst) const
 
getArea ()
 
getValue (int i)
 
WindowType getType () const
 
int getSize () const
 

Static Public Member Functions

static std::string getNameForType (WindowType type)
 
static WindowType getTypeForName (std::string name)
 

Protected Member Functions

void encache ()
 
void cosinewin (T *, double, double, double, double)
 

Protected Attributes

WindowType m_type
 
int m_size
 
T *BQ_R__ m_cache
 
m_area
 

Detailed Description

template<typename T>
class Window< T >

Definition at line 43 of file Window.h.

Constructor & Destructor Documentation

template<typename T>
Window< T >::Window ( WindowType  type,
int  size 
)
inline

Construct a windower of the given type and size.

Note that the cosine windows are periodic by design, rather than symmetrical. (A window of size N is equivalent to a symmetrical window of size N+1 with the final element missing.)

Definition at line 53 of file Window.h.

template<typename T>
Window< T >::Window ( const Window< T > &  w)
inline

Definition at line 56 of file Window.h.

template<typename T>
virtual Window< T >::~Window ( )
inlinevirtual

Definition at line 66 of file Window.h.

Member Function Documentation

template<typename T>
Window& Window< T >::operator= ( const Window< T > &  w)
inline

Definition at line 59 of file Window.h.

template<typename T>
void Window< T >::cut ( T *const BQ_R__  block) const
inline

Definition at line 70 of file Window.h.

Referenced by FFTModel::getFFTColumn().

template<typename T>
void Window< T >::cut ( const T *const BQ_R__  src,
T *const BQ_R__  dst 
) const
inline

Definition at line 74 of file Window.h.

template<typename T>
T Window< T >::getArea ( )
inline

Definition at line 78 of file Window.h.

template<typename T>
T Window< T >::getValue ( int  i)
inline

Definition at line 79 of file Window.h.

template<typename T>
WindowType Window< T >::getType ( ) const
inline

Definition at line 81 of file Window.h.

template<typename T>
int Window< T >::getSize ( ) const
inline

Definition at line 82 of file Window.h.

template<typename T >
std::string Window< T >::getNameForType ( WindowType  type)
static
template<typename T >
WindowType Window< T >::getTypeForName ( std::string  name)
static
template<typename T>
void Window< T >::cosinewin ( T *  mult,
double  a0,
double  a1,
double  a2,
double  a3 
)
protected

Definition at line 176 of file Window.h.

References M_PI, and Window< T >::m_size.

Referenced by Window< T >::encache().

Member Data Documentation

template<typename T>
WindowType Window< T >::m_type
protected
template<typename T>
int Window< T >::m_size
protected
template<typename T>
T* BQ_R__ Window< T >::m_cache
protected
template<typename T>
T Window< T >::m_area
protected

Definition at line 94 of file Window.h.

Referenced by Window< T >::encache(), and Window< float >::getArea().


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