#include <CGAL/config.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | Failure_function )(const char *, const char *, const char *, int, const char *) |
Enumerations | |
enum | Failure_behaviour { ABORT, EXIT, EXIT_WITH_SUCCESS, CONTINUE, ABORT, EXIT, EXIT_WITH_SUCCESS, CONTINUE } |
Functions | |
void | assertion_fail (const char *, const char *, int, const char *) |
Default error handler. More... | |
void | precondition_fail (const char *, const char *, int, const char *) |
void | postcondition_fail (const char *, const char *, int, const char *) |
void | warning_fail (const char *, const char *, int, const char *) |
Failure_function | set_error_handler (Failure_function handler) |
Sets the handler for assertion-failures. More... | |
Failure_function | set_warning_handler (Failure_function handler) |
Failure_behaviour | set_error_behaviour (Failure_behaviour eb) |
Controls the behavior when an assertion fails. More... | |
Failure_behaviour | set_warning_behaviour (Failure_behaviour eb) |
#define CGAL_assertion | ( | EX | ) | ((EX)?((void)0): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, 0)) |
Definition at line 87 of file assertions.h.
Referenced by Polyhedron_incremental_builder_3< HDS >::add_vertex(), Polyhedron_incremental_builder_3< HDS >::add_vertex_to_facet(), Polyhedron_incremental_builder_3< HDS >::begin_facet(), Polyhedron_incremental_builder_3< HDS >::begin_surface(), Polyhedron_incremental_builder_3< HDS >::end_facet(), Polyhedron_incremental_builder_3< HDS >::end_surface(), Halfedge_data_structure_decorator< _HDS >::erase_connected_component(), Halfedge_data_structure_decorator< _HDS >::erase_facet(), Random_access_adaptor< Vertex_iterator >::find(), Polyhedron_incremental_builder_3< HDS >::find_facet(), Polyhedron_incremental_builder_3< HDS >::find_vertex(), I_min_circulator_size(), Halfedge_data_structure_decorator< _HDS >::inside_out(), Halfedge_data_structure_decorator< _HDS >::join_facet(), Halfedge_data_structure_decorator< _HDS >::join_loop(), Halfedge_data_structure_decorator< _HDS >::join_vertex(), Polyhedron_incremental_builder_3< HDS >::lookup_halfedge(), Polyhedron_incremental_builder_3< HDS >::lookup_hole(), Halfedge_data_structure_using_vector< V, H, F >::new_edge(), Halfedge_data_structure_using_vector< V, H, F >::new_facet(), Halfedge_data_structure_using_vector< V, H, F >::new_vertex(), Halfedge_data_structure_using_vector< V, H, F >::normalize_border(), Iterator_from_circulator< C, Ref, Ptr >::operator*(), Circulator_from_container< Ctnr >::operator*(), Const_circulator_from_container< Ctnr >::operator*(), Circulator_from_iterator< I, TT, SS, DD >::operator*(), Iterator_from_circulator< C, Ref, Ptr >::operator++(), Circulator_from_container< Ctnr >::operator++(), Const_circulator_from_container< Ctnr >::operator++(), Circulator_from_iterator< I, TT, SS, DD >::operator++(), Iterator_from_circulator< C, Ref, Ptr >::operator+=(), Circulator_from_container< Ctnr >::operator+=(), Const_circulator_from_container< Ctnr >::operator+=(), Circulator_from_iterator< I, TT, SS, DD >::operator+=(), Iterator_from_circulator< C, Ref, Ptr >::operator-(), Circulator_from_container< Ctnr >::operator-(), Const_circulator_from_container< Ctnr >::operator-(), Circulator_from_iterator< I, TT, SS, DD >::operator-(), Iterator_from_circulator< C, Ref, Ptr >::operator--(), Circulator_from_container< Ctnr >::operator--(), Const_circulator_from_container< Ctnr >::operator--(), Circulator_from_iterator< I, TT, SS, DD >::operator--(), Iterator_from_circulator< C, Ref, Ptr >::operator->(), Circulator_from_container< Ctnr >::operator->(), Const_circulator_from_container< Ctnr >::operator->(), Circulator_from_iterator< I, TT, SS, DD >::operator->(), Iterator_from_circulator< C, Ref, Ptr >::operator<(), N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::operator==(), Iterator_from_circulator< C, Ref, Ptr >::operator==(), Circulator_from_container< Ctnr >::operator==(), Const_circulator_from_container< Ctnr >::operator==(), Circulator_from_iterator< I, TT, SS, DD >::operator==(), Polyhedron_incremental_builder_3< HDS >::rollback(), Halfedge_data_structure_decorator< _HDS >::set_facet_in_facet_loop(), Halfedge_data_structure_decorator< _HDS >::set_vertex_in_vertex_loop(), Halfedge_data_structure_decorator< _HDS >::split_loop(), and Polyhedron_incremental_builder_3< HDS >::~Polyhedron_incremental_builder_3().
#define CGAL_assertion_code | ( | CODE | ) | CODE |
Definition at line 91 of file assertions.h.
Referenced by Halfedge_data_structure_decorator< _HDS >::erase_facet(), Halfedge_data_structure_decorator< _HDS >::join_facet(), Halfedge_data_structure_decorator< _HDS >::join_loop(), Halfedge_data_structure_decorator< _HDS >::join_vertex(), Halfedge_data_structure_decorator< _HDS >::set_facet_in_facet_loop(), Halfedge_data_structure_decorator< _HDS >::set_vertex_in_vertex_loop(), and Halfedge_data_structure_decorator< _HDS >::split_loop().
#define CGAL_assertion_msg | ( | EX, | |
MSG | |||
) | ((EX)?((void)0): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, MSG)) |
Definition at line 89 of file assertions.h.
#define CGAL_exactness_assertion | ( | EX | ) | ((void)0) |
Definition at line 97 of file assertions.h.
#define CGAL_exactness_assertion_code | ( | CODE | ) |
Definition at line 99 of file assertions.h.
#define CGAL_exactness_assertion_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 98 of file assertions.h.
#define CGAL_exactness_postcondition | ( | EX | ) | ((void)0) |
Definition at line 217 of file assertions.h.
#define CGAL_exactness_postcondition_code | ( | CODE | ) |
Definition at line 219 of file assertions.h.
#define CGAL_exactness_postcondition_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 218 of file assertions.h.
#define CGAL_exactness_precondition | ( | EX | ) | ((void)0) |
Definition at line 157 of file assertions.h.
#define CGAL_exactness_precondition_code | ( | CODE | ) |
Definition at line 159 of file assertions.h.
#define CGAL_exactness_precondition_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 158 of file assertions.h.
#define CGAL_exactness_warning | ( | EX | ) | ((void)0) |
Definition at line 277 of file assertions.h.
#define CGAL_exactness_warning_code | ( | CODE | ) |
Definition at line 279 of file assertions.h.
#define CGAL_exactness_warning_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 278 of file assertions.h.
#define CGAL_expensive_assertion | ( | EX | ) | ((void)0) |
Definition at line 111 of file assertions.h.
#define CGAL_expensive_assertion_code | ( | CODE | ) |
Definition at line 113 of file assertions.h.
#define CGAL_expensive_assertion_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 112 of file assertions.h.
#define CGAL_expensive_exactness_assertion | ( | EX | ) | ((void)0) |
Definition at line 126 of file assertions.h.
#define CGAL_expensive_exactness_assertion_code | ( | CODE | ) |
Definition at line 128 of file assertions.h.
#define CGAL_expensive_exactness_assertion_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 127 of file assertions.h.
#define CGAL_expensive_exactness_postcondition | ( | EX | ) | ((void)0) |
Definition at line 246 of file assertions.h.
#define CGAL_expensive_exactness_postcondition_code | ( | CODE | ) |
Definition at line 248 of file assertions.h.
#define CGAL_expensive_exactness_postcondition_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 247 of file assertions.h.
#define CGAL_expensive_exactness_precondition | ( | EX | ) | ((void)0) |
Definition at line 186 of file assertions.h.
#define CGAL_expensive_exactness_precondition_code | ( | CODE | ) |
Definition at line 188 of file assertions.h.
#define CGAL_expensive_exactness_precondition_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 187 of file assertions.h.
#define CGAL_expensive_exactness_warning | ( | EX | ) | ((void)0) |
Definition at line 306 of file assertions.h.
#define CGAL_expensive_exactness_warning_code | ( | CODE | ) |
Definition at line 308 of file assertions.h.
#define CGAL_expensive_exactness_warning_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 307 of file assertions.h.
#define CGAL_expensive_postcondition | ( | EX | ) | ((void)0) |
Definition at line 231 of file assertions.h.
#define CGAL_expensive_postcondition_code | ( | CODE | ) |
Definition at line 233 of file assertions.h.
#define CGAL_expensive_postcondition_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 232 of file assertions.h.
#define CGAL_expensive_precondition | ( | EX | ) | ((void)0) |
Definition at line 171 of file assertions.h.
#define CGAL_expensive_precondition_code | ( | CODE | ) |
Definition at line 173 of file assertions.h.
#define CGAL_expensive_precondition_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 172 of file assertions.h.
#define CGAL_expensive_warning | ( | EX | ) | ((void)0) |
Definition at line 291 of file assertions.h.
#define CGAL_expensive_warning_code | ( | CODE | ) |
Definition at line 293 of file assertions.h.
#define CGAL_expensive_warning_msg | ( | EX, | |
MSG | |||
) | ((void)0) |
Definition at line 292 of file assertions.h.
#define CGAL_postcondition | ( | EX | ) | ((EX)?((void)0): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__, 0)) |
Definition at line 207 of file assertions.h.
Referenced by Halfedge_data_structure_decorator< _HDS >::flip_edge(), and non_negative_mod().
#define CGAL_postcondition_code | ( | CODE | ) | CODE |
Definition at line 211 of file assertions.h.
#define CGAL_postcondition_msg | ( | EX, | |
MSG | |||
) | ((EX)?((void)0): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__, MSG)) |
Definition at line 209 of file assertions.h.
#define CGAL_precondition | ( | EX | ) | ((EX)?((void)0): ::CGAL::precondition_fail( # EX , __FILE__, __LINE__, 0)) |
Definition at line 147 of file assertions.h.
Referenced by Halfedge_data_structure_decorator< _HDS >::add_facet_to_border(), Halfedge_data_structure_decorator< _HDS >::erase_facet(), Halfedge_data_structure_decorator< _HDS >::fill_hole(), Halfedge_data_structure_decorator< _HDS >::flip_edge(), Halfedge_data_structure_decorator< _HDS >::join_loop(), Halfedge_data_structure_decorator< _HDS >::make_hole(), non_negative_mod(), Halfedge_data_structure_decorator< _HDS >::set_facet_in_facet_loop(), Halfedge_data_structure_decorator< _HDS >::set_vertex_in_vertex_loop(), and Halfedge_data_structure_decorator< _HDS >::split_loop().
#define CGAL_precondition_code | ( | CODE | ) | CODE |
Definition at line 151 of file assertions.h.
#define CGAL_precondition_msg | ( | EX, | |
MSG | |||
) | ((EX)?((void)0): ::CGAL::precondition_fail( # EX , __FILE__, __LINE__, MSG)) |
Definition at line 149 of file assertions.h.
#define CGAL_warning | ( | EX | ) | ((EX)?((void)0): ::CGAL::warning_fail( # EX , __FILE__, __LINE__, 0)) |
Definition at line 267 of file assertions.h.
#define CGAL_warning_code | ( | CODE | ) | CODE |
Definition at line 271 of file assertions.h.
#define CGAL_warning_msg | ( | EX, | |
MSG | |||
) | ((EX)?((void)0): ::CGAL::warning_fail( # EX , __FILE__, __LINE__, MSG)) |
Definition at line 269 of file assertions.h.
typedef void(* Failure_function)(const char *, const char *, const char *, int, const char *) |
Definition at line 324 of file assertions.h.
enum Failure_behaviour |
Enumerator | |
---|---|
ABORT | |
EXIT | |
EXIT_WITH_SUCCESS | |
CONTINUE | |
ABORT | |
EXIT | |
EXIT_WITH_SUCCESS | |
CONTINUE |
Definition at line 60 of file assertions.h.
void assertion_fail | ( | const char * | , |
const char * | , | ||
int | , | ||
const char * | |||
) |
Default error handler.
Definition at line 71 of file assertion.C.
References _error_behaviour, ABORT, COMMPI_Initialized(), CONTINUE, EXIT, EXIT_WITH_SUCCESS, MPI_COMM_WORLD, and printStackBacktrace().
void postcondition_fail | ( | const char * | , |
const char * | , | ||
int | , | ||
const char * | |||
) |
Definition at line 182 of file assertions.C.
References _error_behaviour, ABORT, COMMPI_Initialized(), CONTINUE, EXIT, EXIT_WITH_SUCCESS, MPI_COMM_WORLD, and printStackBacktrace().
void precondition_fail | ( | const char * | , |
const char * | , | ||
int | , | ||
const char * | |||
) |
Definition at line 162 of file assertions.C.
References _error_behaviour, ABORT, COMMPI_Initialized(), CONTINUE, EXIT, EXIT_WITH_SUCCESS, MPI_COMM_WORLD, and printStackBacktrace().
Failure_behaviour set_error_behaviour | ( | Failure_behaviour | eb | ) |
Controls the behavior when an assertion fails.
Definition at line 93 of file assertion.C.
References _error_behaviour.
Failure_function set_error_handler | ( | Failure_function | handler | ) |
Sets the handler for assertion-failures.
Definition at line 104 of file assertion.C.
References _error_handler.
Failure_behaviour set_warning_behaviour | ( | Failure_behaviour | eb | ) |
Failure_function set_warning_handler | ( | Failure_function | handler | ) |
Definition at line 236 of file assertions.C.
References _warning_handler.
void warning_fail | ( | const char * | , |
const char * | , | ||
int | , | ||
const char * | |||
) |
Definition at line 205 of file assertions.C.
References _warning_behaviour, ABORT, CONTINUE, EXIT, EXIT_WITH_SUCCESS, MPI_COMM_WORLD, and printStackBacktrace().