From 182c0585a5038b74cfa2ecac06ddef3ab2bee3e9 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Wed, 12 Feb 2020 09:19:36 -0700 Subject: [PATCH] StaState::copyUnits --- search/StaState.cc | 7 +++++++ search/StaState.hh | 1 + 2 files changed, 8 insertions(+) diff --git a/search/StaState.cc b/search/StaState.cc index 9b4af6f9..3e8a32e3 100644 --- a/search/StaState.cc +++ b/search/StaState.cc @@ -16,6 +16,7 @@ #include #include "Machine.hh" +#include "Units.hh" #include "Network.hh" #include "DispatchQueue.hh" #include "StaState.hh" @@ -93,6 +94,12 @@ StaState::copyState(const StaState *sta) sigma_factor_ = sta->sigma_factor_; } +void +StaState::copyUnits(const Units *units) +{ + *units_ = *units; +} + NetworkEdit * StaState::networkEdit() { diff --git a/search/StaState.hh b/search/StaState.hh index 50fdef99..c3201f91 100644 --- a/search/StaState.hh +++ b/search/StaState.hh @@ -61,6 +61,7 @@ public: void setDebug(Debug *debug); Units *units() { return units_; } Units *units() const { return units_; } + void copyUnits(const Units *units); Network *network() { return network_; } Network *network() const { return network_; } NetworkEdit *networkEdit();