Window< T > Class Template Reference

#include <Window.h>

Collaboration diagram for Window< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename T>
class Window< T >

Definition at line 37 of file Window.h.

Public Member Functions

 Window (WindowType type, size_t size)
 Construct a windower of the given type.
 Window (const Window &w)
Windowoperator= (const Window &w)
virtual ~Window ()
void cut (T *src) const
void cut (T *src, T *dst) const
getArea ()
getValue (size_t i)
WindowType getType () const
size_t 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 *, T, T, T, T)

Protected Attributes

WindowType m_type
size_t m_size
T * m_cache
m_area


Constructor & Destructor Documentation

template<typename T>
Window< T >::Window ( WindowType  type,
size_t  size 
) [inline]

Construct a windower of the given type.

Definition at line 43 of file Window.h.

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

Definition at line 44 of file Window.h.

template<typename T>
virtual Window< T >::~Window (  )  [inline, virtual]

Definition at line 52 of file Window.h.


Member Function Documentation

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

Definition at line 45 of file Window.h.

template<typename T>
void Window< T >::cut ( T *  src  )  const [inline]

Definition at line 54 of file Window.h.

Referenced by Window< float >::cut().

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

Definition at line 55 of file Window.h.

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

Definition at line 59 of file Window.h.

template<typename T>
T Window< T >::getValue ( size_t  i  )  [inline]

Definition at line 60 of file Window.h.

Referenced by WindowShapePreview::updateLabels().

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

Definition at line 62 of file Window.h.

template<typename T>
size_t Window< T >::getSize (  )  const [inline]

Definition at line 63 of file Window.h.

template<typename T>
std::string Window< T >::getNameForType ( WindowType  type  )  [static]

Definition at line 171 of file Window.h.

References BartlettWindow, BlackmanHarrisWindow, BlackmanWindow, GaussianWindow, HammingWindow, HanningWindow, NuttallWindow, ParzenWindow, and RectangularWindow.

template<typename T>
WindowType Window< T >::getTypeForName ( std::string  name  )  [static]

Definition at line 193 of file Window.h.

References BartlettWindow, BlackmanHarrisWindow, BlackmanWindow, GaussianWindow, HammingWindow, HanningWindow, NuttallWindow, ParzenWindow, and RectangularWindow.

template<typename T>
void Window< T >::encache (  )  [protected]

Definition at line 82 of file Window.h.

References BartlettWindow, BlackmanHarrisWindow, BlackmanWindow, Window< T >::cosinewin(), GaussianWindow, HammingWindow, HanningWindow, Window< T >::m_area, Window< T >::m_cache, Window< T >::m_size, Window< T >::m_type, NuttallWindow, ParzenWindow, and RectangularWindow.

Referenced by Window< float >::operator=(), and Window< float >::Window().

template<typename T>
void Window< T >::cosinewin ( T *  ,
,
,
,
 
) [protected]

Definition at line 158 of file Window.h.

References Window< T >::m_size.

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


Member Data Documentation

template<typename T>
WindowType Window< T >::m_type [protected]

Definition at line 72 of file Window.h.

Referenced by Window< T >::encache(), Window< float >::getType(), and Window< float >::operator=().

template<typename T>
size_t Window< T >::m_size [protected]

Definition at line 73 of file Window.h.

Referenced by Window< T >::cosinewin(), Window< float >::cut(), Window< T >::encache(), Window< float >::getSize(), and Window< float >::operator=().

template<typename T>
T* Window< T >::m_cache [protected]

Definition at line 74 of file Window.h.

Referenced by Window< float >::cut(), Window< T >::encache(), Window< float >::getValue(), and Window< float >::~Window().

template<typename T>
T Window< T >::m_area [protected]

Definition at line 75 of file Window.h.

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


The documentation for this class was generated from the following file:
Generated on Wed Feb 20 15:45:37 2008 for SonicVisualiser by  doxygen 1.5.1