Skip to content
Snippets Groups Projects
Commit 185b67d2 authored by t.knopff's avatar t.knopff
Browse files

Remove unused ISingleton.h

parent 245e18a0
No related branches found
No related tags found
1 merge request!98Reorg dirs: disentangle Models from mainwindow
Pipeline #38280 passed
// ************************************************************************************************
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file GUI/Models/ISingleton.h
//! @brief Defines the standard mix-in ISingleton.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************************************
#ifndef BORNAGAIN_GUI_MODELS_ISINGLETON_H
#define BORNAGAIN_GUI_MODELS_ISINGLETON_H
//! Base class for singletons.
//! @ingroup tools_internal
template <class T> class ISingleton {
public:
static T& instance()
{
static T m_instance;
return m_instance;
}
ISingleton(const ISingleton&) = delete;
ISingleton& operator=(const ISingleton&) = delete;
ISingleton(ISingleton&&) = delete;
ISingleton& operator=(ISingleton&&) = delete;
protected:
ISingleton() = default;
~ISingleton() = default;
};
#endif // BORNAGAIN_GUI_MODELS_ISINGLETON_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment