mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#396) Using const ref parameters for curve data
This commit is contained in:
@@ -82,7 +82,7 @@ caf::PdmFieldHandle* RimWellLogPlotCurve::objectToggleField()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimWellLogPlotCurve::plot(std::vector<double> depthValues, std::vector<double> values)
|
void RimWellLogPlotCurve::plot(const std::vector<double>& depthValues, const std::vector<double>& values)
|
||||||
{
|
{
|
||||||
CVF_ASSERT(m_plot);
|
CVF_ASSERT(m_plot);
|
||||||
|
|
||||||
@@ -95,7 +95,6 @@ void RimWellLogPlotCurve::plot(std::vector<double> depthValues, std::vector<doub
|
|||||||
m_plot->replot();
|
m_plot->replot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public:
|
|||||||
virtual ~RimWellLogPlotCurve();
|
virtual ~RimWellLogPlotCurve();
|
||||||
|
|
||||||
void setPlot(RiuWellLogTracePlot* plot);
|
void setPlot(RiuWellLogTracePlot* plot);
|
||||||
void plot(std::vector<double> m_depthValues, std::vector<double> m_values);
|
void plot(const std::vector<double>& m_depthValues, const std::vector<double>& m_values);
|
||||||
|
|
||||||
size_t pointCount() const;
|
size_t pointCount() const;
|
||||||
const double* depthValues() const;
|
const double* depthValues() const;
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ caf::PdmFieldHandle* RimWellLogPlotTrace::objectToggleField()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimWellLogPlotTrace::addCurve(std::vector<double>& depthValues, std::vector<double>& values)
|
void RimWellLogPlotTrace::addCurve(const std::vector<double>& depthValues, const std::vector<double>& values)
|
||||||
{
|
{
|
||||||
CVF_ASSERT(m_viewer);
|
CVF_ASSERT(m_viewer);
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ public:
|
|||||||
virtual ~RimWellLogPlotTrace();
|
virtual ~RimWellLogPlotTrace();
|
||||||
|
|
||||||
void setViewer(RiuWellLogTracePlot* viewer);
|
void setViewer(RiuWellLogTracePlot* viewer);
|
||||||
void addCurve(std::vector<double>& depthValues, std::vector<double>& values);
|
void addCurve(const std::vector<double>& depthValues, const std::vector<double>& values);
|
||||||
|
|
||||||
RiuWellLogTracePlot* viewer();
|
RiuWellLogTracePlot* viewer();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user