Mantid
Loading...
Searching...
No Matches
Triple.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 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#include "MantidGeometry/DllConfig.h"
9
10namespace Mantid {
22template <typename T> class MANTID_GEOMETRY_DLL Triple {
23public:
27
28 Triple();
29 Triple(const Triple<T> &);
30 Triple(const T &, const T &, const T &);
31 Triple<T> &operator=(const Triple<T> &);
33
34 T operator[](const int A) const;
35 T &operator[](const int A);
36 bool operator<(const Triple<T> &) const;
37 bool operator>(const Triple<T> &) const;
38 bool operator==(const Triple<T> &) const;
39 bool operator!=(const Triple<T> &) const;
40};
41
53template <typename F, typename S, typename T> class MANTID_GEOMETRY_DLL DTriple {
54public:
58
59 DTriple();
61 DTriple(const F &, const S &, const T &);
62 DTriple<F, S, T> &operator=(const DTriple<F, S, T> &);
64
65 bool operator<(const DTriple<F, S, T> &) const;
66 bool operator>(const DTriple<F, S, T> &) const;
67 bool operator==(const DTriple<F, S, T> &) const;
68 bool operator!=(const DTriple<F, S, T> &) const;
69};
70} // NAMESPACE Mantid
Triple of three different things.
Definition: Triple.h:53
~DTriple()
Standard Destructor.
S second
Second item.
Definition: Triple.h:56
T third
Third item.
Definition: Triple.h:57
F first
First item.
Definition: Triple.h:55
Triple of three identical types.
Definition: Triple.h:22
T second
Second item.
Definition: Triple.h:25
T third
Third item.
Definition: Triple.h:26
T first
First item.
Definition: Triple.h:24
~Triple()
Standard Destructor.
Helper class which provides the Collimation Length for SANS instruments.
constexpr bool operator==(const wide_integer< Bits, Signed > &lhs, const wide_integer< Bits2, Signed2 > &rhs)
constexpr bool operator!=(const wide_integer< Bits, Signed > &lhs, const wide_integer< Bits2, Signed2 > &rhs)
constexpr bool operator>(const wide_integer< Bits, Signed > &lhs, const wide_integer< Bits2, Signed2 > &rhs)
constexpr bool operator<(const wide_integer< Bits, Signed > &lhs, const wide_integer< Bits2, Signed2 > &rhs)