BWAPI
|
#include <CGAL/basic.h>
#include <CGAL/Tools/utility_macros.h>
#include <iostream>
#include <fstream>
#include <ios>
Go to the source code of this file.
Classes | |
class | Log |
struct | Log::State |
struct | Set_log_state |
Defines | |
#define | CGAL_LOG(level, expr) |
#define | CGAL_LOG_WRITE(level, expr) |
#define | CGAL_ERROR(expr) std::cerr << expr << std::endl; |
#define | CGAL_ERROR_WRITE(expr) {std::ostream &LOG_STREAM= std::cerr; expr; std::cerr << std::endl;} |
#define | CGAL_SET_LOG_LEVEL(level) CGAL::Log::set_level(level); |
#define | CGAL_GET_LOG_LEVEL CGAL::Log::level(); |
#define | CGAL_assert_equal(a, b) do {if (a != b) { CGAL_ERROR("" #a " = " << a); CGAL_ERROR("" #b " = " << b); CGAL_assertion(a ==b);} } while (0) |
#define | CGAL_check_bounds(a, b, e) do {if (CGAL::CGAL_assertion_strip_unsigned(a) < CGAL::CGAL_assertion_strip_unsigned(b) || CGAL::CGAL_assertion_strip_unsigned(a) >=CGAL::CGAL_assertion_strip_unsigned(e)){ CGAL_ERROR("" #a " = " << a); CGAL_ERROR("[" #b "..." #e ") = [" << b << "..." << e << ")"); CGAL_error();} } while (0) |
Functions | |
template<class T > | |
int | CGAL_assertion_strip_unsigned (const T &t) |
#define CGAL_assert_equal | ( | a, | |
b | |||
) | do {if (a != b) { CGAL_ERROR("" #a " = " << a); CGAL_ERROR("" #b " = " << b); CGAL_assertion(a ==b);} } while (0) |
#define CGAL_check_bounds | ( | a, | |
b, | |||
e | |||
) | do {if (CGAL::CGAL_assertion_strip_unsigned(a) < CGAL::CGAL_assertion_strip_unsigned(b) || CGAL::CGAL_assertion_strip_unsigned(a) >=CGAL::CGAL_assertion_strip_unsigned(e)){ CGAL_ERROR("" #a " = " << a); CGAL_ERROR("[" #b "..." #e ") = [" << b << "..." << e << ")"); CGAL_error();} } while (0) |
#define CGAL_ERROR | ( | expr | ) | std::cerr << expr << std::endl; |
#define CGAL_ERROR_WRITE | ( | expr | ) | {std::ostream &LOG_STREAM= std::cerr; expr; std::cerr << std::endl;} |
#define CGAL_GET_LOG_LEVEL CGAL::Log::level(); |
#define CGAL_LOG | ( | level, | |
expr | |||
) |
if (CGAL::Log::is_output(level))\
{ CGAL::Log::stream(level) << expr << std::flush;};
#define CGAL_LOG_WRITE | ( | level, | |
expr | |||
) |
if (CGAL::Log::is_output(level))\
{std::ostream &LOG_STREAM= CGAL::Log::stream(level); expr;}
#define CGAL_SET_LOG_LEVEL | ( | level | ) | CGAL::Log::set_level(level); |
int CGAL_assertion_strip_unsigned | ( | const T & | t | ) | [inline] |