20namespace MantidWidgets {
29 inline bool empty() const noexcept {
return m_names.empty(); }
30 inline int size() const noexcept {
return static_cast<int>(m_names.size()); }
31 inline const QString &
name(
int index)
const noexcept {
return m_names[
index]; }
39 static constexpr auto FourDigitPrecision = 4;
41 static constexpr auto DecimalFormat =
'f';
43 static constexpr auto UnsetValue = std::numeric_limits<double>::max();
45 static inline const QString MissingValue = QString(
"-");
48 if (abs(
x) == UnsetValue)
50 return QString::number(
x, ImageInfoModel::DecimalFormat, ImageInfoModel::FourDigitPrecision);
53 static inline const QString
defaultFormat(
const int x) {
return QString::number(
x); }
67 const QMap<QString, QString> &extraValues)
const = 0;
#define EXPORT_OPT_MANTIDQT_COMMON
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...