ReFRACtor
Error checking routines

Macros

#define gsl_check(status)   FullPhysics::gsl_check_func(status, __FILE__, __LINE__)
 GSL check. More...
 
#define range_check(V, Min, Max)   FullPhysics::range_check_template(V, Min, Max, __FILE__, __LINE__)
 Range check. More...
 
#define range_max_check(V, Max)   FullPhysics::range_max_check_template(V, Max, __FILE__, __LINE__)
 Range check. More...
 
#define range_min_check(V, Min)   FullPhysics::range_min_check_template(V, Min, __FILE__, __LINE__)
 Range check. More...
 

Functions

 FullPhysics::Exception::Exception (const std::string &W="")
 Default constructor. More...
 
 FullPhysics::Exception::Exception (const Exception &E)
 Copy constructor. More...
 
virtual FullPhysics::Exception::~Exception () throw ()
 Destructor. More...
 
void FullPhysics::gsl_check_func (int status, const char *File, int Line)
 Check for gsl errors. More...
 
void FullPhysics::no_gsl_abort ()
 Turn off gsl errors abort. More...
 
template<class T >
ExceptionFullPhysics::Exception::operator<< (const T &V)
 Write to exception what() string. More...
 
virtual void FullPhysics::Exception::print (std::ostream &Os) const
 Print out description of object. More...
 
template<class T >
void FullPhysics::range_check_template (const T &Val, const T &Min, const T &Max, const char *File, int Line)
 Range check. More...
 
template<class T >
void FullPhysics::range_max_check_template (const T &Val, const T &Max, const char *File, int Line)
 Range check. More...
 
template<class T >
void FullPhysics::range_min_check_template (const T &Val, const T &Min, const char *File, int Line)
 Range check. More...
 
virtual const char * FullPhysics::Exception::what () const throw ()
 Description of what the error is. More...
 

Detailed Description

Macro Definition Documentation

◆ gsl_check

#define gsl_check (   status)    FullPhysics::gsl_check_func(status, __FILE__, __LINE__)

GSL check.

Definition at line 228 of file fp_exception.h.

◆ range_check

#define range_check (   V,
  Min,
  Max 
)    FullPhysics::range_check_template(V, Min, Max, __FILE__, __LINE__)

Range check.

Definition at line 140 of file fp_exception.h.

◆ range_max_check

#define range_max_check (   V,
  Max 
)    FullPhysics::range_max_check_template(V, Max, __FILE__, __LINE__)

Range check.

Definition at line 194 of file fp_exception.h.

◆ range_min_check

#define range_min_check (   V,
  Min 
)    FullPhysics::range_min_check_template(V, Min, __FILE__, __LINE__)

Range check.

Definition at line 167 of file fp_exception.h.

Function Documentation

◆ Exception() [1/2]

FullPhysics::Exception::Exception ( const std::string &  W = "")
inline

Default constructor.

Can give an optional string describing the error.

Definition at line 24 of file fp_exception.h.

◆ Exception() [2/2]

FullPhysics::Exception::Exception ( const Exception E)
inline

Copy constructor.

Definition at line 44 of file fp_exception.h.

◆ ~Exception()

virtual FullPhysics::Exception::~Exception ( )
throw (
)
inlinevirtual

Destructor.

Definition at line 56 of file fp_exception.h.

◆ gsl_check_func()

void FullPhysics::gsl_check_func ( int  status,
const char *  File,
int  Line 
)
inline

Check for gsl errors.

Definition at line 211 of file fp_exception.h.

◆ no_gsl_abort()

void FullPhysics::no_gsl_abort ( )
inline

Turn off gsl errors abort.

Definition at line 201 of file fp_exception.h.

◆ operator<<()

template<class T >
Exception& FullPhysics::Exception::operator<< ( const T &  V)
inline

Write to exception what() string.

Definition at line 62 of file fp_exception.h.

◆ print()

virtual void FullPhysics::Exception::print ( std::ostream &  Os) const
inlinevirtual

Print out description of object.

Definition at line 72 of file fp_exception.h.

◆ range_check_template()

template<class T >
void FullPhysics::range_check_template ( const T &  Val,
const T &  Min,
const T &  Max,
const char *  File,
int  Line 
)
inline

Range check.

Definition at line 117 of file fp_exception.h.

◆ range_max_check_template()

template<class T >
void FullPhysics::range_max_check_template ( const T &  Val,
const T &  Max,
const char *  File,
int  Line 
)
inline

Range check.

Definition at line 174 of file fp_exception.h.

◆ range_min_check_template()

template<class T >
void FullPhysics::range_min_check_template ( const T &  Val,
const T &  Min,
const char *  File,
int  Line 
)
inline

Range check.

Definition at line 147 of file fp_exception.h.

◆ what()

virtual const char* FullPhysics::Exception::what ( ) const
throw (
)
inlinevirtual

Description of what the error is.

Definition at line 88 of file fp_exception.h.


Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:11