mirror of https://github.com/CGAL/cgal
extra run of the script to remove tabs and trailing whitespaces
This commit is contained in:
parent
34ce87be56
commit
97e46accad
|
|
@ -8,7 +8,7 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
|
||||
//
|
||||
//
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// updated by: Michal Balas <balasmic@post.tau.ac.il>
|
||||
|
||||
#ifndef CGAL_TD_X_TRAPEZOID_H
|
||||
|
|
@ -380,7 +380,7 @@ public:
|
|||
(on_right_bndry ? CGAL_TD_ON_RIGHT_BOUNDARY : 0) |
|
||||
(on_bottom_bndry ? CGAL_TD_ON_BOTTOM_BOUNDARY : 0) |
|
||||
(on_top_bndry ? CGAL_TD_ON_TOP_BOUNDARY : 0) ),
|
||||
lb, lt, rb, rt);
|
||||
lb, lt, rb, rt);
|
||||
m_dag_node = node;
|
||||
}
|
||||
|
||||
|
|
@ -401,8 +401,8 @@ public:
|
|||
*/
|
||||
CGAL_TD_INLINE Self& operator= (const Self& t2)
|
||||
{
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*! Operator==. */
|
||||
|
|
@ -674,7 +674,7 @@ public:
|
|||
bool is_active() const
|
||||
{
|
||||
return rb()!=
|
||||
(Self*)CGAL_TD_DELETE_SIGNATURE;
|
||||
(Self*)CGAL_TD_DELETE_SIGNATURE;
|
||||
}
|
||||
|
||||
/*! Removing this trapezoid (defining it as in-active) */
|
||||
|
|
@ -719,15 +719,15 @@ public:
|
|||
bool on_right_boundary = right.is_on_right_boundary();
|
||||
|
||||
*this = Self (!is_on_left_boundary() ? & left() : 0,
|
||||
!on_right_boundary ? &right.right() : 0,
|
||||
!is_on_bottom_boundary() ? &bottom() : 0,
|
||||
!is_on_top_boundary() ? &top() : 0,
|
||||
!on_right_boundary ? &right.right() : 0,
|
||||
!is_on_bottom_boundary() ? &bottom() : 0,
|
||||
!is_on_top_boundary() ? &top() : 0,
|
||||
CGAL_TD_TRAPEZOID,
|
||||
is_on_left_boundary(), on_right_boundary,
|
||||
is_on_bottom_boundary(), is_on_top_boundary(),
|
||||
lb(),lt(),
|
||||
right.rb(),
|
||||
right.rt());
|
||||
lb(),lt(),
|
||||
right.rb(),
|
||||
right.rt());
|
||||
|
||||
if (rb())
|
||||
rb()->set_lb(this);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
// $Id$
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
|
||||
//
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// updated by: Michal Balas <balasmic@post.tau.ac.il>
|
||||
|
||||
#ifndef CGAL_TD_ACTIVE_EDGE_H
|
||||
|
|
@ -226,8 +226,8 @@ public:
|
|||
*/
|
||||
CGAL_TD_INLINE Self& operator= (const Self& t2)
|
||||
{
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*! Operator==. */
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
// $Id$
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
|
||||
//
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// updated by: Michal Balas <balasmic@post.tau.ac.il>
|
||||
|
||||
#ifndef CGAL_TD_ACTIVE_TRAPEZOID_H
|
||||
|
|
@ -297,8 +297,8 @@ private:
|
|||
*/
|
||||
inline Self& operator= (const Self& t2)
|
||||
{
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*! Operator==. */
|
||||
|
|
|
|||
|
|
@ -78,14 +78,14 @@ protected:
|
|||
node(const T& e, const Td_dag_handle& left,
|
||||
const Td_dag_handle& right,unsigned long _depth=0) :
|
||||
data(e),leftPtr(left),rightPtr(right),depth_(_depth){}
|
||||
// node(const T& e) : data(e),leftPtr(),rightPtr(){}
|
||||
// node(const T& e, const Td_dag_handle& left,
|
||||
// node(const T& e) : data(e),leftPtr(),rightPtr(){}
|
||||
// node(const T& e, const Td_dag_handle& left,
|
||||
// const Td_dag_handle& right) : data(e),leftPtr(left),rightPtr(right) {}
|
||||
~node(){}
|
||||
bool is_inner_node() const {return !!leftPtr && !!rightPtr;}
|
||||
bool visited() const {return visited_;}
|
||||
protected:
|
||||
T data; // information stored in node
|
||||
T data; // information stored in node
|
||||
Td_dag_handle leftPtr,rightPtr;
|
||||
mutable unsigned long depth_;
|
||||
mutable bool visited_;
|
||||
|
|
@ -154,7 +154,7 @@ public:
|
|||
/* dynamic management ---------*/
|
||||
|
||||
/* description:
|
||||
Shallow copy */
|
||||
Shallow copy */
|
||||
Self& operator=(const Self& b)
|
||||
{
|
||||
Handle::operator=(b);
|
||||
|
|
@ -198,14 +198,14 @@ public:
|
|||
{
|
||||
if (!operator!())
|
||||
{
|
||||
// create dummy Td_dag
|
||||
// create dummy Td_dag
|
||||
T tmp;
|
||||
Self dummy(tmp);
|
||||
// detach right son,redirect to dummy
|
||||
// detach right son,redirect to dummy
|
||||
set_right(dummy);
|
||||
// set right son pointer to 0
|
||||
// set right son pointer to 0
|
||||
ptr()->rightPtr.PTR.p=0;
|
||||
// delete dummy Td_dag
|
||||
// delete dummy Td_dag
|
||||
delete dummy.ptr();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
// $Id$
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
|
||||
//
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// updated by: Michal Balas <balasmic@post.tau.ac.il>
|
||||
|
||||
#ifndef CGAL_TD_INACTIVE_EDGE_H
|
||||
|
|
@ -180,8 +180,8 @@ public:
|
|||
*/
|
||||
inline Self& operator= (const Self& t2)
|
||||
{
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*! Operator==. */
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
// $Id$
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
|
||||
//
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// updated by: Michal Balas <balasmic@post.tau.ac.il>
|
||||
|
||||
#ifndef CGAL_TD_INACTIVE_FICTITIOUS_VERTEX_H
|
||||
|
|
@ -135,7 +135,7 @@ public:
|
|||
|
||||
Data* ptr() const { return (Data*)(PTR.p); }
|
||||
|
||||
Curve_end vtx_to_ce(Vertex_const_handle v) const
|
||||
Curve_end vtx_to_ce(Vertex_const_handle v) const
|
||||
{
|
||||
//the circulator is of incoming halfedges
|
||||
Halfedge_around_vertex_const_circulator he = v->incident_halfedges();
|
||||
|
|
@ -206,8 +206,8 @@ public:
|
|||
*/
|
||||
inline Self& operator= (const Self& t2)
|
||||
{
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*! Operator==. */
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
// $Id$
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
|
||||
//
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// Author(s) : Oren Nechushtan <theoren@math.tau.ac.il>
|
||||
// updated by: Michal Balas <balasmic@post.tau.ac.il>
|
||||
|
||||
#ifndef CGAL_TD_INACTIVE_VERTEX_H
|
||||
|
|
@ -182,8 +182,8 @@ public:
|
|||
*/
|
||||
inline Self& operator= (const Self& t2)
|
||||
{
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
Handle::operator=(t2);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*! Operator==. */
|
||||
|
|
|
|||
|
|
@ -284,14 +284,14 @@ public:
|
|||
os << std::endl;
|
||||
if(! is_lazy()){
|
||||
for(int i = 0; i < level; i++){
|
||||
os << " ";
|
||||
os << " ";
|
||||
}
|
||||
os << "Exact: ";
|
||||
print_at(os, *et);
|
||||
os << std::endl;
|
||||
#ifdef CGAL_LAZY_KERNEL_DEBUG_SHOW_TYPEID
|
||||
for(int i = 0; i < level; i++){
|
||||
os << " ";
|
||||
os << " ";
|
||||
}
|
||||
os << " (type: " << typeid(*et).name() << ")" << std::endl;
|
||||
#endif // CGAL_LAZY_KERNEL_DEBUG_SHOW_TYPEID
|
||||
|
|
@ -927,7 +927,7 @@ struct Ith {
|
|||
typedef std::pair<T2,std::pair<bool,bool> > Pair_type_2;
|
||||
|
||||
if(const Pair_type_1 *p1 = object_cast<Pair_type_1>(&v[i]))
|
||||
return p1->first;
|
||||
return p1->first;
|
||||
else if(const Pair_type_2 *p2 = object_cast<Pair_type_2>(&v[i]))
|
||||
return p2->first;
|
||||
|
||||
|
|
@ -1176,11 +1176,11 @@ public:
|
|||
for (unsigned int i = 0; i < lv.approx().size(); i++) {
|
||||
// FIXME : I'm not sure how this work...
|
||||
#define CGAL_Kernel_obj(X) if (object_cast<typename AK::X>(& (lv.approx()[i]))) { \
|
||||
*it++ = make_object(typename LK::X(new Lazy_rep_n<typename AK::X, typename EK::X, Ith<typename AK::X>, \
|
||||
*it++ = make_object(typename LK::X(new Lazy_rep_n<typename AK::X, typename EK::X, Ith<typename AK::X>, \
|
||||
Ith<typename EK::X>, E2A, Lazy_vector> \
|
||||
(Ith<typename AK::X>(i), Ith<typename EK::X>(i), lv))); \
|
||||
continue; \
|
||||
}
|
||||
}
|
||||
|
||||
#include <CGAL/Kernel/interface_macros.h>
|
||||
|
||||
|
|
@ -1194,9 +1194,9 @@ public:
|
|||
std::vector<Object> exact_objects;
|
||||
ec(CGAL::exact(l1), CGAL::exact(l2), std::back_inserter(exact_objects));
|
||||
for (std::vector<Object>::const_iterator oit = exact_objects.begin();
|
||||
oit != exact_objects.end();
|
||||
++oit){
|
||||
*it++ = make_lazy<LK>(*oit);
|
||||
oit != exact_objects.end();
|
||||
++oit){
|
||||
*it++ = make_lazy<LK>(*oit);
|
||||
}
|
||||
}
|
||||
return it;
|
||||
|
|
@ -1255,9 +1255,9 @@ public:
|
|||
|
||||
#define CGAL_Kernel_obj(X) \
|
||||
if (object_cast<typename AK::X>(& (lo.approx()))) { \
|
||||
typedef Lazy_rep_n< typename AK::X, typename EK::X, Object_cast<typename AK::X>, Object_cast<typename EK::X>, E2A, Lazy_object> Lcr; \
|
||||
Lcr * lcr = new Lcr(Object_cast<typename AK::X>(), Object_cast<typename EK::X>(), lo); \
|
||||
return make_object(typename LK::X(lcr)); \
|
||||
typedef Lazy_rep_n< typename AK::X, typename EK::X, Object_cast<typename AK::X>, Object_cast<typename EK::X>, E2A, Lazy_object> Lcr; \
|
||||
Lcr * lcr = new Lcr(Object_cast<typename AK::X>(), Object_cast<typename EK::X>(), lo); \
|
||||
return make_object(typename LK::X(lcr)); \
|
||||
}
|
||||
|
||||
#include <CGAL/Kernel/interface_macros.h>
|
||||
|
|
@ -1288,9 +1288,9 @@ public:
|
|||
|
||||
#define CGAL_Kernel_obj(X) \
|
||||
if (object_cast<typename AK::X>(& (lo.approx()))) { \
|
||||
typedef Lazy_rep_n<typename AK::X, typename EK::X, Object_cast<typename AK::X>, Object_cast<typename EK::X>, E2A, Lazy_object> Lcr; \
|
||||
Lcr * lcr = new Lcr(Object_cast<typename AK::X>(), Object_cast<typename EK::X>(), lo); \
|
||||
return make_object(typename LK::X(lcr)); \
|
||||
typedef Lazy_rep_n<typename AK::X, typename EK::X, Object_cast<typename AK::X>, Object_cast<typename EK::X>, E2A, Lazy_object> Lcr; \
|
||||
Lcr * lcr = new Lcr(Object_cast<typename AK::X>(), Object_cast<typename EK::X>(), lo); \
|
||||
return make_object(typename LK::X(lcr)); \
|
||||
}
|
||||
|
||||
#include <CGAL/Kernel/interface_macros.h>
|
||||
|
|
@ -1342,9 +1342,9 @@ CGAL_Kernel_obj(Point_3)
|
|||
|
||||
#define CGAL_Kernel_obj(X) \
|
||||
if (object_cast<typename AK::X>(& (lo.approx()))) { \
|
||||
typedef Lazy_rep_n<typename AK::X, typename EK::X, Object_cast<typename AK::X>, Object_cast<typename EK::X>, E2A, Lazy_object> Lcr; \
|
||||
Lcr * lcr = new Lcr(Object_cast<typename AK::X>(), Object_cast<typename EK::X>(), lo); \
|
||||
return make_object(typename LK::X(lcr)); \
|
||||
typedef Lazy_rep_n<typename AK::X, typename EK::X, Object_cast<typename AK::X>, Object_cast<typename EK::X>, E2A, Lazy_object> Lcr; \
|
||||
Lcr * lcr = new Lcr(Object_cast<typename AK::X>(), Object_cast<typename EK::X>(), lo); \
|
||||
return make_object(typename LK::X(lcr)); \
|
||||
}
|
||||
|
||||
#include <CGAL/Kernel/interface_macros.h>
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class Handle
|
|||
typedef std::ptrdiff_t Id_type ;
|
||||
|
||||
Handle() noexcept
|
||||
: PTR{static_cast<Rep*>(0)} {}
|
||||
: PTR{static_cast<Rep*>(0)} {}
|
||||
|
||||
// FIXME: if the precondition throws in a noexcept function, the program terminates
|
||||
Handle(const Handle& x) noexcept
|
||||
|
|
@ -53,8 +53,8 @@ class Handle
|
|||
|
||||
~Handle()
|
||||
{
|
||||
if ( PTR.p && (--PTR.p->count == 0))
|
||||
delete PTR.p;
|
||||
if ( PTR.p && (--PTR.p->count == 0))
|
||||
delete PTR.p;
|
||||
}
|
||||
|
||||
Handle&
|
||||
|
|
@ -63,7 +63,7 @@ class Handle
|
|||
CGAL_precondition( x.PTR.p != static_cast<Rep*>(0) );
|
||||
x.PTR.p->count++;
|
||||
if ( PTR.p && (--PTR.p->count == 0))
|
||||
delete PTR.p;
|
||||
delete PTR.p;
|
||||
PTR.p = x.PTR.p;
|
||||
return *this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue