Mantid
Loading...
Searching...
No Matches
EmptyValues.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
14#include "MantidKernel/DllConfig.h"
15
16#include <limits>
17
18namespace Mantid {
19
24constexpr int EMPTY_INT() noexcept { return std::numeric_limits<int>::max(); }
25
30constexpr long EMPTY_LONG() noexcept { return std::numeric_limits<long>::max(); }
31
36constexpr int64_t EMPTY_INT64() noexcept { return std::numeric_limits<int64_t>::max(); }
37
42constexpr double EMPTY_DBL() noexcept { return std::numeric_limits<double>::max() / 2; }
43
44} // namespace Mantid
Helper class which provides the Collimation Length for SANS instruments.
constexpr int EMPTY_INT() noexcept
Returns what we consider an "empty" integer within a property.
Definition EmptyValues.h:24
constexpr long EMPTY_LONG() noexcept
Returns what we consider an "empty" long within a property.
Definition EmptyValues.h:30
constexpr int64_t EMPTY_INT64() noexcept
Returns what we consider an "empty" int64_t within a property.
Definition EmptyValues.h:36
constexpr double EMPTY_DBL() noexcept
Returns what we consider an "empty" double within a property.
Definition EmptyValues.h:42