Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > fa7fad8f194f80107561a85291acd153 > files > 796

lib64boost-devel-doc-1.42.0-3mdv2010.1.x86_64.rpm

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Class template time_resolution_traits</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../date_time/doxy.html#header.boost.date_time.time_resolution_traits_hpp" title="Header &lt;boost/date_time/time_resolution_traits.hpp&gt;">
<link rel="prev" href="time_resolution_traits__id429805.html" title="Struct time_resolution_traits_adapted64_impl">
<link rel="next" href="counted_time_rep.html" title="Struct template counted_time_rep">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="time_resolution_traits__id429805.html"><img src="../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.time_resolution_traits_hpp"><img src="../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="counted_time_rep.html"><img src="../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="refentry" title="Class template time_resolution_traits">
<a name="boost.date_time.time_resolution_traits"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template time_resolution_traits</span></h2>
<p>boost::date_time::time_resolution_traits</p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="emphasis"><em>// In header: &lt;<a class="link" href="../../date_time/doxy.html#header.boost.date_time.time_resolution_traits_hpp" title="Header &lt;boost/date_time/time_resolution_traits.hpp&gt;">boost/date_time/time_resolution_traits.hpp</a>&gt;

</em></span><span class="bold"><strong>template</strong></span>&lt;<span class="bold"><strong>typename</strong></span> frac_sec_type, time_resolutions res, 
         #<span class="bold"><strong>if</strong></span>(defined(BOOST_MSVC)&amp;&amp;(_MSC_VER&lt; 1300)) boost::int64_t resolution_adjust, 
         #<span class="bold"><strong>else</strong></span> <span class="bold"><strong>typename</strong></span> frac_sec_type::int_type resolution_adjust, 
         #endif <span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span> frac_digits, <span class="bold"><strong>typename</strong></span> v_type = boost::int32_t&gt; 
