Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
Loading...
Searching...
No Matches
singleton.hpp
Go to the documentation of this file.
1
//This file is part of Bertini 2.
2
//
3
//bertini2/detail/singleton.hpp is free software: you can redistribute it and/or modify
4
//it under the terms of the GNU General Public License as published by
5
//the Free Software Foundation, either version 3 of the License, or
6
//(at your option) any later version.
7
//
8
//bertini2/detail/singleton.hpp is distributed in the hope that it will be useful,
9
//but WITHOUT ANY WARRANTY; without even the implied warranty of
10
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
//GNU General Public License for more details.
12
//
13
//You should have received a copy of the GNU General Public License
14
//along with bertini2/detail/singleton.hpp. If not, see <http://www.gnu.org/licenses/>.
15
//
16
// Copyright(C) 2021 by Bertini2 Development Team
17
//
18
// See <http://www.gnu.org/licenses/> for a copy of the license,
19
// as well as COPYING. Bertini2 is provided with permitted
20
// additional terms in the b2/licenses/ directory.
21
22
28
29
30
#pragma once
31
32
namespace
bertini{
33
34
namespace
detail{
35
36
43
struct
Singleton {
44
45
46
virtual
~Singleton() =
default
;
47
private
:
48
// mark both the default and copy constructor as private
49
Singleton(){}
50
Singleton(Singleton
const
&){}
51
52
};
53
54
55
}
// namespace detail
56
}
// namespace bertini
57
58
59
60
61
62
include
bertini2
detail
singleton.hpp
Generated on Wed May 7 2025 20:36:46 for Bertini 2 - C++ Core by
1.13.2