Storm
1.13.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/modelchecker/AllModelCheckerEnvironments.h
"
6
#include "
storm/environment/solver/AllSolverEnvironments.h
"
7
8
namespace
storm
{
9
10
template
<
typename
EnvironmentType>
11
SubEnvironment<EnvironmentType>::SubEnvironment
() : subEnv(nullptr) {
12
// Intentionally left empty
13
}
14
15
template
<
typename
EnvironmentType>
16
SubEnvironment<EnvironmentType>::SubEnvironment
(
SubEnvironment
const
& other) : subEnv(other.subEnv ? new EnvironmentType(*other.subEnv) : nullptr) {
17
// Intentionally left empty
18
}
19
20
template
<
typename
EnvironmentType>
21
SubEnvironment<EnvironmentType>
&
SubEnvironment<EnvironmentType>::operator=
(
SubEnvironment
const
& other) {
22
if
(other.subEnv) {
23
subEnv = std::make_unique<EnvironmentType>(*other.subEnv);
24
}
else
{
25
subEnv.reset();
26
}
27
return
*
this
;
28
}
29
30
template
<
typename
EnvironmentType>
31
EnvironmentType
const
&
SubEnvironment<EnvironmentType>::get
()
const
{
32
assertInitialized();
33
return
*subEnv;
34
}
35
36
template
<
typename
EnvironmentType>
37
EnvironmentType&
SubEnvironment<EnvironmentType>::get
() {
38
assertInitialized();
39
return
*subEnv;
40
}
41
42
template
<
typename
EnvironmentType>
43
void
SubEnvironment<EnvironmentType>::assertInitialized()
const
{
44
if
(!subEnv) {
45
subEnv = std::make_unique<EnvironmentType>();
46
}
47
}
48
49
template
class
SubEnvironment<InternalEnvironment>
;
50
51
template
class
SubEnvironment<ConditionalModelCheckerEnvironment>
;
52
template
class
SubEnvironment<MultiObjectiveModelCheckerEnvironment>
;
53
template
class
SubEnvironment<ModelCheckerEnvironment>
;
54
55
template
class
SubEnvironment<SolverEnvironment>
;
56
template
class
SubEnvironment<EigenSolverEnvironment>
;
57
template
class
SubEnvironment<GmmxxSolverEnvironment>
;
58
template
class
SubEnvironment<NativeSolverEnvironment>
;
59
template
class
SubEnvironment<LongRunAverageSolverEnvironment>
;
60
template
class
SubEnvironment<TimeBoundedSolverEnvironment>
;
61
template
class
SubEnvironment<MinMaxSolverEnvironment>
;
62
template
class
SubEnvironment<MinMaxLpSolverEnvironment>
;
63
template
class
SubEnvironment<MultiplierEnvironment>
;
64
template
class
SubEnvironment<OviSolverEnvironment>
;
65
template
class
SubEnvironment<GameSolverEnvironment>
;
66
template
class
SubEnvironment<TopologicalSolverEnvironment>
;
67
68
}
// namespace storm
AllModelCheckerEnvironments.h
AllSolverEnvironments.h
Environment.h
storm::SubEnvironment
Definition
SubEnvironment.h:8
storm::SubEnvironment::operator=
SubEnvironment< EnvironmentType > & operator=(SubEnvironment const &other)
Definition
SubEnvironment.cpp:21
storm::SubEnvironment::SubEnvironment
SubEnvironment()
Definition
SubEnvironment.cpp:11
storm::SubEnvironment::get
EnvironmentType const & get() const
Definition
SubEnvironment.cpp:31
storm
Definition
AutomaticSettings.cpp:13
src
storm
environment
SubEnvironment.cpp
Generated by
1.15.0