mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-13 12:32:09 +00:00
125 lines
6.7 KiB
HTML
125 lines
6.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<title>Boost.Geometry (aka GGL, Generic Geometry Library)</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
|
|
<table cellpadding="2" width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td valign="top">
|
|
<img alt="Boost.Geometry" src="images/ggl-logo-big.png" height="80" width="200">
|
|
|
|
</td>
|
|
<td valign="top" align="right">
|
|
<a href="http://www.boost.org">
|
|
<img alt="Boost C++ Libraries" src="images/accepted_by_boost.png" height="80" width="230" border="0">
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<!-- Generated by Doxygen 1.5.9 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<h1>boost/geometry/geometries/concepts/detail/check_append.hpp</h1><a href="check__append_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Boost.Geometry (aka GGL, Generic Geometry Library)</span>
|
|
<a name="l00002"></a>00002 <span class="comment">//</span>
|
|
<a name="l00003"></a>00003 <span class="comment">// Copyright Barend Gehrels 2007-2009, Geodan, Amsterdam, the Netherlands.</span>
|
|
<a name="l00004"></a>00004 <span class="comment">// Copyright Bruno Lalande 2008, 2009</span>
|
|
<a name="l00005"></a>00005 <span class="comment">// Use, modification and distribution is subject to the Boost Software License,</span>
|
|
<a name="l00006"></a>00006 <span class="comment">// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at</span>
|
|
<a name="l00007"></a>00007 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
|
|
<a name="l00008"></a>00008
|
|
<a name="l00009"></a>00009
|
|
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef BOOST_GEOMETRY_GEOMETRIES_CONCEPTS_DETAIL_CHECK_APPEND_HPP</span>
|
|
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_GEOMETRY_GEOMETRIES_CONCEPTS_DETAIL_CHECK_APPEND_HPP</span>
|
|
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
|
<a name="l00013"></a>00013
|
|
<a name="l00014"></a>00014 <span class="preprocessor">#include <boost/type_traits/remove_const.hpp></span>
|
|
<a name="l00015"></a>00015
|
|
<a name="l00016"></a>00016 <span class="preprocessor">#include <<a class="code" href="access_8hpp.html">boost/geometry/core/access.hpp</a>></span>
|
|
<a name="l00017"></a>00017
|
|
<a name="l00018"></a>00018
|
|
<a name="l00019"></a>00019 <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>geometry { <span class="keyword">namespace </span>concept {
|
|
<a name="l00020"></a>00020
|
|
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef DOXYGEN_NO_DETAIL</span>
|
|
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="keyword">namespace </span>detail
|
|
<a name="l00023"></a>00023 {
|
|
<a name="l00024"></a>00024
|
|
<a name="l00025"></a>00025 <span class="keyword">template</span> <<span class="keyword">typename</span> Geometry, <span class="keyword">typename</span> Po<span class="keywordtype">int</span>, <span class="keywordtype">bool</span> UseStd>
|
|
<a name="l00026"></a>00026 <span class="keyword">struct </span>check_append
|
|
<a name="l00027"></a>00027 {};
|
|
<a name="l00028"></a>00028
|
|
<a name="l00029"></a>00029 <span class="keyword">template</span> <<span class="keyword">typename</span> Geometry, <span class="keyword">typename</span> Po<span class="keywordtype">int</span>>
|
|
<a name="l00030"></a>00030 <span class="keyword">struct </span>check_append<Geometry, Point, true>
|
|
<a name="l00031"></a>00031 {
|
|
<a name="l00032"></a>00032 <span class="keyword">static</span> <span class="keywordtype">void</span> apply(Geometry& geometry, Point <span class="keyword">const</span>& p)
|
|
<a name="l00033"></a>00033 {
|
|
<a name="l00034"></a>00034 geometry.push_back(p);
|
|
<a name="l00035"></a>00035 }
|
|
<a name="l00036"></a>00036 };
|
|
<a name="l00037"></a>00037
|
|
<a name="l00038"></a>00038
|
|
<a name="l00039"></a>00039 <span class="keyword">template</span> <<span class="keyword">typename</span> Geometry, <span class="keyword">typename</span> Po<span class="keywordtype">int</span>>
|
|
<a name="l00040"></a>00040 <span class="keyword">struct </span>check_append<Geometry, Point, false>
|
|
<a name="l00041"></a>00041 {
|
|
<a name="l00042"></a>00042 <span class="keyword">static</span> <span class="keywordtype">void</span> apply(Geometry& geometry, Point <span class="keyword">const</span>& p)
|
|
<a name="l00043"></a>00043 {
|
|
<a name="l00044"></a>00044 geometry::traits::append_point
|
|
<a name="l00045"></a>00045 <
|
|
<a name="l00046"></a>00046 <span class="keyword">typename</span> boost::remove_const<Geometry>::type,
|
|
<a name="l00047"></a>00047 Point
|
|
<a name="l00048"></a>00048 >::apply(geometry, p, -1, -1);
|
|
<a name="l00049"></a>00049 }
|
|
<a name="l00050"></a>00050 };
|
|
<a name="l00051"></a>00051 }
|
|
<a name="l00052"></a>00052 <span class="preprocessor">#endif // DOXYGEN_NO_DETAIL</span>
|
|
<a name="l00053"></a>00053 <span class="preprocessor"></span>
|
|
<a name="l00054"></a>00054
|
|
<a name="l00055"></a>00055 }}} <span class="comment">// namespace boost::geometry::concept</span>
|
|
<a name="l00056"></a>00056
|
|
<a name="l00057"></a>00057
|
|
<a name="l00058"></a>00058 <span class="preprocessor">#endif // BOOST_GEOMETRY_GEOMETRIES_CONCEPTS_DETAIL_CHECK_APPEND_HPP</span>
|
|
</pre></div></div>
|
|
<hr size="1">
|
|
<table width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td align="left"><small>
|
|
<p>December 1, 2009</p>
|
|
</small></td>
|
|
<td align="right">
|
|
<small>Copyright © 1995-2009 Barend Gehrels, Geodan, Amsterdam<br>
|
|
Copyright © 2008-2009 Bruno Lalande, Paris<br>
|
|
Copyright © 2009 Mateusz Loskot, Cadcorp, London<br>
|
|
</small>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<address style="text-align: right;"><small>
|
|
Documentation is generated by <a href="http://www.doxygen.org/index.html">Doxygen</a>
|
|
</small></address>
|
|
</body>
|
|
</html>
|