refactor: Use dynamic lookup with pure virtual methods

This makes it clearer what an IInterpolant and Interpolator must
implemented.
But it should be checked if using virtual here is okay performance-wise.
This commit is contained in:
Lars Toenning
2024-01-09 22:59:23 +01:00
parent be2c756c8c
commit cb7e6c43e2
7 changed files with 77 additions and 97 deletions

View File

@@ -100,7 +100,7 @@ namespace BlackMisc::Simulation
}
}
CInterpolatorLinear::CInterpolant CInterpolatorLinear::getInterpolant(SituationLog &log)
const IInterpolant &CInterpolatorLinear::getInterpolant(SituationLog &log)
{
// set default situations
CAircraftSituation startSituation = m_interpolant.getStartSituation();