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

set m_frame

parent 985f3d6a
No related branches found
No related tags found
1 merge request!931start cleanup of IHistogram internals
......@@ -22,26 +22,31 @@
#include "Device/Histo/IOFactory.h"
#include <memory>
IHistogram::IHistogram(const IHistogram& other)
{
m_data.reset(other.m_data->clone());
}
IHistogram::IHistogram(const IAxis& axis_x)
: m_data(new Powerfield<CumulativeValue>(axis_x))
: m_frame(new Frame({axis_x.clone()}))
, m_data(new Powerfield<CumulativeValue>(axis_x))
{
}
IHistogram::IHistogram(const IAxis& axis_x, const IAxis& axis_y)
: m_data(new Powerfield<CumulativeValue>(axis_x, axis_y))
: m_frame(new Frame({axis_x.clone(), axis_y.clone()}))
, m_data(new Powerfield<CumulativeValue>(axis_x, axis_y))
{
}
IHistogram::IHistogram(Powerfield<CumulativeValue>* data)
: m_data(data)
: m_frame(new Frame(data->cloned_axes()))
, m_data(data)
{
}
IHistogram::IHistogram(const IHistogram& other)
{
m_data.reset(other.m_data->clone());
}
size_t IHistogram::getTotalNumberOfBins() const
{
return m_data->allocatedSize();
......
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