summaryrefslogtreecommitdiff
path: root/src/cgalfwd.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-01 02:09:06 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-01 02:09:06 (GMT)
commit1633fb0344c92631562c2a802e8deddf2ce4637f (patch)
treee6e71a9d9a524119db9cc430c5f8409c6839aa9a /src/cgalfwd.h
parentc193372d2ff20d32900d72e817e7c9608ae36112 (diff)
Refactoring of CGAL functionality to allow for forward-declaration of CGAL classes in header files, reducing coupling and thus compilation times
Diffstat (limited to 'src/cgalfwd.h')
-rw-r--r--src/cgalfwd.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/cgalfwd.h b/src/cgalfwd.h
new file mode 100644
index 0000000..df9b9e2
--- /dev/null
+++ b/src/cgalfwd.h
@@ -0,0 +1,27 @@
+#ifndef CGALFWD_H_
+#define CGALFWD_H_
+
+#ifdef ENABLE_CGAL
+
+namespace CGAL {
+ class Gmpq;
+ template <class T> class Extended_cartesian;
+ class HDS_items;
+ template <class A, typename Items_, typename Mark_> class Nef_polyhedron_2;
+}
+typedef CGAL::Gmpq NT;
+typedef CGAL::Extended_cartesian<NT> CGAL_Kernel2;
+typedef CGAL::Nef_polyhedron_2<CGAL_Kernel2, CGAL::HDS_items, bool> CGAL_Nef_polyhedron2;
+
+namespace CGAL {
+ template <class T> class Cartesian;
+ template<class T> struct Default_items;
+ class SNC_indexed_items;
+ template <typename Kernel_, typename Items_, typename Mark_> class Nef_polyhedron_3;
+}
+typedef CGAL::Cartesian<NT> CGAL_Kernel3;
+typedef CGAL::Nef_polyhedron_3<CGAL_Kernel3, CGAL::SNC_indexed_items, bool> CGAL_Nef_polyhedron3;
+
+#endif /* ENABLE_CGAL */
+
+#endif
contact: Jan Huwald // Impressum