[Reactor] Make all reactor-related objects noncopyable

This commit is contained in:
Ray Speth 2017-08-15 18:12:16 -04:00
parent 4934079d69
commit 279c5c8556
5 changed files with 10 additions and 0 deletions

View file

@ -32,6 +32,8 @@ public:
m_in(0), m_out(0) {}
virtual ~FlowDevice() {}
FlowDevice(const FlowDevice&) = delete;
FlowDevice& operator=(const FlowDevice&) = delete;
//! Return an integer indicating the type of flow device
int type() {

View file

@ -46,6 +46,8 @@ class ReactorBase
public:
explicit ReactorBase(const std::string& name = "(none)");
virtual ~ReactorBase() {}
ReactorBase(const ReactorBase&) = delete;
ReactorBase& operator=(const ReactorBase&) = delete;
//! Return a constant indicating the type of this Reactor
virtual int type() const {

View file

@ -26,6 +26,7 @@ public:
ReactorNet();
virtual ~ReactorNet() {};
ReactorNet(const ReactorNet&) = delete;
ReactorNet& operator=(const ReactorNet&) = delete;
//! @name Methods to set up a simulation.
//@{

View file

@ -18,6 +18,9 @@ class ReactorSurface
{
public:
ReactorSurface();
virtual ~ReactorSurface() {}
ReactorSurface(const ReactorSurface&) = delete;
ReactorSurface& operator=(const ReactorSurface&) = delete;
//! Returns the surface area [m^2]
double area() const;

View file

@ -28,6 +28,8 @@ public:
Wall();
virtual ~Wall() {}
Wall(const Wall&) = delete;
Wall& operator=(const Wall&) = delete;
//! Rate of volume change (m^3/s) for the adjacent reactors.
/*!