Mercurial > hg > aimc
diff carfac/carfac_output.cc @ 645:3f01a136c537
DISALLOW_COPY_AND_ASSIGN in CARFAC classes and fix a few funny indentations.
author | ronw@google.com |
---|---|
date | Tue, 11 Jun 2013 17:59:08 +0000 |
parents | 8b70f4cf00c7 |
children | e76951e4da20 |
line wrap: on
line diff
--- a/carfac/carfac_output.cc Tue Jun 11 15:04:55 2013 +0000 +++ b/carfac/carfac_output.cc Tue Jun 11 17:59:08 2013 +0000 @@ -25,8 +25,8 @@ using std::vector; CARFACOutput::CARFACOutput(const bool store_nap, const bool store_nap_decim, - const bool store_bm, const bool store_ohc, - const bool store_agc) { + const bool store_bm, const bool store_ohc, + const bool store_agc) { store_nap_ = store_nap; store_nap_decim_ = store_nap_decim; store_bm_ = store_bm; @@ -35,29 +35,29 @@ } -void CARFACOutput::AppendOutput(const vector<Ear>& ears) { +void CARFACOutput::AppendOutput(const vector<Ear*>& ears) { if (store_nap_) { nap_.push_back(vector<ArrayX>()); - for (auto ear : ears) { - nap_.back().push_back(ear.ihc_out()); + for (const auto& ear : ears) { + nap_.back().push_back(ear->ihc_out()); } } if (store_ohc_) { ohc_.push_back(vector<ArrayX>()); - for (auto ear : ears) { - ohc_.back().push_back(ear.za_memory()); + for (const auto& ear : ears) { + ohc_.back().push_back(ear->za_memory()); } } if (store_agc_) { agc_.push_back(vector<ArrayX>()); - for (auto ear : ears) { - agc_.back().push_back(ear.zb_memory()); + for (const auto& ear : ears) { + agc_.back().push_back(ear->zb_memory()); } } if (store_bm_) { bm_.push_back(vector<ArrayX>()); - for (auto ear : ears) { - bm_.back().push_back(ear.zy_memory()); + for (const auto& ear : ears) { + bm_.back().push_back(ear->zy_memory()); } } -} \ No newline at end of file +}