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

IAxis: sort member fcts; rm triv comments

parent 27a00c30
No related branches found
No related tags found
1 merge request!53copy edit in axis and converter context
......@@ -19,34 +19,21 @@
#include "Base/Axis/Bin.h"
#include <vector>
//! Interface for one-dimensional axes.
//! Abstract base class for one-dimensional axes.
//! @ingroup tools_internal
class IAxis {
public:
//! constructors
IAxis(const std::string& name) : m_name(name) {}
//! clone function
virtual IAxis* clone() const = 0;
//! destructor
virtual ~IAxis() {}
//! retrieve the number of bins
virtual size_t size() const = 0;
//! retrieve the label of the axis
std::string getName() const { return m_name; }
virtual IAxis* clone() const = 0;
//! Sets the axis label
void setName(std::string name) { m_name = name; }
//! indexed accessor retrieves a sample
virtual double operator[](size_t index) const = 0;
//! retrieve a 1d bin for the given index
virtual Bin1D bin(size_t index) const = 0;
//! Returns the number of bins
virtual size_t size() const = 0;
//! Returns value of first point of axis
virtual double lowerBound() const = 0;
......@@ -60,6 +47,15 @@ public:
//! Returns midpoint of axis
double center() const;
//! Returns the label of the axis
std::string getName() const { return m_name; }
//! indexed accessor retrieves a sample
virtual double operator[](size_t index) const = 0;
//! retrieve a 1d bin for the given index
virtual Bin1D bin(size_t index) const = 0;
virtual double binCenter(size_t index) const = 0;
//! find bin index which is best match for given value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment