gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
daFunk::ThrowError Class Reference

#include <daFunk.hpp>

Inheritance diagram for daFunk::ThrowError:
Collaboration diagram for daFunk::ThrowError:

Public Member Functions

 ThrowError (std::string msg)
double value (const std::vector< double > &data, size_t bindID)
- Public Member Functions inherited from daFunk::FunkBase
 FunkBase ()
virtual ~FunkBase ()
template<typename... Args>
Funk set (std::string arg, Funk g, Args... args)
template<typename... Args>
Funk set (std::string arg, double x, Args... args)
template<typename... Args>
Funk set (std::string arg, std::string arg1, Args... args)
template<typename... Args>
Funk set ()
template<typename... Args>
shared_ptr< FunkBoundbind (Args... args)
const std::vector< std::string > & getArgs ()
std::size_t getNArgs ()
bool hasArg (std::string)
bool hasArgs ()
Funk help ()
template<typename... Args>
bool assert_args (Args... args)
virtual void resolve (std::map< std::string, size_t > datamap, size_t &datalen, size_t bindID, std::map< std::string, size_t > &argmap)
Singularities getSingl ()
Funk set_singularity (std::string arg, double pos, double width)
Funk print (std::string arg)
template<typename... Args>
shared_ptr< FunkIntegrate_gsl1dgsl_integration (Args... args)
PlainPtrs1 plain (std::string)
PlainPtrs2 plain (std::string, std::string)
PlainPtrs3 plain (std::string, std::string, std::string)
PlainPtrs4 plain (std::string, std::string, std::string, std::string)
template<typename T >
PlainPtr1 plain (std::string)
template<typename T >
PlainPtr2 plain (std::string, std::string)
template<typename T >
PlainPtr3 plain (std::string, std::string, std::string)
template<typename T >
PlainPtr4 plain (std::string, std::string, std::string, std::string)
Funk set ()

Private Attributes

std::string msg

Additional Inherited Members

- Protected Attributes inherited from daFunk::FunkBase
std::vector< Funkfunctions
ArgsType arguments
std::vector< std::vector< size_t > > indices
size_t datalen
Singularities singularities

Detailed Description

Definition at line 1383 of file daFunk.hpp.

Constructor & Destructor Documentation

◆ ThrowError()

daFunk::ThrowError::ThrowError ( std::string  msg)

Definition at line 1386 of file daFunk.hpp.

1386  : msg(msg)
1387  {
1388  }
std::string msg
Definition: daFunk.hpp:1409

Member Function Documentation

◆ value()

double daFunk::ThrowError::value ( const std::vector< double > &  data,
size_t  bindID 

Implements daFunk::FunkBase.

Definition at line 1389 of file daFunk.hpp.

References LOCAL_INFO, Gambit::piped_errors, Gambit::Piped_exceptions::request(), Gambit::utils_error(), and void.

1390  {
1391  (void)bindID;
1392  (void)data;
1393 #ifdef GAMBIT_DIR
1394  if ( omp_get_level() == 0 ) // Outside of OMP blocks
1395  {
1396  Gambit::utils_error().raise(LOCAL_INFO, "daFunk::ThrowError says: " + msg);
1397  }
1398  else // Inside of OMP blocks
1399  {
1400  Gambit::piped_errors.request(LOCAL_INFO, "daFunk::ThrowError says: " + msg);
1401  }
1402 #else
1403  throw std::invalid_argument("daFunk::ThrowError says: " + msg);
1404 #endif
1405  return 0;
1406  }
Piped_exceptions piped_errors
Global instance of Piped_exceptions class for errors.
EXPORT_SYMBOLS error & utils_error()
Utility errors.
void request(std::string origin, std::string message)
Request an exception.
Definition: exceptions.cpp:547
#define LOCAL_INFO
Definition: local_info.hpp:34
std::string msg
Definition: daFunk.hpp:1409
hb_ModelParameters void
Here is the call graph for this function:

Member Data Documentation

◆ msg

std::string daFunk::ThrowError::msg

Definition at line 1409 of file daFunk.hpp.

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