Skip to content
Snippets Groups Projects
Commit e5e39d3a authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

default implementation ISimulation::nOutChannels

parent 84de185a
No related branches found
No related tags found
1 merge request!1281unified m_cache for ISimulation
......@@ -122,7 +122,7 @@ private:
virtual size_t numberOfElements() const = 0;
//! Returns the number of output channels to be computed. Determines size of m_cache.
virtual size_t nOutChannels() const = 0;
virtual size_t nOutChannels() const { return numberOfElements(); }
//! Returns simulation result, based on intensity held in elements vector.
virtual SimulationResult packResult() = 0;
......
......@@ -89,11 +89,6 @@ private:
size_t numberOfElements() const override;
size_t nOutChannels() const override
{
return numberOfElements();
}
SimulationResult packResult() override;
//! Checks the distribution validity for simulation.
......
......@@ -94,11 +94,6 @@ private:
//! Returns the number of elements this simulation needs to calculate
size_t numberOfElements() const override;
size_t nOutChannels() const override
{
return numberOfElements();
}
SimulationResult packResult() override;
//... Local function:
......
......@@ -64,11 +64,6 @@ private:
//! Returns the number of elements this simulation needs to calculate
size_t numberOfElements() const override;
size_t nOutChannels() const override
{
return numberOfElements();
}
SimulationResult packResult() override;
//! Checks the distribution validity for simulation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment