Mantid
Loading...
Searching...
No Matches
Hint.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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 +
9
10Hint::Hint(std::string word, std::string description)
11 : m_word(std::move(word)), m_description(std::move(description)) {}
12
13std::string const &Hint::word() const { return m_word; }
14
15std::string const &Hint::description() const { return m_description; }
16
17bool operator==(Hint const &lhs, Hint const &rhs) {
18 return lhs.word() == rhs.word() && lhs.description() == rhs.description();
19}
20
21bool operator!=(Hint const &lhs, Hint const &rhs) { return !(lhs == rhs); }
22} // namespace MantidQt::MantidWidgets
const std::vector< double > & rhs
std::string m_description
Definition: Hint.h:22
Hint(std::string word, std::string description)
Definition: Hint.cpp:10
std::string const & word() const
Definition: Hint.cpp:13
std::string const & description() const
Definition: Hint.cpp:15
MANTID_GEOMETRY_DLL bool operator==(const Group_const_sptr &lhs, const Group_const_sptr &rhs)
Equality operator for shared pointers.
Definition: Group.cpp:266
MANTID_GEOMETRY_DLL bool operator!=(const Group_const_sptr &lhs, const Group_const_sptr &rhs)
Inequality operator for shared pointers.
Definition: Group.cpp:275
STL namespace.