bayesexception.hpp

来自「Bayesian Filtering Classe C++source」· HPP 代码 · 共 66 行

HPP
66
字号
#ifndef _BAYES_FILTER_EXCEPTION#define _BAYES_FILTER_EXCEPTION/* * Bayes++ the Bayesian Filtering Library * Copyright (c) 2002 Michael Stevens * See accompanying Bayes++.htm for terms and conditions of use. * * $Id: bayesException.hpp 562 2006-04-05 20:46:23 +0200 (Wed, 05 Apr 2006) mistevens $ *//* * Exception types: Exception heirarchy for Bayesian filtering  */ // Common headers required for declerations#include <exception>/* Filter namespace */namespace Bayesian_filter{class Filter_exception : virtual public std::exception/* *	Base class for all exception produced by filter heirachy */{public:	const char *what() const throw()	{	return error_description;	}protected:	Filter_exception (const char* description)	{	error_description = description;	}private:	const char* error_description;};class Logic_exception : virtual public Filter_exception/* * Logic Exception */{public:	Logic_exception (const char* description) :		Filter_exception (description)	{}};class Numeric_exception : virtual public Filter_exception/* * Numeric Exception */{public:	Numeric_exception (const char* description) :		Filter_exception (description)	{}};}//namespace#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?