28#ifndef EWOMS_GENERIC_GUARD_HH
29#define EWOMS_GENERIC_GUARD_HH
41template <
class Callback>
52 : callback_(other.callback_)
53 , isEnabled_(other.isEnabled_)
55 other.isEnabled_ =
false;
74 { isEnabled_ = value; }
80 {
return isEnabled_; }
87template <
class Callback>
A simple class which makes sure that a cleanup function is called once the object is destroyed.
Definition genericguard.hh:43
bool enabled() const
Returns whether the guard object is "on duty" or not.
Definition genericguard.hh:79
void setEnabled(bool value)
Specify whether the guard object is "on duty" or not.
Definition genericguard.hh:73
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242