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 > namespace internal{
bool namespace P2DT2{
Periodic_2_Delaunay_triangulation_2<Gt, Tds>::
remove_single_vertex(Vertex_handle v, const Offset &v_o) template<class P2DT2>
{
struct Static_data{ struct Static_data{
int maxd; int maxd;
std::vector<Face_handle> f; std::vector<typename P2DT2::Face_handle> f;
std::vector<int> i; std::vector<int> i;
std::vector<Vertex_handle> w; std::vector<typename P2DT2::Vertex_handle> w;
std::vector<Offset> offset_w; std::vector<typename P2DT2::Offset> offset_w;
Static_data(int m) Static_data(int m)
: maxd(m) : maxd(m)
, f(maxd) , f(maxd)
@ -1136,6 +1135,15 @@ remove_single_vertex(Vertex_handle v, const Offset &v_o)
{} {}
}; };
} } //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); CGAL_STATIC_THREAD_LOCAL_VARIABLE(Static_data, sd, 30);
int d; int d;