casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros
Assert.h File Reference
#include <casacore/casa/aips.h>
#include <casacore/casa/Exceptions/Error.h>
#include <casacore/casa/Utilities/Assert.tcc>

Go to the source code of this file.

Classes

class  casacore::assert_< t >
 Utility class for Assert macros. More...
 

Namespaces

 casacore
 For temporary backward namespace compatibility, use casa as alias for casacore.
 

Macros

#define AlwaysAssert(expr, exception)
 These marcos are provided for use instead of simply using the constructors of assert_ to allow addition of line numbers and file name in the future. More...
 
#define AlwaysAssertExit(expr)
 
#define DebugAssert(expr, exception)
 
#define DebugAssertExit(expr)
 

Macro Definition Documentation

#define AlwaysAssert (   expr,
  exception 
)

These marcos are provided for use instead of simply using the constructors of assert_ to allow addition of line numbers and file name in the future.

DebugAssert and AlwaysAssert are designed to be used by library elements because they actually raise an exception which can later be later caught. DebugAssertExit and AlwaysAssertExit are intended to be used by the applications writer, because they cause an exit(0).

Definition at line 157 of file Assert.h.

Referenced by casacore::ListIter< casacore::OrderedPair< key, val > >::addRight(), casacore::ConstListIter< casacore::OrderedPair< key, val > >::atEnd(), casacore::ConstListIter< casacore::OrderedPair< key, val > >::atStart(), casacore::MArrayMath_global_functions_MArray_mathematical_operations::boxedArrayMath(), casacore::TableExprIdAggr::cast(), casacore::JsonValue::fillArray(), casa::SIMapperCollection::getFTM(), casa::SIMapperCollection::getFTM2(), casa::SIMapperCollection::getMapper(), casacore::ConstListIter< casacore::OrderedPair< key, val > >::getRight(), casacore::ListIter< casacore::OrderedPair< key, val > >::getRight(), casa::MultiTermFTNew::getWeightImage(), casa::refim::MultiTermFTNew::getWeightImage(), casacore::ConstListIter< casacore::OrderedPair< key, val > >::len(), makeArray(), casacore::ConstListIter< casacore::OrderedPair< key, val > >::operator++(), casacore::MArrayMath_global_functions_MArray_mathematical_operations::partialArrayMath(), casacore::ConstListIter< casacore::OrderedPair< key, val > >::pos(), casacore::Block< casacore::String >::set_size(), casacore::python::stl_variable_capacity_policy::set_value(), casacore::MArrayMath_global_functions_MArray_mathematical_operations::slidingArrayMath(), casacore::ConstListIter< casacore::OrderedPair< key, val > >::step(), casacore::ConstListIter< casacore::OrderedPair< key, val > >::toEnd(), casacore::ConstListIter< casacore::OrderedPair< key, val > >::toStart(), casa::MultiTermFTNew::useWeightImage(), and casa::refim::MultiTermFTNew::useWeightImage().

#define AlwaysAssertExit (   expr)

Definition at line 159 of file Assert.h.

#define DebugAssert (   expr,
  exception 
)
#define DebugAssertExit (   expr)

Definition at line 186 of file Assert.h.