move internal struct to external struct

This commit is contained in:
Sébastien Loriot 2016-10-21 15:12:17 +02:00
parent b90d411514
commit 51f0b9b431
1 changed files with 23 additions and 15 deletions

View File

@ -1116,17 +1116,16 @@ remove(Vertex_handle v)
}
}
template < class Gt, class Tds >
bool
Periodic_2_Delaunay_triangulation_2<Gt, Tds>::
remove_single_vertex(Vertex_handle v, const Offset &v_o)
{
struct Static_data{
namespace internal{
namespace P2DT2{
template<class P2DT2>
struct Static_data{
int maxd;
std::vector<Face_handle> f;
std::vector<typename P2DT2::Face_handle> f;
std::vector<int> i;
std::vector<Vertex_handle> w;
std::vector<Offset> offset_w;
std::vector<typename P2DT2::Vertex_handle> w;
std::vector<typename P2DT2::Offset> offset_w;
Static_data(int m)
: maxd(m)
, f(maxd)
@ -1134,8 +1133,17 @@ remove_single_vertex(Vertex_handle v, const Offset &v_o)
, w(maxd)
, offset_w(maxd)
{}
};
};
} } //end of namespace internal::P2DT2
template < class Gt, class Tds >
bool
Periodic_2_Delaunay_triangulation_2<Gt, Tds>::
remove_single_vertex(Vertex_handle v, const Offset &v_o)
{
typedef internal::P2DT2::
Static_data< Periodic_2_Delaunay_triangulation_2<Gt, Tds> > Static_data;
CGAL_STATIC_THREAD_LOCAL_VARIABLE(Static_data, sd, 30);
int d;