diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:30:07 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:32:57 +0900 |
commit | 71d216b90256936a9638f325af9bc69d720e75de (patch) | |
tree | 9c5f682d341c7c88ad0c8e3d4b262e00b6fb691a /doc/html/boost/units/static_rational.html | |
parent | 733b5d5ae2c5d625211e2985ac25728ac3f54883 (diff) | |
download | boost-71d216b90256936a9638f325af9bc69d720e75de.tar.gz boost-71d216b90256936a9638f325af9bc69d720e75de.tar.bz2 boost-71d216b90256936a9638f325af9bc69d720e75de.zip |
Imported Upstream version 1.59.0
Change-Id: I2dde00f4eca71df3eea9d251dcaecde18a6c90a5
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'doc/html/boost/units/static_rational.html')
-rw-r--r-- | doc/html/boost/units/static_rational.html | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/doc/html/boost/units/static_rational.html b/doc/html/boost/units/static_rational.html index 6766454adb..3fc25d0232 100644 --- a/doc/html/boost/units/static_rational.html +++ b/doc/html/boost/units/static_rational.html @@ -1,3 +1,4 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> @@ -7,7 +8,7 @@ <link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> <link rel="up" href="../../boost_units/Reference.html#header.boost.units.static_rational_hpp" title="Header <boost/units/static_rational.hpp>"> <link rel="prev" href="static_abs.html" title="Struct template static_abs"> -<link rel="next" href="power_typeof__idp342445040.html" title="Struct template power_typeof_helper<unit< Dim, System >, static_rational< N, D >>"> +<link rel="next" href="power_typeof__idp347827008.html" title="Struct template power_typeof_helper<unit< Dim, System >, static_rational< N, D >>"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> @@ -20,7 +21,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="static_abs.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_units/Reference.html#header.boost.units.static_rational_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="power_typeof__idp342445040.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="static_abs.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_units/Reference.html#header.boost.units.static_rational_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="power_typeof__idp347827008.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="refentry"> <a name="boost.units.static_rational"></a><div class="titlepage"></div> @@ -39,18 +40,18 @@ <span class="keyword">typedef</span> <a class="link" href="static_rational.html" title="Class template static_rational">static_rational</a><span class="special"><</span> <span class="identifier">Numerator</span><span class="special">,</span> <span class="identifier">Denominator</span> <span class="special">></span> <a name="boost.units.static_rational.type"></a><span class="identifier">type</span><span class="special">;</span> <span class="comment">// static_rational<N,D> reduced by GCD </span> <span class="comment">// <a class="link" href="static_rational.html#boost.units.static_rationalconstruct-copy-destruct">construct/copy/destruct</a></span> - <a class="link" href="static_rational.html#idp342435680-bb"><span class="identifier">static_rational</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> + <a class="link" href="static_rational.html#idp347817648-bb"><span class="identifier">static_rational</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> - <span class="comment">// <a class="link" href="static_rational.html#idp342432000-bb">public static functions</a></span> - <span class="keyword">static</span> <span class="identifier">integer_type</span> <a class="link" href="static_rational.html#idp342432560-bb"><span class="identifier">numerator</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> - <span class="keyword">static</span> <span class="identifier">integer_type</span> <a class="link" href="static_rational.html#idp342433680-bb"><span class="identifier">denominator</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> + <span class="comment">// <a class="link" href="static_rational.html#idp347813968-bb">public static functions</a></span> + <span class="keyword">static</span> <span class="identifier">integer_type</span> <a class="link" href="static_rational.html#idp347814528-bb"><span class="identifier">numerator</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> + <span class="keyword">static</span> <span class="identifier">integer_type</span> <a class="link" href="static_rational.html#idp347815648-bb"><span class="identifier">denominator</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> <span class="comment">// public data members</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">integer_type</span> <span class="identifier">Numerator</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">integer_type</span> <span class="identifier">Denominator</span><span class="special">;</span> <span class="special">}</span><span class="special">;</span></pre></div> <div class="refsect1"> -<a name="idp495659472"></a><h2>Description</h2> +<a name="idp502050384"></a><h2>Description</h2> <p>This is an implementation of a compile time rational number, where <code class="computeroutput">static_rational<N,D></code> represents a rational number with numerator <code class="computeroutput">N</code> and denominator <code class="computeroutput">D</code>. Because of the potential for ambiguity arising from multiple equivalent values of <code class="computeroutput"><a class="link" href="static_rational.html" title="Class template static_rational">static_rational</a></code> (e.g. <code class="computeroutput">static_rational<6,2>==static_rational<3></code>), static rationals should always be accessed through <code class="computeroutput">static_rational<N,D>::type</code>. Template specialization prevents instantiation of zero denominators (i.e. <code class="computeroutput">static_rational<N,0></code>). The following compile-time arithmetic operators are provided for <a class="link" href="static_rational.html" title="Class template static_rational">static_rational</a> variables only (no operators are defined between long and <a class="link" href="static_rational.html" title="Class template static_rational">static_rational</a>):</p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"><p><code class="computeroutput">mpl::negate</code> </p></li> @@ -63,18 +64,18 @@ </p> <p>Neither <code class="computeroutput"><a class="link" href="static_power.html" title="Struct template static_power">static_power</a></code> nor <code class="computeroutput"><a class="link" href="static_root.html" title="Struct template static_root">static_root</a></code> are defined for <code class="computeroutput"><a class="link" href="static_rational.html" title="Class template static_rational">static_rational</a></code>. This is because template types may not be floating point values, while powers and roots of rational numbers can produce floating point values. </p> <div class="refsect2"> -<a name="idp495677184"></a><h3> +<a name="idp502068096"></a><h3> <a name="boost.units.static_rationalconstruct-copy-destruct"></a><code class="computeroutput">static_rational</code> public construct/copy/destruct</h3> -<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="idp342435680-bb"></a><span class="identifier">static_rational</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div> +<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="idp347817648-bb"></a><span class="identifier">static_rational</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div> </div> <div class="refsect2"> -<a name="idp495683056"></a><h3> -<a name="idp342432000-bb"></a><code class="computeroutput">static_rational</code> public static functions</h3> +<a name="idp502074032"></a><h3> +<a name="idp347813968-bb"></a><code class="computeroutput">static_rational</code> public static functions</h3> <div class="orderedlist"><ol class="orderedlist" type="1"> -<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">integer_type</span> <a name="idp342432560-bb"></a><span class="identifier">numerator</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li> -<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">integer_type</span> <a name="idp342433680-bb"></a><span class="identifier">denominator</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li> +<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">integer_type</span> <a name="idp347814528-bb"></a><span class="identifier">numerator</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li> +<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">integer_type</span> <a name="idp347815648-bb"></a><span class="identifier">denominator</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li> </ol></div> </div> </div> @@ -90,7 +91,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="static_abs.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_units/Reference.html#header.boost.units.static_rational_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="power_typeof__idp342445040.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="static_abs.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_units/Reference.html#header.boost.units.static_rational_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="power_typeof__idp347827008.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> |