flatmax@632: flatmax@593: // Author Matt Flax flatmax@592: // flatmax@592: // This C++ file is part of an implementation of Lyon's cochlear model: flatmax@592: // "Cascade of Asymmetric Resonators with Fast-Acting Compression" flatmax@592: // to supplement Lyon's upcoming book "Human and Machine Hearing" flatmax@592: // flatmax@592: // Licensed under the Apache License, Version 2.0 (the "License"); flatmax@592: // you may not use this file except in compliance with the License. flatmax@592: // You may obtain a copy of the License at flatmax@592: // flatmax@592: // http://www.apache.org/licenses/LICENSE-2.0 flatmax@592: // flatmax@592: // Unless required by applicable law or agreed to in writing, software flatmax@592: // distributed under the License is distributed on an "AS IS" BASIS, flatmax@592: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. flatmax@592: // See the License for the specific language governing permissions and flatmax@592: // limitations under the License. flatmax@592: #ifndef EARCOMPONENT_H_ flatmax@592: #define EARCOMPONENT_H_ flatmax@592: flatmax@592: #include "CARCoeff.H" // includes are for template definitions in the .C file. flatmax@592: #include "CARParam.H" // handy to include here to avoid double linking when only in the EarComponent.C file flatmax@592: #include "CARState.H" flatmax@592: #include "AGCCoeff.H" flatmax@592: #include "AGCParam.H" flatmax@592: #include "AGCState.H" flatmax@592: #include "IHCCoeff.H" flatmax@592: #include "IHCParam.H" flatmax@592: #include "IHCState.H" flatmax@592: flatmax@593: #include "CARFACCommon.H" flatmax@593: flatmax@592: /** flatmax@592: \author {Matt Flax } flatmax@592: \date 2013.02.08 flatmax@592: flatmax@592: This class is inherited by the CAR, AGC and IHC classes. flatmax@592: This class groups Parameters, Coefficient and State classes. flatmax@592: */ flatmax@592: template flatmax@592: class EarComponent { flatmax@592: protected: flatmax@592: COEFFTYPE coeff; flatmax@592: PARAMTYPE param; flatmax@592: STATETYPE state; flatmax@592: public: flatmax@593: EarComponent() {} flatmax@592: virtual ~EarComponent(){} flatmax@592: }; flatmax@592: flatmax@592: #endif // EARCOMPONENT_H_