BWAPI
Classes | Defines | Functions
SPAR/AIModule/BWTA/vendors/CGAL/CGAL/Tools/Log.h File Reference
#include <CGAL/basic.h>
#include <CGAL/Tools/utility_macros.h>
#include <iostream>
#include <fstream>
#include <ios>
Include dependency graph for Log.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define CGAL_assert_equal (   a,
 
)    do {if (a != b) { CGAL_ERROR("" #a " = " << a); CGAL_ERROR("" #b " = " << b); CGAL_assertion(a ==b);} } while (0)
#define CGAL_check_bounds (   a,
  b,
 
)    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 
)
Value:
if (CGAL::Log::is_output(level))\
    { CGAL::Log::stream(level) << expr << std::flush;};
#define CGAL_LOG_WRITE (   level,
  expr 
)
Value:
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);

Function Documentation

template<class T >
int CGAL_assertion_strip_unsigned ( const T &  t) [inline]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines