Opm::GenericGuard< Callback > Class Template Reference A simple class which makes sure that a cleanup function is called once the object is destroyed. More...
Detailed Descriptiontemplate<class Callback> class Opm::GenericGuard< Callback > A simple class which makes sure that a cleanup function is called once the object is destroyed. This class is particularly useful in conjunction with lambdas for code that might throw exceptions. Constructor & Destructor Documentation◆ GenericGuard() [1/3]
template<class Callback >
◆ GenericGuard() [2/3]
template<class Callback >
◆ GenericGuard() [3/3]
template<class Callback >
◆ ~GenericGuard()
template<class Callback >
Member Function Documentation◆ enabled()
template<class Callback >
Returns whether the guard object is "on duty" or not. ◆ setEnabled()
template<class Callback >
Specify whether the guard object is "on duty" or not. If the guard object is destroyed while it is "off-duty", the cleanup callback is not called. At construction, guards are on duty. The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||