Imported Upstream version 1.57.0
[platform/upstream/boost.git] / doc / html / boost / date_time / week_functor.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Class template week_functor</title>
5 <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8 <link rel="up" href="../../date_time/doxy.html#header.boost.date_time.adjust_functors_hpp" title="Header &lt;boost/date_time/adjust_functors.hpp&gt;">
9 <link rel="prev" href="month_functor.html" title="Class template month_functor">
10 <link rel="next" href="year_functor.html" title="Class template year_functor">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
15 <td align="center"><a href="../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../more/index.htm">More</a></td>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="month_functor.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.adjust_functors_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="year_functor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="refentry">
26 <a name="boost.date_time.week_functor"></a><div class="titlepage"></div>
27 <div class="refnamediv">
28 <h2><span class="refentrytitle">Class template week_functor</span></h2>
29 <p>boost::date_time::week_functor &#8212; Functor to iterate a over weeks. </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="comment">// In header: &lt;<a class="link" href="../../date_time/doxy.html#header.boost.date_time.adjust_functors_hpp" title="Header &lt;boost/date_time/adjust_functors.hpp&gt;">boost/date_time/adjust_functors.hpp</a>&gt;
33
34 </span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> date_type<span class="special">&gt;</span> 
35 <span class="keyword">class</span> <a class="link" href="week_functor.html" title="Class template week_functor">week_functor</a> <span class="special">{</span>
36 <span class="keyword">public</span><span class="special">:</span>
37   <span class="comment">// types</span>
38   <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">duration_type</span> <a name="boost.date_time.week_functor.duration_type"></a><span class="identifier">duration_type</span><span class="special">;</span>
39   <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">calendar_type</span> <a name="boost.date_time.week_functor.calendar_type"></a><span class="identifier">calendar_type</span><span class="special">;</span>
40
41   <span class="comment">// <a class="link" href="week_functor.html#boost.date_time.week_functorconstruct-copy-destruct">construct/copy/destruct</a></span>
42   <a class="link" href="week_functor.html#idp73618640-bb"><span class="identifier">week_functor</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span>
43
44   <span class="comment">// <a class="link" href="week_functor.html#idp49786384-bb">public member functions</a></span>
45   <span class="identifier">duration_type</span> <a class="link" href="week_functor.html#idp102554224-bb"><span class="identifier">get_offset</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
46   <span class="identifier">duration_type</span> <a class="link" href="week_functor.html#idp53452576-bb"><span class="identifier">get_neg_offset</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
47 <span class="special">}</span><span class="special">;</span></pre></div>
48 <div class="refsect1">
49 <a name="idp181849040"></a><h2>Description</h2>
50 <div class="refsect2">
51 <a name="idp181849456"></a><h3>
52 <a name="boost.date_time.week_functorconstruct-copy-destruct"></a><code class="computeroutput">week_functor</code> 
53         public
54        construct/copy/destruct</h3>
55 <div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="idp73618640-bb"></a><span class="identifier">week_functor</span><span class="special">(</span><span class="keyword">int</span> f<span class="special">)</span><span class="special">;</span></pre></li></ol></div>
56 </div>
57 <div class="refsect2">
58 <a name="idp181856048"></a><h3>
59 <a name="idp49786384-bb"></a><code class="computeroutput">week_functor</code> public member functions</h3>
60 <div class="orderedlist"><ol class="orderedlist" type="1">
61 <li class="listitem"><pre class="literallayout"><span class="identifier">duration_type</span> <a name="idp102554224-bb"></a><span class="identifier">get_offset</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span> d<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
62 <li class="listitem"><pre class="literallayout"><span class="identifier">duration_type</span> <a name="idp53452576-bb"></a><span class="identifier">get_neg_offset</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span> d<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
63 </ol></div>
64 </div>
65 </div>
66 </div>
67 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
68 <td align="left"></td>
69 <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
70     <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>
71 </div></td>
72 </tr></table>
73 <hr>
74 <div class="spirit-nav">
75 <a accesskey="p" href="month_functor.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.adjust_functors_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="year_functor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
76 </div>
77 </body>
78 </html>