Newer
Older
// ************************************************************************************************

Wuttke, Joachim
committed
//
// BornAgain: simulate and fit reflection and scattering
//

Wuttke, Joachim
committed
//! @brief Defines the standard mix-in ISingleton.

Wuttke, Joachim
committed
//!
//! @homepage http://www.bornagainproject.org

Wuttke, Joachim
committed
//! @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
Van Herck, Walter
committed
public:
static T& 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