|
||||
File indexing completed on 2024-11-15 09:12:24
0001 // Boost.Geometry (aka GGL, Generic Geometry Library) 0002 0003 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. 0004 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. 0005 // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. 0006 0007 // This file was modified by Oracle on 2021. 0008 // Modifications copyright (c) 2021 Oracle and/or its affiliates. 0009 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle 0010 0011 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library 0012 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands. 0013 0014 // Use, modification and distribution is subject to the Boost Software License, 0015 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 0016 // http://www.boost.org/LICENSE_1_0.txt) 0017 0018 #ifndef BOOST_GEOMETRY_UTIL_ORDER_AS_DIRECTION_HPP 0019 #define BOOST_GEOMETRY_UTIL_ORDER_AS_DIRECTION_HPP 0020 0021 #include <boost/geometry/core/point_order.hpp> 0022 0023 namespace boost { namespace geometry 0024 { 0025 0026 0027 /*! 0028 \brief Flag for iterating a reversible_view in forward or reverse direction 0029 \ingroup views 0030 */ 0031 enum iterate_direction { iterate_forward, iterate_reverse }; 0032 0033 0034 template<order_selector Order> 0035 struct order_as_direction 0036 {}; 0037 0038 0039 template<> 0040 struct order_as_direction<clockwise> 0041 { 0042 static const iterate_direction value = iterate_forward; 0043 }; 0044 0045 0046 template<> 0047 struct order_as_direction<counterclockwise> 0048 { 0049 static const iterate_direction value = iterate_reverse; 0050 }; 0051 0052 0053 }} // namespace boost::geometry 0054 0055 0056 #endif // BOOST_GEOMETRY_UTIL_ORDER_AS_DIRECTION_HPP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |