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#include "MantidKernel/System.h"
16
17#include <limits>
18
19namespace Mantid {
20
25constexpr int EMPTY_INT() noexcept { return std::numeric_limits<int>::max(); }
26
31constexpr long EMPTY_LONG() noexcept { return std::numeric_limits<long>::max(); }
32
37constexpr int64_t EMPTY_INT64() noexcept { return std::numeric_limits<int64_t>::max(); }
38
43constexpr double EMPTY_DBL() noexcept { return std::numeric_limits<double>::max() / 2; }
44
45} // 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:25
constexpr long EMPTY_LONG() noexcept
Returns what we consider an "empty" long within a property.
Definition: EmptyValues.h:31
constexpr int64_t EMPTY_INT64() noexcept
Returns what we consider an "empty" int64_t within a property.
Definition: EmptyValues.h:37
constexpr double EMPTY_DBL() noexcept
Returns what we consider an "empty" double within a property.
Definition: EmptyValues.h:43