BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
comparators.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/model/mvvm/model/comparators.cpp
6 //! @brief Implements class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #include "mvvm/model/comparators.h"
19 #include "mvvm/utils/reallimits.h"
20 #include <QMetaType>
21 
22 using namespace ModelView;
23 
24 bool Comparators::m_is_registered = false;
25 
27 {
28  if (!m_is_registered) {
29  QMetaType::registerComparators<std::string>();
30  QMetaType::registerComparators<std::vector<double>>();
31  QMetaType::registerComparators<ComboProperty>();
32  QMetaType::registerComparators<ExternalProperty>();
33  QMetaType::registerComparators<RealLimits>();
34  m_is_registered = true;
35  }
36 }
37 
39 {
40  return m_is_registered;
41 }
static bool registered()
Definition: comparators.cpp:38
static bool m_is_registered
Definition: comparators.h:30
static void registerComparators()
Definition: comparators.cpp:26
Defines class CLASS?
Defines class CLASS?
Defines class CLASS?
Defines class CLASS?
materialitems.h Collection of materials to populate MaterialModel.
Defines class CLASS?