|
Boost-Commit : |
From: huseyinakcan_at_[hidden]
Date: 2007-07-18 12:34:58
Author: huseyinakcan
Date: 2007-07-18 12:34:57 EDT (Wed, 18 Jul 2007)
New Revision: 7467
URL: http://svn.boost.org/trac/boost/changeset/7467
Log:
new config double in the halfedge_selectors test class.
Text files modified:
sandbox/SOC/2007/geometry/libs/hdstl/dev/halfedge_ds/facet_selectors.t.cpp | 16 ++++++------
sandbox/SOC/2007/geometry/libs/hdstl/dev/halfedge_ds/halfedge_selectors.t.cpp | 52 +++++++++++++++++++++++++++++++++++++--
2 files changed, 57 insertions(+), 11 deletions(-)
Modified: sandbox/SOC/2007/geometry/libs/hdstl/dev/halfedge_ds/facet_selectors.t.cpp
==============================================================================
--- sandbox/SOC/2007/geometry/libs/hdstl/dev/halfedge_ds/facet_selectors.t.cpp (original)
+++ sandbox/SOC/2007/geometry/libs/hdstl/dev/halfedge_ds/facet_selectors.t.cpp 2007-07-18 12:34:57 EDT (Wed, 18 Jul 2007)
@@ -190,15 +190,15 @@
BOOST_CHECK(( selection_requirements(facetS<listS,true>()) ));
BOOST_CHECK(( selection_requirements(facetS<listS,false>()) ));
- BOOST_CHECK(( facet_gen_requirements_void_noFacetLink<
- facet_gen<facetS<listS,false>, int, void> >() ));
- BOOST_CHECK(( facet_gen_requirements_void<
- facet_gen<facetS<listS,true>, int, void> >() ));
+// BOOST_CHECK(( facet_gen_requirements_void_noFacetLink<
+// facet_gen<facetS<listS,false>, int, void> >() ));
+// BOOST_CHECK(( facet_gen_requirements_void<
+// facet_gen<facetS<listS,true>, int, void> >() ));
- BOOST_CHECK(( facet_gen_requirements_noFacetLink<
- facet_gen<facetS<listS,false>, int, int>, int >() ));
- BOOST_CHECK(( facet_gen_requirements<
- facet_gen<facetS<listS,true>, int, int>, int >() ));
+// BOOST_CHECK(( facet_gen_requirements_noFacetLink<
+// facet_gen<facetS<listS,false>, int, int>, int >() ));
+// BOOST_CHECK(( facet_gen_requirements<
+// facet_gen<facetS<listS,true>, int, int>, int >() ));
// BOOST_CHECK(( facet_gen_requirements<
// facet_gen<facetS<listS,false>, int, custom_facet_base> >() ));
Modified: sandbox/SOC/2007/geometry/libs/hdstl/dev/halfedge_ds/halfedge_selectors.t.cpp
==============================================================================
--- sandbox/SOC/2007/geometry/libs/hdstl/dev/halfedge_ds/halfedge_selectors.t.cpp (original)
+++ sandbox/SOC/2007/geometry/libs/hdstl/dev/halfedge_ds/halfedge_selectors.t.cpp 2007-07-18 12:34:57 EDT (Wed, 18 Jul 2007)
@@ -16,6 +16,7 @@
#include <boost/hdstl/halfedge_ds/facet_selectors.hpp>
#include <boost/hdstl/halfedge_ds/halfedge_functions.hpp>
#include <boost/hdstl/halfedge_ds/vertex_selectors.hpp>
+#include <boost/hdstl/halfedge_ds/meta_functions.hpp>
#include <boost/test/minimal.hpp>
@@ -61,16 +62,61 @@
template <typename HalfedgeS, typename VertexS, typename FacetS>
struct halfedge_config {
+ // This halfedge_config to identically replace the halfedge_ds_gen::config
+ // and reproduced here for test purposes only. Note that this tests are
+ // not for the config class, but the halfedge_selectors, so config will
+ // be tested in its own package
enum {
- halfedge_has_opposite_member = false,
+ halfedge_has_opposite_member = !meta_is_same<
+ typename HalfedgeS::container_selector, vecS>::value,
+ is_forward = HalfedgeS::is_forward,
+ is_backward = HalfedgeS::is_backward,
+ halfedge_supports_vertices = !meta_is_same<VertexS,noVertexS>::value,
+ is_source = VertexS::is_source,
+ halfedge_supports_facets = !meta_is_same<FacetS,noFacetS>::value
+ };
+};
+
+template <typename HalfedgeS>
+struct halfedge_config<HalfedgeS, noVertexS, noFacetS> {
+ enum {
+ halfedge_has_opposite_member = !meta_is_same<
+ typename HalfedgeS::container_selector, vecS>::value,
+ is_forward = HalfedgeS::is_forward,
+ is_backward = HalfedgeS::is_backward,
halfedge_supports_vertices = false,
- is_forward = false,
- is_backward = false,
is_source = false,
halfedge_supports_facets = false
};
};
+template <typename HalfedgeS, typename FacetS>
+struct halfedge_config<HalfedgeS, noVertexS, FacetS> {
+ enum {
+ halfedge_has_opposite_member = !meta_is_same<
+ typename HalfedgeS::container_selector, vecS>::value,
+ is_forward = HalfedgeS::is_forward,
+ is_backward = HalfedgeS::is_backward,
+ halfedge_supports_vertices = false,
+ is_source = false,
+ halfedge_supports_facets = !meta_is_same<FacetS,noFacetS>::value
+ };
+};
+
+template <typename HalfedgeS, typename VertexS>
+struct halfedge_config<HalfedgeS, VertexS, noFacetS> {
+ enum {
+ halfedge_has_opposite_member = !meta_is_same<
+ typename HalfedgeS::container_selector, vecS>::value,
+ is_forward = HalfedgeS::is_forward,
+ is_backward = HalfedgeS::is_backward,
+ halfedge_supports_vertices = !meta_is_same<VertexS,noVertexS>::value,
+ is_source = VertexS::is_source,
+ halfedge_supports_facets = false
+ };
+};
+
+
template <typename HalfedgeGen>
bool halfedge_gen_requirements_void() {
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk