Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SubEnvironment.cpp
Go to the documentation of this file.
1#include <memory>
2
4
7
8namespace storm {
9
10template<typename EnvironmentType>
12 // Intentionally left empty
15template<typename EnvironmentType>
16SubEnvironment<EnvironmentType>::SubEnvironment(SubEnvironment const& other) : subEnv(other.subEnv ? new EnvironmentType(*other.subEnv) : nullptr) {
17 // Intentionally left empty
18}
19
20template<typename EnvironmentType>
22 if (other.subEnv) {
23 subEnv = std::make_unique<EnvironmentType>(*other.subEnv);
24 } else {
25 subEnv.reset();
26 }
27 return *this;
28}
29
30template<typename EnvironmentType>
31EnvironmentType const& SubEnvironment<EnvironmentType>::get() const {
32 assertInitialized();
33 return *subEnv;
34}
35
36template<typename EnvironmentType>
38 assertInitialized();
39 return *subEnv;
40}
41
42template<typename EnvironmentType>
44 if (!subEnv) {
45 subEnv = std::make_unique<EnvironmentType>();
46 }
47}
48
49template class SubEnvironment<InternalEnvironment>;
50
51template class SubEnvironment<MultiObjectiveModelCheckerEnvironment>;
52template class SubEnvironment<ModelCheckerEnvironment>;
53
54template class SubEnvironment<SolverEnvironment>;
55template class SubEnvironment<EigenSolverEnvironment>;
56template class SubEnvironment<GmmxxSolverEnvironment>;
57template class SubEnvironment<NativeSolverEnvironment>;
58template class SubEnvironment<LongRunAverageSolverEnvironment>;
59template class SubEnvironment<TimeBoundedSolverEnvironment>;
60template class SubEnvironment<MinMaxSolverEnvironment>;
61template class SubEnvironment<MinMaxLpSolverEnvironment>;
62template class SubEnvironment<MultiplierEnvironment>;
63template class SubEnvironment<OviSolverEnvironment>;
64template class SubEnvironment<GameSolverEnvironment>;
65template class SubEnvironment<TopologicalSolverEnvironment>;
66
67} // namespace storm
SubEnvironment< EnvironmentType > & operator=(SubEnvironment const &other)
EnvironmentType const & get() const
LabParser.cpp.
Definition cli.cpp:18