mirror of https://github.com/CGAL/cgal
Cleanup
This commit is contained in:
parent
144051e0af
commit
761220f429
|
|
@ -9,14 +9,13 @@ struct Myitem
|
||||||
template<class CMap>
|
template<class CMap>
|
||||||
struct Dart_wrapper
|
struct Dart_wrapper
|
||||||
{
|
{
|
||||||
typedef CGAL::Index::Cell_attribute<CMap, double> Face_attribute; // A weight
|
typedef CGAL::Cell_attribute<CMap, double> Face_attribute; // A weight
|
||||||
typedef std::tuple<void,void,Face_attribute> Attributes;
|
typedef std::tuple<void,void,Face_attribute> Attributes;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// Definition of my combinatorial map.
|
// Definition of my combinatorial map.
|
||||||
//typedef CGAL::Combinatorial_map<3,Myitem> CMap_3;
|
typedef CGAL::Combinatorial_map<3,Myitem> CMap_3;
|
||||||
typedef CGAL::Index::Combinatorial_map<3,Myitem> CMap_3;
|
|
||||||
typedef CMap_3::Dart_handle Dart_handle;
|
typedef CMap_3::Dart_handle Dart_handle;
|
||||||
typedef CMap_3::Attribute_type<2>::type Face_attribute;
|
typedef CMap_3::Attribute_type<2>::type Face_attribute;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -369,7 +369,7 @@ namespace CGAL {
|
||||||
friend class Concurrent_compact_container;
|
friend class Concurrent_compact_container;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef Cell_attribute<Refs, Info_, Tag_, OnMerge, OnSplit> Self;
|
typedef Cell_attribute<Refs, Info_, Tag_, OnMerge, OnSplit, WithID> Self;
|
||||||
|
|
||||||
typedef Tag_ Supports_cell_dart;
|
typedef Tag_ Supports_cell_dart;
|
||||||
typedef typename Refs::Dart_handle Dart_handle;
|
typedef typename Refs::Dart_handle Dart_handle;
|
||||||
|
|
@ -385,8 +385,7 @@ namespace CGAL {
|
||||||
bool operator!=(const Self& other) const
|
bool operator!=(const Self& other) const
|
||||||
{ return !operator==(other); }
|
{ return !operator==(other); }
|
||||||
|
|
||||||
|
protected:
|
||||||
// protected:
|
|
||||||
/// Default contructor.
|
/// Default contructor.
|
||||||
Cell_attribute()
|
Cell_attribute()
|
||||||
{}
|
{}
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ namespace CGAL {
|
||||||
bool operator!=(const Cell_attribute_without_info& other) const
|
bool operator!=(const Cell_attribute_without_info& other) const
|
||||||
{ return !operator==(other); }
|
{ return !operator==(other); }
|
||||||
|
|
||||||
// protected:
|
protected:
|
||||||
/// Contructor without parameter.
|
/// Contructor without parameter.
|
||||||
Cell_attribute_without_info() : mdart(Refs::null_handle),
|
Cell_attribute_without_info() : mdart(Refs::null_handle),
|
||||||
mrefcounting(0)
|
mrefcounting(0)
|
||||||
|
|
|
||||||
|
|
@ -727,7 +727,7 @@ namespace CGAL {
|
||||||
}
|
}
|
||||||
Dart_const_handle first_dart() const
|
Dart_const_handle first_dart() const
|
||||||
{
|
{
|
||||||
if (darts().begin() == darts().end()) return null_dart_handle;
|
if (darts().begin() == darts().end()) return null_handle;
|
||||||
return darts().begin();
|
return darts().begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ namespace CGAL {
|
||||||
typedef typename Allocator_traits::template rebind_alloc<Dart> Dart_allocator;
|
typedef typename Allocator_traits::template rebind_alloc<Dart> Dart_allocator;
|
||||||
|
|
||||||
typedef Compact_container_with_index_2<Dart,Dart_allocator,
|
typedef Compact_container_with_index_2<Dart,Dart_allocator,
|
||||||
Constant_size_policy_for_cc_with_size<1024>, Index_type>
|
Multiply_by_two_policy_for_cc_with_size<64>, Index_type>
|
||||||
Dart_container;
|
Dart_container;
|
||||||
|
|
||||||
// typedef unsigned int Dart_index;
|
// typedef unsigned int Dart_index;
|
||||||
|
|
@ -83,7 +83,7 @@ namespace CGAL {
|
||||||
struct Container_for_attributes : public
|
struct Container_for_attributes : public
|
||||||
Compact_container_with_index_2<T,
|
Compact_container_with_index_2<T,
|
||||||
typename Alloc_::template rebind<T>::other,
|
typename Alloc_::template rebind<T>::other,
|
||||||
Constant_size_policy_for_cc_with_size<1024>, size_type >
|
Multiply_by_two_policy_for_cc_with_size<64>, size_type >
|
||||||
{};
|
{};
|
||||||
|
|
||||||
/// Typedef for attributes
|
/// Typedef for attributes
|
||||||
|
|
|
||||||
|
|
@ -124,8 +124,10 @@ public:
|
||||||
friend class internal::CC_iterator_with_index<Self, true>;
|
friend class internal::CC_iterator_with_index<Self, true>;
|
||||||
|
|
||||||
template<unsigned int first_block_size_, unsigned int block_size_increment>
|
template<unsigned int first_block_size_, unsigned int block_size_increment>
|
||||||
friend struct Addition_size_policy;
|
friend struct Addition_size_policy;
|
||||||
template<unsigned int k> friend struct Constant_size_policy_for_cc_with_size;
|
template<unsigned int k> friend struct Constant_size_policy_for_cc_with_size;
|
||||||
|
template<unsigned int k>
|
||||||
|
friend struct Multiply_by_two_policy_for_cc_with_size;
|
||||||
|
|
||||||
explicit Compact_container_with_index_2(const Allocator &a = Allocator())
|
explicit Compact_container_with_index_2(const Allocator &a = Allocator())
|
||||||
: alloc(a)
|
: alloc(a)
|
||||||
|
|
|
||||||
|
|
@ -30,24 +30,20 @@ namespace CGAL {
|
||||||
template<unsigned int, class, class, class>
|
template<unsigned int, class, class, class>
|
||||||
class Combinatorial_map_storage_1;
|
class Combinatorial_map_storage_1;
|
||||||
|
|
||||||
template<unsigned int, class, class, class>
|
|
||||||
class Combinatorial_map_storage_2;
|
|
||||||
|
|
||||||
template<unsigned int, class, class, class>
|
template<unsigned int, class, class, class>
|
||||||
class Generalized_map_storage_1;
|
class Generalized_map_storage_1;
|
||||||
|
|
||||||
template<unsigned int, unsigned int, class, class, class, class>
|
template<unsigned int, unsigned int, class, class, class, class>
|
||||||
class CMap_linear_cell_complex_storage_1;
|
class CMap_linear_cell_complex_storage_1;
|
||||||
|
|
||||||
template<unsigned int, unsigned int, class, class, class, class>
|
|
||||||
class CMap_linear_cell_complex_storage_2;
|
|
||||||
|
|
||||||
template<unsigned int, unsigned int, class, class, class, class>
|
template<unsigned int, unsigned int, class, class, class, class>
|
||||||
class GMap_linear_cell_complex_storage_1;
|
class GMap_linear_cell_complex_storage_1;
|
||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
|
|
||||||
template<class, class>
|
template<class, class>
|
||||||
struct Init_id;
|
struct Init_id;
|
||||||
|
|
||||||
} // end namespace internal
|
} // end namespace internal
|
||||||
|
|
||||||
/** @file Dart.h
|
/** @file Dart.h
|
||||||
|
|
|
||||||
|
|
@ -30,15 +30,6 @@ namespace CGAL {
|
||||||
{};
|
{};
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace Index
|
|
||||||
{
|
|
||||||
struct Generic_map_min_items
|
|
||||||
{
|
|
||||||
template < class Refs >
|
|
||||||
struct Dart_wrapper
|
|
||||||
{};
|
|
||||||
};
|
|
||||||
} // namespace Index
|
|
||||||
} // namespace CGAL
|
} // namespace CGAL
|
||||||
|
|
||||||
#endif // CGAL_GENERIC_MAP_MIN_ITEMS_H
|
#endif // CGAL_GENERIC_MAP_MIN_ITEMS_H
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue