This commit adds libiir++, a C++ wrapper library which provides a true object-oriented interface. The library has two primary objects, Coeff (coefficient set) and Filter (filter instance) which are implemented internally using the C objects. The C++ implementation does produce additional copies of various bits of information at setup time in order to better support querying the structure of the filter at runtime. This is intended to be useful for a future Python extension that will provide a filter experimentation lab.
21 lines
495 B
C++
21 lines
495 B
C++
/* libiir/src/libiir++/000_TopSource.cc
|
|
*
|
|
* Copyright: ©2014, Laurence Withers.
|
|
* Author: Laurence Withers <l@lwithers.me.uk>
|
|
* License: GPLv3
|
|
*/
|
|
|
|
#include "iir++.h"
|
|
#include "iir.h"
|
|
|
|
// iir.h includes <complex.h>, which #defines complex to _Complex. That's fine
|
|
// for the C header above, but will mess with our code definitions below.
|
|
#undef complex
|
|
|
|
// Below are all the includes used throughout the library.
|
|
|
|
namespace IIR {
|
|
|
|
/* options for text editors
|
|
vim: expandtab:ts=4:sw=4
|
|
*/
|