AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::slic::ScopedAbortToThrow Class Reference

RAII helper that converts SLIC aborts into a C++ exception. More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/slic/interface/slic.hpp>

Public Member Functions

 ScopedAbortToThrow ()
 
 ScopedAbortToThrow (const ScopedAbortToThrow &)=delete
 
ScopedAbortToThrowoperator= (const ScopedAbortToThrow &)=delete
 
 ~ScopedAbortToThrow ()
 

Detailed Description

RAII helper that converts SLIC aborts into a C++ exception.

The previous abort function and abort-on-error state are restored when this object goes out of scope.

One use of this is for unit tests that want to validate SLIC_ERROR/SLIC_ASSERT behavior without using death tests.

Constructor & Destructor Documentation

◆ ScopedAbortToThrow() [1/2]

axom::slic::ScopedAbortToThrow::ScopedAbortToThrow ( )
inline

◆ ScopedAbortToThrow() [2/2]

axom::slic::ScopedAbortToThrow::ScopedAbortToThrow ( const ScopedAbortToThrow )
delete

◆ ~ScopedAbortToThrow()

axom::slic::ScopedAbortToThrow::~ScopedAbortToThrow ( )
inline

Member Function Documentation

◆ operator=()

ScopedAbortToThrow& axom::slic::ScopedAbortToThrow::operator= ( const ScopedAbortToThrow )
delete

The documentation for this class was generated from the following file: