49 const bool & predicate,
50 const bool store_pred_as_value =
true)
void(FEProblemBase::*)(THREAD_ID) SwapBackFunction
SwapBackFunction is a typedef for a pointer to an FEProblemBase member function taking a THREAD_ID an...
~SwapBackSentinel()
The destructor calls swap back function only if the predicate is true.
static constexpr bool _always_false
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
FEProblemBase & _fe_problem
SwapBackSentinel(FEProblemBase &fe_problem, SwapBackFunction func, THREAD_ID tid)
static constexpr bool _always_true
class infix_ostream_iterator if void
SwapBackSentinel(FEProblemBase &fe_problem, SwapBackFunction func, THREAD_ID tid, const bool &predicate, const bool store_pred_as_value=true)
Constructor taking an FEProblemBase reference, a function to call, and the THREAD_ID argument...
The "SwapBackSentinel" class's destructor guarantees that FEProblemBase::swapBackMaterials{Face,Neighbor}() is called even when an exception is thrown from FEProblemBase::reinitMaterials{Face,Neighbor}.