Files
geometry/doc/doxygen_output/html/segment__concept_8hpp_source.html
Barend Gehrels 363580fbf6 Added old doxygen docs
[SVN r59777]
2010-02-20 15:57:12 +00:00

176 lines
13 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">
&nbsp;&nbsp;
</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&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;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&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>boost/geometry/geometries/concepts/segment_concept.hpp</h1><a href="segment__concept_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 Bruno Lalande 2008, 2009</span>
<a name="l00004"></a>00004 <span class="comment">// Copyright Barend Gehrels 2007-2009, Geodan, Amsterdam, the Netherlands.</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_SEGMENT_CONCEPT_HPP</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_GEOMETRY_GEOMETRIES_CONCEPTS_SEGMENT_CONCEPT_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 &lt;boost/concept_check.hpp&gt;</span>
<a name="l00015"></a>00015
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;<a class="code" href="point__concept_8hpp.html">boost/geometry/geometries/concepts/point_concept.hpp</a>&gt;</span>
<a name="l00017"></a>00017
<a name="l00018"></a>00018
<a name="l00019"></a>00019
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;<a class="code" href="access_8hpp.html">boost/geometry/core/access.hpp</a>&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;<a class="code" href="core_2point__type_8hpp.html">boost/geometry/core/point_type.hpp</a>&gt;</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>geometry { <span class="keyword">namespace </span>concept {
<a name="l00026"></a>00026
<a name="l00027"></a>00027
<a name="l00046"></a>00046 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Geometry&gt;
<a name="l00047"></a><a class="code" href="classboost_1_1geometry_1_1concept_1_1_segment.html">00047</a> <span class="keyword">class </span><a class="code" href="classboost_1_1geometry_1_1concept_1_1_segment.html" title="segment concept">Segment</a>
<a name="l00048"></a>00048 {
<a name="l00049"></a>00049 <span class="preprocessor">#ifndef DOXYGEN_NO_CONCEPT_MEMBERS</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structboost_1_1geometry_1_1point__type.html" title="Meta-function which defines point type of any geometry.">point_type&lt;Geometry&gt;::type</a> <a class="code" href="structboost_1_1geometry_1_1point__type.html" title="Meta-function which defines point type of any geometry.">point_type</a>;
<a name="l00051"></a>00051
<a name="l00052"></a>00052 BOOST_CONCEPT_ASSERT( (<a class="code" href="classboost_1_1geometry_1_1concept_1_1_point.html" title="Point concept.">concept::Point&lt;point_type&gt;</a>) );
<a name="l00053"></a>00053
<a name="l00054"></a>00054
<a name="l00055"></a>00055 <span class="keyword">template</span> &lt;<span class="keywordtype">size_t</span> Index, <span class="keywordtype">size_t</span> Dimension, <span class="keywordtype">size_t</span> DimensionCount&gt;
<a name="l00056"></a>00056 <span class="keyword">struct </span>dimension_checker
<a name="l00057"></a>00057 {
<a name="l00058"></a>00058 <span class="keyword">static</span> <span class="keywordtype">void</span> apply()
<a name="l00059"></a>00059 {
<a name="l00060"></a>00060 Geometry* s;
<a name="l00061"></a>00061 geometry::set&lt;Index, Dimension&gt;(*s, geometry::get&lt;Index, Dimension&gt;(*s));
<a name="l00062"></a>00062 dimension_checker&lt;Index, Dimension + 1, DimensionCount&gt;::apply();
<a name="l00063"></a>00063 }
<a name="l00064"></a>00064 };
<a name="l00065"></a>00065
<a name="l00066"></a>00066 <span class="keyword">template</span> &lt;<span class="keywordtype">size_t</span> Index, <span class="keywordtype">size_t</span> DimensionCount&gt;
<a name="l00067"></a>00067 <span class="keyword">struct </span>dimension_checker&lt;Index, DimensionCount, DimensionCount&gt;
<a name="l00068"></a>00068 {
<a name="l00069"></a>00069 <span class="keyword">static</span> <span class="keywordtype">void</span> apply() {}
<a name="l00070"></a>00070 };
<a name="l00071"></a>00071
<a name="l00072"></a>00072 <span class="keyword">public</span> :
<a name="l00073"></a>00073
<a name="l00074"></a>00074 BOOST_CONCEPT_USAGE(<a class="code" href="classboost_1_1geometry_1_1concept_1_1_segment.html" title="segment concept">Segment</a>)
<a name="l00075"></a>00075 {
<a name="l00076"></a>00076 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">size_t</span> n = <a class="code" href="structboost_1_1geometry_1_1dimension.html" title="Meta-function which defines coordinate dimensions, i.e. the number of axes of any...">dimension&lt;point_type&gt;::type::value</a>;
<a name="l00077"></a>00077 dimension_checker&lt;0, 0, n&gt;::apply();
<a name="l00078"></a>00078 dimension_checker&lt;1, 0, n&gt;::apply();
<a name="l00079"></a>00079 }
<a name="l00080"></a>00080 <span class="preprocessor">#endif</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span>};
<a name="l00082"></a>00082
<a name="l00083"></a>00083
<a name="l00090"></a>00090 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Geometry&gt;
<a name="l00091"></a><a class="code" href="classboost_1_1geometry_1_1concept_1_1_const_segment.html">00091</a> <span class="keyword">class </span><a class="code" href="classboost_1_1geometry_1_1concept_1_1_const_segment.html" title="Segment concept (const version).">ConstSegment</a>
<a name="l00092"></a>00092 {
<a name="l00093"></a>00093 <span class="preprocessor">#ifndef DOXYGEN_NO_CONCEPT_MEMBERS</span>
<a name="l00094"></a>00094 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structboost_1_1geometry_1_1point__type.html" title="Meta-function which defines point type of any geometry.">point_type&lt;Geometry&gt;::type</a> <a class="code" href="structboost_1_1geometry_1_1point__type.html" title="Meta-function which defines point type of any geometry.">point_type</a>;
<a name="l00095"></a>00095 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type&lt;Geometry&gt;::type</a> <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a>;
<a name="l00096"></a>00096
<a name="l00097"></a>00097 BOOST_CONCEPT_ASSERT( (<a class="code" href="classboost_1_1geometry_1_1concept_1_1_const_point.html" title="point concept (const version)">concept::ConstPoint&lt;point_type&gt;</a>) );
<a name="l00098"></a>00098
<a name="l00099"></a>00099
<a name="l00100"></a>00100 <span class="keyword">template</span> &lt;<span class="keywordtype">size_t</span> Index, <span class="keywordtype">size_t</span> Dimension, <span class="keywordtype">size_t</span> DimensionCount&gt;
<a name="l00101"></a>00101 <span class="keyword">struct </span>dimension_checker
<a name="l00102"></a>00102 {
<a name="l00103"></a>00103 <span class="keyword">static</span> <span class="keywordtype">void</span> apply()
<a name="l00104"></a>00104 {
<a name="l00105"></a>00105 <span class="keyword">const</span> Geometry* s = 0;
<a name="l00106"></a>00106 <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> coord(geometry::get&lt;Index, Dimension&gt;(*s));
<a name="l00107"></a>00107 boost::ignore_unused_variable_warning(coord);
<a name="l00108"></a>00108 dimension_checker&lt;Index, Dimension + 1, DimensionCount&gt;::apply();
<a name="l00109"></a>00109 }
<a name="l00110"></a>00110 };
<a name="l00111"></a>00111
<a name="l00112"></a>00112 <span class="keyword">template</span> &lt;<span class="keywordtype">size_t</span> Index, <span class="keywordtype">size_t</span> DimensionCount&gt;
<a name="l00113"></a>00113 <span class="keyword">struct </span>dimension_checker&lt;Index, DimensionCount, DimensionCount&gt;
<a name="l00114"></a>00114 {
<a name="l00115"></a>00115 <span class="keyword">static</span> <span class="keywordtype">void</span> apply() {}
<a name="l00116"></a>00116 };
<a name="l00117"></a>00117
<a name="l00118"></a>00118 <span class="keyword">public</span> :
<a name="l00119"></a>00119
<a name="l00120"></a>00120 BOOST_CONCEPT_USAGE(<a class="code" href="classboost_1_1geometry_1_1concept_1_1_const_segment.html" title="Segment concept (const version).">ConstSegment</a>)
<a name="l00121"></a>00121 {
<a name="l00122"></a>00122 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">size_t</span> n = <a class="code" href="structboost_1_1geometry_1_1dimension.html" title="Meta-function which defines coordinate dimensions, i.e. the number of axes of any...">dimension&lt;point_type&gt;::type::value</a>;
<a name="l00123"></a>00123 dimension_checker&lt;0, 0, n&gt;::apply();
<a name="l00124"></a>00124 dimension_checker&lt;1, 0, n&gt;::apply();
<a name="l00125"></a>00125 }
<a name="l00126"></a>00126 <span class="preprocessor">#endif</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span>};
<a name="l00128"></a>00128
<a name="l00129"></a>00129
<a name="l00130"></a>00130 }}} <span class="comment">// namespace boost::geometry::concept</span>
<a name="l00131"></a>00131
<a name="l00132"></a>00132
<a name="l00133"></a>00133 <span class="preprocessor">#endif // BOOST_GEOMETRY_GEOMETRIES_CONCEPTS_SEGMENT_CONCEPT_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&nbsp;<a href="http://www.doxygen.org/index.html">Doxygen</a>
</small></address>
</body>
</html>