bdmerror.h File Reference

BDM's exception-throwing macros. More...

#include <sstream>
#include <string>

Go to the source code of this file.

Defines

#define bdm_assert(t, s)
 Throw std::runtime_exception if t is not true.
#define bdm_assert_debug(t, s)   bdm_assert(t, s)
 Throw std::runtime_exception if t is not true and NDEBUG is not defined.
#define bdm_error(s)
 Unconditionally throw std::runtime_error.
#define bdm_warning(s)
 Display a warning message.

Functions

void bdm::bdm_assert_f (const std::string &ass, const std::string &msg, const std::string &file, int line)
 Helper function for the bdm_assert and bdm_assert_debug macros.
void bdm::bdm_error_f (const std::string &msg, const std::string &file, int line)
 Helper function for the bdm_error macro.
void bdm::bdm_warning_f (const std::string &msg, const std::string &file, int line)
 Helper function for the bdm_warning macro.


Detailed Description

BDM's exception-throwing macros.

Author:
Vaclav Barta.
----------------------------------- BDM++ - C++ library for Bayesian Decision Making under Uncertainty

Using IT++ for numerical operations -----------------------------------


Define Documentation

#define bdm_assert ( t,
 ) 

#define bdm_error (  ) 

#define bdm_warning (  ) 

Value:

if (true) { \
                std::ostringstream bdm_out; \
                bdm_out << s; \
                bdm::bdm_warning_f(bdm_out.str(), __FILE__, __LINE__); \
        } else ((void) 0)
Display a warning message.

Referenced by bdm::chmat::add(), bdm::EKFCh::bayes(), bdm::KalmanCh::bayes(), bdm::epdf::condition(), bdm::epdf::marginal(), bdm::chmat::mult_sym(), bdm::chmat::mult_sym_t(), bdm::LQG::ricatti_step(), and bdm::egiw::sample().


Generated on Wed Oct 7 17:34:44 2009 for mixpp by  doxygen 1.5.9