<span class="bold"><strong>class</strong></span> <a class="link" href="time_resolution_traits.html" title="Class template time_resolution_traits">time_resolution_traits</a> {
<span class="bold"><strong>public</strong></span>:
  <span class="emphasis"><em>// types</em></span>
  <span class="bold"><strong>typedef</strong></span> frac_sec_type::int_type  <a name="boost.date_time.time_resolution_traits.fractional_seconds_type"></a>fractional_seconds_type;
  <span class="bold"><strong>typedef</strong></span> frac_sec_type::int_type  <a name="boost.date_time.time_resolution_traits.tick_type"></a>tick_type;              
  <span class="bold"><strong>typedef</strong></span> frac_sec_type::impl_type <a name="boost.date_time.time_resolution_traits.impl_type"></a>impl_type;              
  <span class="bold"><strong>typedef</strong></span> v_type                   <a name="boost.date_time.time_resolution_traits.day_type"></a>day_type;               
  <span class="bold"><strong>typedef</strong></span> v_type                   <a name="boost.date_time.time_resolution_traits.hour_type"></a>hour_type;              
  <span class="bold"><strong>typedef</strong></span> v_type                   <a name="boost.date_time.time_resolution_traits.min_type"></a>min_type;               
  <span class="bold"><strong>typedef</strong></span> v_type                   <a name="boost.date_time.time_resolution_traits.sec_type"></a>sec_type;               

  <span class="emphasis"><em>// <a class="link" href="time_resolution_traits.html#id403757-bb">public static functions</a></em></span>
  <span class="type"><span class="bold"><strong>static</strong></span> fractional_seconds_type</span> <a class="link" href="time_resolution_traits.html#id403761-bb">as_number</a>(impl_type) ;
  <span class="type"><span class="bold"><strong>static</strong></span> <span class="bold"><strong>bool</strong></span></span> <a class="link" href="time_resolution_traits.html#id403774-bb">is_adapted</a>() ;
  <span class="type"><span class="bold"><strong>static</strong></span> time_resolutions</span> <a class="link" href="time_resolution_traits.html#id403782-bb">resolution</a>() ;
  <span class="type"><span class="bold"><strong>static</strong></span> <span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></span> <a class="link" href="time_resolution_traits.html#id403790-bb">num_fractional_digits</a>() ;
  <span class="type"><span class="bold"><strong>static</strong></span> fractional_seconds_type</span> <a class="link" href="time_resolution_traits.html#id403798-bb">res_adjust</a>() ;
  <span class="type"><span class="bold"><strong>static</strong></span> tick_type</span> 
  <a class="link" href="time_resolution_traits.html#id403806-bb">to_tick_count</a>(hour_type, min_type, sec_type, fractional_seconds_type) ;

  <span class="emphasis"><em>// <a class="link" href="time_resolution_traits.html#id403840-bb">public member functions</a></em></span>
  <span class="type"></span> <a class="link" href="time_resolution_traits.html#id403844-bb">BOOST_STATIC_CONSTANT</a>(boost::int64_t, ticks_per_second = resolution_adjust) ;
  <span class="type"></span> <a class="link" href="time_resolution_traits.html#id577745-bb">BOOST_STATIC_CONSTANT</a>(fractional_seconds_type, 
                         ticks_per_second = resolution_adjust) ;
};</pre></div>
<div class="refsect1" title="Description">
<a name="id828096"></a><h2>Description</h2>
<div class="refsect2" title="time_resolution_traits public static functions">
<a name="id828099"></a><h3>
<a name="id403757-bb"></a><code class="computeroutput">time_resolution_traits</code> public static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="type"><span class="bold"><strong>static</strong></span> fractional_seconds_type</span> <a name="id403761-bb"></a>as_number(impl_type i) ;</pre></li>
<li class="listitem"><pre class="literallayout"><span class="type"><span class="bold"><strong>static</strong></span> <span class="bold"><strong>bool</strong></span></span> <a name="id403774-bb"></a>is_adapted() ;</pre></li>
<li class="listitem"><pre class="literallayout"><span class="type"><span class="bold"><strong>static</strong></span> time_resolutions</span> <a name="id403782-bb"></a>resolution() ;</pre></li>
<li class="listitem"><pre class="literallayout"><span class="type"><span class="bold"><strong>static</strong></span> <span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></span> <a name="id403790-bb"></a>num_fractional_digits() ;</pre></li>
<li class="listitem"><pre class="literallayout"><span class="type"><span class="bold"><strong>static</strong></span> fractional_seconds_type</span> <a name="id403798-bb"></a>res_adjust() ;</pre></li>
<li class="listitem">
<pre class="literallayout"><span class="type"><span class="bold"><strong>static</strong></span> tick_type</span> 
<a name="id403806-bb"></a>to_tick_count(hour_type hours, min_type minutes, sec_type seconds, 
              fractional_seconds_type fs) ;</pre>Any negative argument results in a negative tick_count. </li>
</ol></div>
</div>
<div class="refsect2" title="time_resolution_traits public member functions">
<a name="id828264"></a><h3>
<a name="id403840-bb"></a><code class="computeroutput">time_resolution_traits</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="type"></span> <a name="id403844-bb"></a>BOOST_STATIC_CONSTANT(boost::int64_t, ticks_per_second = resolution_adjust) ;</pre></li>
<li class="listitem"><pre class="literallayout"><span class="type"></span> <a name="id577745-bb"></a>BOOST_STATIC_CONSTANT(fractional_seconds_type, 
                       ticks_per_second = resolution_adjust) ;</pre></li>
</ol></div>
</div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2001-2005 CrystalClear Software, Inc<p>Subject to the Boost Software License, Version 1.0. (See accompanying file
    <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="time_resolution_traits__id429805.html"><img src="../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.time_resolution_traits_hpp"><img src="../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="counted_time_rep.html"><img src="../../../../doc/html/images/next.png" alt="Next"></a>
</div>
</body>
</html>