mirror of https://github.com/CGAL/cgal
Add classes Linear_cell_complex_for_bgl_combinatorial_map_helper and Linear_cell_complex_bgl_min_items in separated files.
This commit is contained in:
parent
09f82093a3
commit
8799b904b6
|
|
@ -0,0 +1,43 @@
|
||||||
|
// Copyright (c) 2017 CNRS and LIRIS' Establishments (France).
|
||||||
|
// All rights reserved.
|
||||||
|
//
|
||||||
|
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Lesser General Public License as
|
||||||
|
// published by the Free Software Foundation; either version 3 of the License,
|
||||||
|
// or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Licensees holding a valid commercial license may use this file in
|
||||||
|
// accordance with the commercial license agreement provided with the software.
|
||||||
|
//
|
||||||
|
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||||
|
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
//
|
||||||
|
// $URL$
|
||||||
|
// $Id$
|
||||||
|
//
|
||||||
|
// Author(s) : Guillaume Damiand <guillaume.damiand@liris.cnrs.fr>
|
||||||
|
//
|
||||||
|
#ifndef CGAL_LINEAR_CELL_COMPLEX_BGL_MIN_ITEMS_H
|
||||||
|
#define CGAL_LINEAR_CELL_COMPLEX_BGL_MIN_ITEMS_H 1
|
||||||
|
|
||||||
|
#include <CGAL/Cell_attribute_with_point_and_id.h>
|
||||||
|
|
||||||
|
namespace CGAL {
|
||||||
|
|
||||||
|
struct Linear_cell_complex_bgl_min_items
|
||||||
|
{
|
||||||
|
/// Dart_wrapper defines the type of darts used.
|
||||||
|
template <class LCC>
|
||||||
|
struct Dart_wrapper
|
||||||
|
{
|
||||||
|
typedef CGAL::Tag_true Darts_with_id;
|
||||||
|
typedef CGAL::Cell_attribute_with_point_and_id<LCC> Vertex_attribute;
|
||||||
|
typedef CGAL::Cell_attribute_with_id<LCC> Face_attribute;
|
||||||
|
typedef CGAL::cpp11::tuple<Vertex_attribute, void, Face_attribute> Attributes;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace CGAL
|
||||||
|
|
||||||
|
#endif // CGAL_LINEAR_CELL_COMPLEX_BGL_MIN_ITEMS_H //
|
||||||
|
// EOF //
|
||||||
|
|
@ -21,9 +21,9 @@
|
||||||
#define CGAL_LINEAR_CELL_COMPLEX_FOR_BGL_COMBINATORIAL_MAP_H 1
|
#define CGAL_LINEAR_CELL_COMPLEX_FOR_BGL_COMBINATORIAL_MAP_H 1
|
||||||
|
|
||||||
#include <CGAL/Linear_cell_complex_for_combinatorial_map.h>
|
#include <CGAL/Linear_cell_complex_for_combinatorial_map.h>
|
||||||
|
#include <CGAL/Linear_cell_complex_bgl_min_items.h>
|
||||||
#include <CGAL/Linear_cell_complex_traits.h>
|
#include <CGAL/Linear_cell_complex_traits.h>
|
||||||
#include <CGAL/CMap_linear_cell_complex_storages.h>
|
#include <CGAL/CMap_linear_cell_complex_storages.h>
|
||||||
#include <CGAL/Cell_attribute_with_point.h>
|
|
||||||
|
|
||||||
namespace CGAL {
|
namespace CGAL {
|
||||||
|
|
||||||
|
|
@ -33,33 +33,24 @@ namespace CGAL {
|
||||||
* these cells have id.
|
* these cells have id.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct Linear_cell_complex_bgl_min_items
|
|
||||||
{
|
|
||||||
/// Dart_wrapper defines the type of darts used.
|
|
||||||
template <class LCC>
|
|
||||||
struct Dart_wrapper
|
|
||||||
{
|
|
||||||
typedef CGAL::Tag_true Darts_with_id;
|
|
||||||
typedef CGAL::Cell_attribute_with_point_and_id<LCC> Vertex_attribute;
|
|
||||||
typedef CGAL::Cell_attribute_with_id<LCC> Face_attribute;
|
|
||||||
typedef CGAL::cpp11::tuple<Vertex_attribute, void, Face_attribute> Attributes;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
// Linear_cell_complex_for_bgl_combinatorial_map class.
|
// Linear_cell_complex_for_bgl_combinatorial_map class.
|
||||||
template < unsigned int d_, unsigned int ambient_dim = d_,
|
template < unsigned int d_, unsigned int ambient_dim = d_,
|
||||||
class Traits_ = Linear_cell_complex_traits<ambient_dim>,
|
class Traits_ = Linear_cell_complex_traits<ambient_dim>,
|
||||||
class Items_ = Linear_cell_complex_bgl_min_items,
|
|
||||||
class Alloc_ = CGAL_ALLOCATOR(int),
|
class Alloc_ = CGAL_ALLOCATOR(int),
|
||||||
template<unsigned int,class,class,class,class>
|
template<unsigned int,class,class,class,class>
|
||||||
class CMap = Combinatorial_map_base,
|
class CMap = Combinatorial_map_base,
|
||||||
class Storage_ = CMap_linear_cell_complex_storage_1<d_, ambient_dim,
|
class Storage_ = CMap_linear_cell_complex_storage_1<d_, ambient_dim,
|
||||||
Traits_, Items_,
|
Traits_, Items_,
|
||||||
Alloc_> >
|
Alloc_> >
|
||||||
using Linear_cell_complex_for_bgl_combinatorial_map=
|
struct Linear_cell_complex_for_bgl_combinatorial_map_helper
|
||||||
Linear_cell_complex_for_combinatorial_map
|
{
|
||||||
<d_, ambient_dim, Traits_,
|
public:
|
||||||
Items_, Alloc_, CMap, Storage_>;
|
/// Type of the Linear_cell_complex_for_combinatorial_map.
|
||||||
|
typedef Linear_cell_complex_for_combinatorial_map
|
||||||
|
<d_, ambient_dim, Traits_, CGAL::Linear_cell_complex_bgl_min_items,
|
||||||
|
Alloc_, CMap, Storage_> type;
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace CGAL
|
} // namespace CGAL
|
||||||
|
|
||||||
#endif // CGAL_LINEAR_CELL_COMPLEX_FOR_BGL_COMBINATORIAL_MAP_H //
|
#endif // CGAL_LINEAR_CELL_COMPLEX_FOR_BGL_COMBINATORIAL_MAP_H //
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue