Newer
Older
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2011 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
Gigg, Martyn Anthony
committed
#ifndef MANTID_KERNEL_EMPTYVALUES_H_
#define MANTID_KERNEL_EMPTYVALUES_H_
Gigg, Martyn Anthony
committed
This file contains functions to define empty values, i.e EMPTY_INT();
Gigg, Martyn Anthony
committed
@author Martyn Gigg, Tessella plc
*/
#include "MantidKernel/DllConfig.h"
Gigg, Martyn Anthony
committed
Gigg, Martyn Anthony
committed
/**
* Returns what we consider an "empty" integer within a property
* @returns An flag value
*/
constexpr int EMPTY_INT() noexcept { return std::numeric_limits<int>::max(); }
/**
* Returns what we consider an "empty" long within a property
* @returns An flag value
*/
constexpr long EMPTY_LONG() noexcept {
return std::numeric_limits<long>::max();
}
/**
* Returns what we consider an "empty" int64_t within a property
* @returns An flag value
*/
constexpr int64_t EMPTY_INT64() noexcept {
return std::numeric_limits<int64_t>::max();
}
Gigg, Martyn Anthony
committed
/**
* Returns what we consider an "empty" double within a property
* @returns An flag value
*/
constexpr double EMPTY_DBL() noexcept {
return std::numeric_limits<double>::max() / 2;
}
Gigg, Martyn Anthony
committed
#endif // MANTID_KERNEL_EMPTYVALUES_H_