Mercurial > hg > svcore
diff transform/FeatureExtractionModelTransformer.h @ 441:288f45533041
* Add region model and layer; improve assignment of model types to
feature extraction transforms with duration
author | Chris Cannam |
---|---|
date | Thu, 18 Sep 2008 16:08:14 +0000 |
parents | 370aa9714ef5 |
children | a70dcfed59c1 |
line wrap: on
line diff
--- a/transform/FeatureExtractionModelTransformer.h Thu Sep 18 12:33:30 2008 +0000 +++ b/transform/FeatureExtractionModelTransformer.h Thu Sep 18 16:08:14 2008 +0000 @@ -51,7 +51,13 @@ float **buffer); // just casts + DenseTimeValueModel *getConformingInput(); + + template <typename ModelClass> bool isOutput() { + return dynamic_cast<ModelClass *>(m_output) != 0; + } + template <typename ModelClass> ModelClass *getConformingOutput() { ModelClass *mc = dynamic_cast<ModelClass *>(m_output); if (!mc) {