Andreas Meyer
fdeedcf8b0
some low level code cleanup. renamed
...
* CGAL_error to CGAL_error_msg
* introduced a macro CGAL_error()
* added some words about CGAL_error to the developers manual
* renamed most of assert(x) into CGAL_assertion(x)
* renamed exit(x) with x != 0 , CGAL_assertion(false) and assert(false) into CGAL_error
* CORE left untouched, OpenNL changed
2007-11-07 16:51:18 +00:00
Sylvain Pion
6bc0e9dfe7
Replace calls to abort() by CGAL_assertion*.
...
In contexts such as cgal-python, it is a bug to call abort (since it kills the interpreter).
Therefore, we should never call abort() from inside CGAL.
2007-11-05 10:02:36 +00:00
Sylvain Pion
c392f5a18f
Use CGAL_HAS_THREADS.
2007-10-18 15:01:10 +00:00
Sylvain Pion
2259365505
Disable optimization sharing the default constructed Lazy object,
...
as it is not thread safe.
2007-10-18 12:22:31 +00:00
Sylvain Pion
d3ed4341f2
Rename AK to Approximate_kernel and EK to Exact_kernel to avoid AK clash (for Algebrai_kernel).
2007-09-06 10:05:53 +00:00
Sylvain Pion
57a2ee284f
Renaming of profiler info for consistency with CGAL naming:
...
- In_circle_2 -> Side_of_oriented_circle_2
- In_sphere_3 -> Side_of_oriented_sphere_3
2007-09-02 21:03:46 +00:00
Sylvain Pion
b976aea1b6
Remove 2 workarounds which are not needed anymore by the latest SunPRO:
...
CGAL_CFG_DEEP_DEPENDENT_TEMPLATE_BUG
CGAL_CFG_DEDUCABLE_CONTEXT_BUG
2007-08-24 12:57:55 +00:00
Andreas Fabri
f09c87dd4a
A random int 0 leads to division by zero
2007-08-23 15:04:28 +00:00
Sylvain Pion
4da7713aa8
Remove obsolete config flag CGAL_CFG_NO_STDC_NAMESPACE and rename
...
its dependant macro CGAL_CLIB_STD to "std".
2007-08-08 15:59:25 +00:00
Sylvain Pion
f2a1b260a4
Remove obsolete config flags
...
CGAL_CFG_OUTOFLINE_TEMPLATE_MEMBER_DEFINITION_BUG and
CGAL_CFG_OUTOFLINE_TEMPLATE_MEMBER_DEFINITION_BUG_2.
2007-08-08 14:50:01 +00:00
Sylvain Pion
a87478c513
Rewrite in terms of less_x and less_y, to avoid .x() and .y() constructions,
...
and problems with unqualified min/max.
2007-08-07 09:48:44 +00:00
Laurent Rineau
8b4fdfc6a4
Remove warnings: "ec" unused.
2007-03-12 12:43:41 +00:00
Sylvain Pion
05840a8f17
Cleanup of white spaces and empty lines also under examples/*/*.h.
2007-03-10 16:45:36 +00:00
Sylvain Pion
847c23a15e
Removing leading and trailing empty lines from all example files.
...
Using the following Perl script:
-----------------------------------------------------
#!/usr/bin/perl
local($/) = undef;
my $text = <>;
$text =~ s/\A\n+//mg;
$text =~ s/\n+\Z/\n/mg;
print "$text";
-----------------------------------------------------
2007-03-10 16:17:17 +00:00
Sylvain Pion
e46d4d9f99
Remove more "// file :" lines forgotten.
2007-03-10 15:11:24 +00:00
Sylvain Pion
6fb5cb906b
Remove trailing white spaces and end of lines.
...
(using : perl -pi.bak -e 's/\s+$/\n/' */examples/*/*.cpp )
2007-03-10 14:59:41 +00:00
Sylvain Pion
47f0b5f4d2
- Move certainly() to Uncertain.h
...
- Add possibly().
2007-03-01 18:29:19 +00:00
Sylvain Pion
521e2d1fe9
Rename filtered_predicate.cpp to Filtered_predicate.cpp to match the class name.
...
dont_submit the lazykernel.cpp example as Lazy_kernel is not documented (and the example crashes).
2007-02-28 16:33:17 +00:00
Sylvain Pion
51f0a96da4
kill unused parameter warning
2007-02-16 13:06:38 +00:00
Sylvain Pion
f850e02dba
Provide an AK typedef (same as FK) for similarity with Lazy_kernel.
2007-02-15 13:54:41 +00:00
Sylvain Pion
854dec0f9b
rename .C to .cpp and remove Makefile, same as generated
2007-01-27 20:53:35 +00:00
Michael Hemmer
adabd22ae4
added missing #include <vector>
2006-12-15 13:39:58 +00:00
Michael Hemmer
ea8cddab2c
added missing include
2006-12-04 22:09:32 +00:00
Sylvain Pion
13e01b0ae1
more formatting for histogram profiler
2006-12-03 17:29:46 +00:00
Sylvain Pion
da1e3cdded
minor change to get profiles for depth=0 as well
2006-12-03 16:35:49 +00:00
Sylvain Pion
579b08b6bf
further parsing for to_interval
2006-12-03 13:57:22 +00:00
Sylvain Pion
6952b2567b
Re-implement depth() by storing the depth in the nodes
...
instead of recomputing it on demand through virtual functions.
The advantage is that it is much faster (no quadratic behavior),
and moreover, pruning used to set the depth to 0, while it is
not doing so anymore (can be an advantage or not, but...).
2006-12-03 01:57:56 +00:00
Sylvain Pion
5f4c068d77
Add constructor from ET to Lazy.
2006-12-03 01:22:07 +00:00
Sylvain Pion
096f1ffb9a
formatting
2006-12-03 01:03:34 +00:00
Sylvain Pion
769017938d
s/Lazy_construct_rep/Lazy_rep/g
...
to get shorter names all over the place.
2006-12-02 23:42:24 +00:00
Sylvain Pion
f05894b01a
Move non-NT-related lazy stuff from Lazy_exact_nt.h to Lazy.h.
...
MAke Lazy_exact_nt<> derive from Lazy<>.
2006-12-02 23:38:12 +00:00
Sylvain Pion
6dd7d78ee8
Add/fix the depth() function to get the DAG depth.
...
Some formatting improvements.
2006-12-02 21:53:17 +00:00
Sylvain Pion
76ee73f8c6
more cleanup rules
2006-12-02 19:30:56 +00:00
Sylvain Pion
71eaaefe0b
update for g++ 4.1
2006-12-01 13:35:53 +00:00
Andreas Fabri
7bb9ec24ae
Regular_triangulation_euclidean_traits_2 needs the Rep_tag
2006-11-13 10:30:29 +00:00
Sylvain Pion
12710813c1
Change copyright owner to be INRIA.
...
The old Filtered_exact was common property, but not the newer stuff
(Filtered_predicate and co).
2006-11-06 17:12:11 +00:00
Andreas Fabri
aea8a55095
As 'using' doesn't work for VC++ we must forward the call for Sphere_3
2006-11-06 14:48:27 +00:00
Sylvain Pion
232264bed8
Variadic templates are cool...
2006-10-24 03:20:03 +00:00
Sylvain Pion
2eb12d7441
- First part of introduction of Return_base_tag workaround for lack
...
of "forwarding constructors".
Quoting some comment in the code:
"
This is a simple tag which is used as additional (first) argument in
some kernel functors, to tell them to return the base (rep) class,
instead of the main type (e.g. Kernel_base::Point_2 instead
of Kernel::Point_2). This is a minor optimization which prevents
useless copies of the "reps".
Those functors are only those used in the constructors of the kernel
types like Point_2, so it's limited.
The real solution will be to use "forwarding constructors", when they
will be available in C++.
In the mean time, this should be a mostly/hopefully internal hack.
"
2006-08-16 14:56:11 +00:00
Sylvain Pion
79c60995c4
Additions for Lazy_curved_kernel.
2006-08-10 08:17:49 +00:00
Sylvain Pion
32a8708ed9
Improve efficiency of the default constructor by using a static variable.
...
(similar to what Lazy_exact_nt does).
This gives a noticeable memory win when pruning DAGs.
2006-08-07 18:12:25 +00:00
Sylvain Pion
c0987488f6
remove blanks at end of line
2006-08-07 18:10:08 +00:00
Sylvain Pion
923cac500a
output formatting improvement
2006-08-07 15:45:23 +00:00
Sylvain Pion
bc3f9717a9
one more formatting improvement
2006-08-07 11:04:44 +00:00
Sylvain Pion
d346699f44
Make Exact_converter and Approx_converter export Source_kernel and
...
Target_kernel, so that they play nicely with Filtered_kernel
composition (Regular_filtered_traits uses this).
2006-08-07 08:55:37 +00:00
Sylvain Pion
5c59f6aedd
more simplifications
2006-08-06 20:12:11 +00:00
Sylvain Pion
c94b2243f0
Improvements and fixes
2006-08-06 17:33:01 +00:00
Sylvain Pion
2d4cd0459f
A script to make the output of Profile_counter readable for Lazy_kernel.
2006-08-06 17:13:39 +00:00
Sylvain Pion
7d7834d185
Use CGAL_Kernel_obj() to iterate over types in Object.
2006-08-05 20:38:32 +00:00
Sylvain Pion
ce84a39773
- Use empty base class optimization to avoid DAG nodes bloat
...
with the EC functor (exact constructor).
- Various formatting issues.
2006-08-05 14:21:01 +00:00