Storm
1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SubEnvironment.cpp
Go to the documentation of this file.
1
#include <memory>
2
3
#include "
storm/environment/Environment.h
"
4
5
#include "
storm/environment/dd/AllDdEnvironments.h
"
6
#include "
storm/environment/modelchecker/AllModelCheckerEnvironments.h
"
7
#include "
storm/environment/solver/AllSolverEnvironments.h
"
8
9
namespace
storm
{
10
11
template
<
typename
EnvironmentType>
12
SubEnvironment<EnvironmentType>::SubEnvironment
() : subEnv(nullptr) {
13
// Intentionally left empty
14
}
15
16
template
<
typename
EnvironmentType>
17
SubEnvironment<EnvironmentType>::SubEnvironment
(
SubEnvironment
const
& other) : subEnv(other.subEnv ? new EnvironmentType(*other.subEnv) : nullptr) {
18
// Intentionally left empty
19
}
20
21
template
<
typename
EnvironmentType>
22
SubEnvironment<EnvironmentType>
&
SubEnvironment<EnvironmentType>::operator=
(
SubEnvironment
const
& other) {
23
if
(other.subEnv) {
24
subEnv = std::make_unique<EnvironmentType>(*other.subEnv);
25
}
else
{
26
subEnv.reset();
27
}
28
return
*
this
;
29
}
30
31
template
<
typename
EnvironmentType>
32
EnvironmentType
const
&
SubEnvironment<EnvironmentType>::get
()
const
{
33
assertInitialized();
34
return
*subEnv;
35
}
36
37
template
<
typename
EnvironmentType>
38
EnvironmentType&
SubEnvironment<EnvironmentType>::get
() {
39
assertInitialized();
40
return
*subEnv;
41
}
42
43
template
<
typename
EnvironmentType>
44
void
SubEnvironment<EnvironmentType>::assertInitialized()
const
{
45
if
(!subEnv) {
46
subEnv = std::make_unique<EnvironmentType>();
47
}
48
}
49
50
template
class
SubEnvironment<InternalEnvironment>
;
51
52
template
class
SubEnvironment<DdEnvironment>
;
53
template
class
SubEnvironment<SylvanDdManagerEnvironment>
;
54
template
class
SubEnvironment<CuddDdManagerEnvironment>
;
55
56
template
class
SubEnvironment<ConditionalModelCheckerEnvironment>
;
57
template
class
SubEnvironment<MultiObjectiveModelCheckerEnvironment>
;
58
template
class
SubEnvironment<ModelCheckerEnvironment>
;
59
60
template
class
SubEnvironment<SolverEnvironment>
;
61
template
class
SubEnvironment<EliminationSolverEnvironment>
;
62
template
class
SubEnvironment<EigenSolverEnvironment>
;
63
template
class
SubEnvironment<GmmxxSolverEnvironment>
;
64
template
class
SubEnvironment<NativeSolverEnvironment>
;
65
template
class
SubEnvironment<LongRunAverageSolverEnvironment>
;
66
template
class
SubEnvironment<TimeBoundedSolverEnvironment>
;
67
template
class
SubEnvironment<MinMaxSolverEnvironment>
;
68
template
class
SubEnvironment<MinMaxLpSolverEnvironment>
;
69
template
class
SubEnvironment<MultiplierEnvironment>
;
70
template
class
SubEnvironment<OviSolverEnvironment>
;
71
template
class
SubEnvironment<GameSolverEnvironment>
;
72
template
class
SubEnvironment<TopologicalSolverEnvironment>
;
73
template
class
SubEnvironment<GurobiSolverEnvironment>
;
74
template
class
SubEnvironment<GlpkSolverEnvironment>
;
75
76
}
// namespace storm
AllDdEnvironments.h
AllModelCheckerEnvironments.h
AllSolverEnvironments.h
Environment.h
storm::SubEnvironment
Definition
SubEnvironment.h:8
storm::SubEnvironment::operator=
SubEnvironment< EnvironmentType > & operator=(SubEnvironment const &other)
Definition
SubEnvironment.cpp:22
storm::SubEnvironment::SubEnvironment
SubEnvironment()
Definition
SubEnvironment.cpp:12
storm::SubEnvironment::get
EnvironmentType const & get() const
Definition
SubEnvironment.cpp:32
storm
Definition
AutomaticSettings.cpp:13
src
storm
environment
SubEnvironment.cpp
Generated by
1.15.0