forked from AmbaPant/mantid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
EValidation.h
31 lines (26 loc) · 1.03 KB
/
EValidation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include "MantidHistogramData/Validation.h"
namespace Mantid {
namespace HistogramData {
class CountStandardDeviations;
class CountVariances;
class FrequencyStandardDeviations;
class FrequencyVariances;
template <class T,
typename std::enable_if<
std::is_same<HistogramE, T>::value ||
std::is_same<CountStandardDeviations, T>::value ||
std::is_same<CountVariances, T>::value ||
std::is_same<FrequencyStandardDeviations, T>::value ||
std::is_same<FrequencyVariances, T>::value>::type * = nullptr>
bool isValid(const T &eData) {
return detail::Validator<HistogramE>::isValid(eData);
}
} // namespace HistogramData
} // namespace Mantid