Mercurial > hg > svcore
comparison base/Window.h @ 822:54829c1e155e tonioni
Merge from the default branch
author | Chris Cannam |
---|---|
date | Fri, 12 Jul 2013 13:10:28 +0100 |
parents | 97741fe16205 |
children | 6a94bb528e9d |
comparison
equal
deleted
inserted
replaced
818:5e9ff92ca05e | 822:54829c1e155e |
---|---|
39 template <typename T> | 39 template <typename T> |
40 class Window | 40 class Window |
41 { | 41 { |
42 public: | 42 public: |
43 /** | 43 /** |
44 * Construct a windower of the given type. | 44 * Construct a windower of the given type and size. |
45 * | |
46 * Note that the cosine windows are periodic by design, rather | |
47 * than symmetrical. (A window of size N is equivalent to a | |
48 * symmetrical window of size N+1 with the final element missing.) | |
45 */ | 49 */ |
46 Window(WindowType type, size_t size) : m_type(type), m_size(size) { encache(); } | 50 Window(WindowType type, size_t size) : m_type(type), m_size(size) { encache(); } |
47 Window(const Window &w) : m_type(w.m_type), m_size(w.m_size) { encache(); } | 51 Window(const Window &w) : m_type(w.m_type), m_size(w.m_size) { encache(); } |
48 Window &operator=(const Window &w) { | 52 Window &operator=(const Window &w) { |
49 if (&w == this) return *this; | 53 if (&w == this) return *this; |