Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
185b67d2
Commit
185b67d2
authored
3 years ago
by
t.knopff
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused ISingleton.h
parent
245e18a0
No related branches found
No related tags found
1 merge request
!98
Reorg dirs: disentangle Models from mainwindow
Pipeline
#38280
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/Models/ISingleton.h
+0
-39
0 additions, 39 deletions
GUI/Models/ISingleton.h
with
0 additions
and
39 deletions
GUI/Models/ISingleton.h
deleted
100644 → 0
+
0
−
39
View file @
245e18a0
// ************************************************************************************************
//
// 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment