| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /** | ||
| 2 | * \file | ||
| 3 | * \brief Concept checking | ||
| 4 | *//* | ||
| 5 | * Copyright 2015 Krzysztof KosiĆski <tweenk.pl@gmail.com> | ||
| 6 | * | ||
| 7 | * This library is free software; you can redistribute it and/or | ||
| 8 | * modify it either under the terms of the GNU Lesser General Public | ||
| 9 | * License version 2.1 as published by the Free Software Foundation | ||
| 10 | * (the "LGPL") or, at your option, under the terms of the Mozilla | ||
| 11 | * Public License Version 1.1 (the "MPL"). If you do not alter this | ||
| 12 | * notice, a recipient may use your version of this file under either | ||
| 13 | * the MPL or the LGPL. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the LGPL along with this library | ||
| 16 | * in the file COPYING-LGPL-2.1; if not, output to the Free Software | ||
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 18 | * You should have received a copy of the MPL along with this library | ||
| 19 | * in the file COPYING-MPL-1.1 | ||
| 20 | * | ||
| 21 | * The contents of this file are subject to the Mozilla Public License | ||
| 22 | * Version 1.1 (the "License"); you may not use this file except in | ||
| 23 | * compliance with the License. You may obtain a copy of the License at | ||
| 24 | * http://www.mozilla.org/MPL/ | ||
| 25 | * | ||
| 26 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY | ||
| 27 | * OF ANY KIND, either express or implied. See the LGPL or the MPL for | ||
| 28 | * the specific language governing rights and limitations. | ||
| 29 | */ | ||
| 30 | |||
| 31 | #include <boost/concept/assert.hpp> | ||
| 32 | #include <2geom/concepts.h> | ||
| 33 | |||
| 34 | #include <2geom/line.h> | ||
| 35 | #include <2geom/circle.h> | ||
| 36 | #include <2geom/ellipse.h> | ||
| 37 | #include <2geom/curves.h> | ||
| 38 | #include <2geom/convex-hull.h> | ||
| 39 | #include <2geom/path.h> | ||
| 40 | #include <2geom/pathvector.h> | ||
| 41 | |||
| 42 | #include <2geom/bezier.h> | ||
| 43 | #include <2geom/sbasis.h> | ||
| 44 | #include <2geom/linear.h> | ||
| 45 | #include <2geom/d2.h> | ||
| 46 | |||
| 47 | namespace Geom { | ||
| 48 | |||
| 49 | ✗ | void concept_checks() | |
| 50 | { | ||
| 51 | BOOST_CONCEPT_ASSERT((ShapeConcept<Line>)); | ||
| 52 | //BOOST_CONCEPT_ASSERT((ShapeConcept<Circle>)); | ||
| 53 | //BOOST_CONCEPT_ASSERT((ShapeConcept<Ellipse>)); | ||
| 54 | BOOST_CONCEPT_ASSERT((ShapeConcept<BezierCurve>)); | ||
| 55 | BOOST_CONCEPT_ASSERT((ShapeConcept<EllipticalArc>)); | ||
| 56 | //BOOST_CONCEPT_ASSERT((ShapeConcept<SBasisCurve>)); | ||
| 57 | //BOOST_CONCEPT_ASSERT((ShapeConcept<ConvexHull>)); | ||
| 58 | //BOOST_CONCEPT_ASSERT((ShapeConcept<Path>)); | ||
| 59 | //BOOST_CONCEPT_ASSERT((ShapeConcept<PathVector>)); | ||
| 60 | |||
| 61 | BOOST_CONCEPT_ASSERT((NearConcept<Coord>)); | ||
| 62 | BOOST_CONCEPT_ASSERT((NearConcept<Point>)); | ||
| 63 | |||
| 64 | BOOST_CONCEPT_ASSERT((FragmentConcept<Bezier>)); | ||
| 65 | BOOST_CONCEPT_ASSERT((FragmentConcept<Linear>)); | ||
| 66 | BOOST_CONCEPT_ASSERT((FragmentConcept<SBasis>)); | ||
| 67 | ✗ | } | |
| 68 | |||
| 69 | } // end namespace Geom | ||
| 70 |