svcore  1.9
Window< T > Class Template Reference

#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 *src) const
 
void cut (T *src, T *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 *, T, T, T, T)
 

Protected Attributes

WindowType m_type
 
int m_size
 
T * m_cache
 
m_area
 

Detailed Description

template<typename T>
class Window< T >

Definition at line 40 of file Window.h.

Constructor & Destructor Documentation

◆ Window() [1/2]

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 50 of file Window.h.

◆ Window() [2/2]

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

Definition at line 51 of file Window.h.

◆ ~Window()

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

Definition at line 59 of file Window.h.

Member Function Documentation

◆ operator=()

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

Definition at line 52 of file Window.h.

◆ cut() [1/2]

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

Definition at line 61 of file Window.h.

Referenced by Window< fftsample >::cut(), and FFTDataServer::fillColumn().

◆ cut() [2/2]

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

Definition at line 62 of file Window.h.

◆ getArea()

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

Definition at line 66 of file Window.h.

◆ getValue()

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

Definition at line 67 of file Window.h.

◆ getType()

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

Definition at line 69 of file Window.h.

Referenced by FFTDataServer::generateFileBasename(), and FFTDataServer::getWindowType().

◆ getSize()

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

Definition at line 70 of file Window.h.

◆ getNameForType()

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

Definition at line 178 of file Window.h.

◆ getTypeForName()

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

Definition at line 200 of file Window.h.

◆ encache()

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

Definition at line 89 of file Window.h.

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

◆ cosinewin()

template<typename T>
void Window< T >::cosinewin ( T *  mult,
a0,
a1,
a2,
a3 
)
protected

Definition at line 165 of file Window.h.

Member Data Documentation

◆ m_type

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

Definition at line 79 of file Window.h.

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

◆ m_size

template<typename T>
int Window< T >::m_size
protected

◆ m_cache

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

◆ m_area

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

Definition at line 82 of file Window.h.

Referenced by Window< fftsample >::getArea().


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