1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
---|
4 | <title>Class template time_resolution_traits</title> |
---|
5 | <link rel="stylesheet" href="boostbook.css" type="text/css"> |
---|
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.69.1"> |
---|
7 | <link rel="start" href="index.html" title="The Boost C++ Libraries"> |
---|
8 | <link rel="up" href="date_time/doxy.html#id2463060" title="Header <boost/date_time/time_resolution_traits.hpp>"> |
---|
9 | <link rel="prev" href="id2405655.html" title="Struct time_resolution_traits_adapted64_impl"> |
---|
10 | <link rel="next" href="counted_time_rep.html" title="Struct template counted_time_rep"> |
---|
11 | </head> |
---|
12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
---|
13 | <table cellpadding="2" width="100%"> |
---|
14 | <td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../boost.png"></td> |
---|
15 | <td align="center"><a href="../../index.htm">Home</a></td> |
---|
16 | <td align="center"><a href="../../libs/libraries.htm">Libraries</a></td> |
---|
17 | <td align="center"><a href="../../people/people.htm">People</a></td> |
---|
18 | <td align="center"><a href="../../more/faq.htm">FAQ</a></td> |
---|
19 | <td align="center"><a href="../../more/index.htm">More</a></td> |
---|
20 | </table> |
---|
21 | <hr> |
---|
22 | <div class="spirit-nav"> |
---|
23 | <a accesskey="p" href="id2405655.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2463060"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="counted_time_rep.html"><img src="images/next.png" alt="Next"></a> |
---|
24 | </div> |
---|
25 | <div class="refentry" lang="en"> |
---|
26 | <a name="time_resolution_traits"></a><div class="titlepage"></div> |
---|
27 | <div class="refnamediv"> |
---|
28 | <h2><span class="refentrytitle">Class template time_resolution_traits</span></h2> |
---|
29 | <p>boost::date_time::time_resolution_traits — </p> |
---|
30 | </div> |
---|
31 | <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> |
---|
32 | <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> frac_sec_type, time_resolutions res, |
---|
33 | #<span class="bold"><strong>if</strong></span>(defined(BOOST_MSVC)&&(_MSC_VER<=1200)) boost::int64_t resolution_adjust, |
---|
34 | #<span class="bold"><strong>else</strong></span> <span class="bold"><strong>typename</strong></span> frac_sec_type::int_type resolution_adjust, |
---|
35 | #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> |
---|
36 | <span class="bold"><strong>class</strong></span> time_resolution_traits { |
---|
37 | <span class="bold"><strong>public</strong></span>: |
---|
38 | <span class="emphasis"><em>// types</em></span> |
---|
39 | <span class="bold"><strong>typedef</strong></span> frac_sec_type::int_type fractional_seconds_type; |
---|
40 | <span class="bold"><strong>typedef</strong></span> frac_sec_type::int_type tick_type; |
---|
41 | <span class="bold"><strong>typedef</strong></span> frac_sec_type::impl_type impl_type; |
---|
42 | <span class="bold"><strong>typedef</strong></span> v_type day_type; |
---|
43 | <span class="bold"><strong>typedef</strong></span> v_type hour_type; |
---|
44 | <span class="bold"><strong>typedef</strong></span> v_type min_type; |
---|
45 | <span class="bold"><strong>typedef</strong></span> v_type sec_type; |
---|
46 | |
---|
47 | <span class="emphasis"><em>// <a href="time_resolution_traits.html#id2443516-bb">public member functions</a></em></span> |
---|
48 | <span class="type"></span> <a href="time_resolution_traits.html#id2443520-bb">BOOST_STATIC_CONSTANT</a>(<span class="bold"><strong>int</strong></span>, ticks_per_second = resolution_adjust) ; |
---|
49 | |
---|
50 | <span class="emphasis"><em>// <a href="time_resolution_traits.html#id2443557-bb">public static functions</a></em></span> |
---|
51 | <span class="type">frac_sec_type::int_type</span> <a href="time_resolution_traits.html#id2443561-bb">as_number</a>(<span class="bold"><strong>typename</strong></span> frac_sec_type::impl_type) ; |
---|
52 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="time_resolution_traits.html#id2443583-bb">is_adapted</a>() ; |
---|
53 | <span class="type">time_resolutions</span> <a href="time_resolution_traits.html#id2443596-bb">resolution</a>() ; |
---|
54 | <span class="type"><span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></span> <a href="time_resolution_traits.html#id2443608-bb">num_fractional_digits</a>() ; |
---|
55 | <span class="type">fractional_seconds_type</span> <a href="time_resolution_traits.html#id2443620-bb">res_adjust</a>() ; |
---|
56 | <span class="type">tick_type</span> <a href="time_resolution_traits.html#id2443633-bb">to_tick_count</a>(hour_type, min_type, sec_type, |
---|
57 | fractional_seconds_type) ; |
---|
58 | };</pre></div> |
---|
59 | <div class="refsect1" lang="en"> |
---|
60 | <a name="id2661062"></a><h2>Description</h2> |
---|
61 | <div class="refsect2" lang="en"> |
---|
62 | <a name="id2661065"></a><h3> |
---|
63 | <a name="id2443516-bb"></a><code class="computeroutput">time_resolution_traits</code> public member functions</h3> |
---|
64 | <div class="orderedlist"><ol type="1"><li><pre class="literallayout"><span class="type"></span> <a name="id2443520-bb"></a>BOOST_STATIC_CONSTANT(<span class="bold"><strong>int</strong></span> , ticks_per_second = resolution_adjust) ;</pre></li></ol></div> |
---|
65 | </div> |
---|
66 | <div class="refsect2" lang="en"> |
---|
67 | <a name="id2661106"></a><h3> |
---|
68 | <a name="id2443557-bb"></a><code class="computeroutput">time_resolution_traits</code> public static functions</h3> |
---|
69 | <div class="orderedlist"><ol type="1"> |
---|
70 | <li><pre class="literallayout"><span class="type">frac_sec_type::int_type</span> <a name="id2443561-bb"></a>as_number(<span class="bold"><strong>typename</strong></span> frac_sec_type::impl_type i) ;</pre></li> |
---|
71 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2443583-bb"></a>is_adapted() ;</pre></li> |
---|
72 | <li><pre class="literallayout"><span class="type">time_resolutions</span> <a name="id2443596-bb"></a>resolution() ;</pre></li> |
---|
73 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></span> <a name="id2443608-bb"></a>num_fractional_digits() ;</pre></li> |
---|
74 | <li><pre class="literallayout"><span class="type">fractional_seconds_type</span> <a name="id2443620-bb"></a>res_adjust() ;</pre></li> |
---|
75 | <li><pre class="literallayout"><span class="type">tick_type</span> <a name="id2443633-bb"></a>to_tick_count(hour_type hours, min_type minutes, sec_type seconds, |
---|
76 | fractional_seconds_type fs) ;</pre></li> |
---|
77 | </ol></div> |
---|
78 | </div> |
---|
79 | </div> |
---|
80 | </div> |
---|
81 | <table width="100%"><tr> |
---|
82 | <td align="left"></td> |
---|
83 | <td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td> |
---|
84 | </tr></table> |
---|
85 | <hr> |
---|
86 | <div class="spirit-nav"> |
---|
87 | <a accesskey="p" href="id2405655.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2463060"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="counted_time_rep.html"><img src="images/next.png" alt="Next"></a> |
---|
88 | </div> |
---|
89 | </body> |
---|
90 | </html> |
---|