Browse Source

adding copy constructor

main
TimQu 8 years ago
parent
commit
0b0b5446cc
  1. 5
      src/storm/environment/Environment.cpp
  2. 1
      src/storm/environment/Environment.h
  3. 6
      src/storm/environment/solver/SolverEnvironment.cpp
  4. 1
      src/storm/environment/solver/SolverEnvironment.h

5
src/storm/environment/Environment.cpp

@ -9,6 +9,11 @@ namespace storm {
// Intentionally left empty. // Intentionally left empty.
} }
Environment::Environment(Environment const& other) :
solverEnvironment(new SolverEnvironment(*other.solverEnvironment)) {
// Intentionally left empty.
}
Environment::~Environment() { Environment::~Environment() {
// Intentionally left empty. // Intentionally left empty.
} }

1
src/storm/environment/Environment.h

@ -12,6 +12,7 @@ namespace storm {
public: public:
Environment(); Environment();
Environment(Environment const& other);
virtual ~Environment(); virtual ~Environment();

6
src/storm/environment/solver/SolverEnvironment.cpp

@ -10,6 +10,12 @@ namespace storm {
// nativeSolverEnvironment(std::make_unique<NativeSolverEnvironment>()) { // nativeSolverEnvironment(std::make_unique<NativeSolverEnvironment>()) {
{ } { }
SolverEnvironment::SolverEnvironment(SolverEnvironment const& other) :
minMaxSolverEnvironment(new MinMaxSolverEnvironment(*other.minMaxSolverEnvironment)),
forceSoundness(other.forceSoundness) {
// Intentionally left empty
}
SolverEnvironment::~SolverEnvironment() { SolverEnvironment::~SolverEnvironment() {
// Intentionally left empty // Intentionally left empty
} }

1
src/storm/environment/solver/SolverEnvironment.h

@ -14,6 +14,7 @@ namespace storm {
public: public:
SolverEnvironment(); SolverEnvironment();
SolverEnvironment(SolverEnvironment const& other);
~SolverEnvironment(); ~SolverEnvironment();
// EigenSolverEnvironment& eigen(); // EigenSolverEnvironment& eigen();

|||||||
100:0
Loading…
Cancel
Save