📄 date_time_autodoc.boostbook
字号:
</method>
<method name="days" cv="const">
<type>duration_rep_type</type>
<purpose>returns days as value, not object. </purpose>
</method>
<method name="operator==" cv="const">
<type>bool</type>
<parameter name="rhs">
<paramtype>const <classname>date_duration</classname> &</paramtype>
</parameter>
<purpose>Equality. </purpose>
</method>
<method name="operator<" cv="const">
<type>bool</type>
<parameter name="rhs">
<paramtype>const <classname>date_duration</classname> &</paramtype>
</parameter>
<purpose>Less. </purpose>
</method>
<method name="operator-=" cv="">
<type>
<classname>date_duration</classname>
</type>
<parameter name="rhs">
<paramtype>const <classname>date_duration</classname> &</paramtype>
</parameter>
<purpose>Subtract another duration -- result is signed. </purpose>
</method>
<method name="operator+=" cv="">
<type>
<classname>date_duration</classname>
</type>
<parameter name="rhs">
<paramtype>const <classname>date_duration</classname> &</paramtype>
</parameter>
<purpose>Add a duration -- result is signed. </purpose>
</method>
<method name="operator-" cv="const">
<type>
<classname>date_duration</classname>
</type>
<purpose>unary- Allows for dd = -date_duration(2); -> dd == -2 </purpose>
</method>
<method name="operator/=" cv="">
<type><classname>date_duration</classname>< duration_rep_traits ></type>
<parameter name="divisor">
<paramtype>int</paramtype>
</parameter>
<purpose>Division operations on a duration with an integer. </purpose>
</method>
<method name="operator/" cv="">
<type><classname>date_duration</classname>< duration_rep_traits ></type>
<parameter name="divisor">
<paramtype>int</paramtype>
</parameter>
</method>
<method name="is_negative" cv="const">
<type>bool</type>
<purpose>return sign information </purpose>
</method>
</method-group>
<constructor>
<parameter name="day_count">
<paramtype>duration_rep</paramtype>
</parameter>
<purpose>Construct from a day count. </purpose>
</constructor>
<constructor>
<parameter name="sv">
<paramtype>special_values</paramtype>
</parameter>
<description>
<para>construct from special_values - only works when instantiated with duration_traits_adapted </para>
</description>
</constructor>
<constructor>
<parameter name="other">
<paramtype>const <classname>date_duration</classname>< duration_rep_traits > &</paramtype>
</parameter>
<purpose>Construct from another date_duration (Copy Constructor). </purpose>
</constructor>
<method-group name="public static functions">
<method name="unit" cv="">
<type>
<classname>date_duration</classname>
</type>
<purpose>Returns the smallest duration -- used by to calculate 'end'. </purpose>
</method>
</method-group>
</class>
<struct name="duration_traits_long">
<description>
<para>Struct for instantiating date_duration with <emphasis role="bold">NO</emphasis> special values functionality. Allows for transparent implementation of either date_duration<long> or date_duration<int_adapter<long> > </para>
</description>
<typedef name="int_type">
<type>long</type>
</typedef>
<typedef name="impl_type">
<type>long</type>
</typedef>
<method-group name="public static functions">
<method name="as_number" cv="">
<type>int_type</type>
<parameter name="i">
<paramtype>impl_type</paramtype>
</parameter>
</method>
</method-group>
</struct>
<struct name="duration_traits_adapted">
<description>
<para>Struct for instantiating date_duration <emphasis role="bold">WITH</emphasis> special values functionality. Allows for transparent implementation of either date_duration<long> or date_duration<int_adapter<long> > </para>
</description>
<typedef name="int_type">
<type>long</type>
</typedef>
<typedef name="impl_type">
<type><classname>boost::date_time::int_adapter</classname>< long ></type>
</typedef>
<method-group name="public static functions">
<method name="as_number" cv="">
<type>int_type</type>
<parameter name="i">
<paramtype>
<classname>impl_type</classname>
</paramtype>
</parameter>
</method>
</method-group>
</struct>
</namespace>
</namespace>
</header>
<header name="boost/date_time/date_duration_types.hpp">
<namespace name="boost">
<namespace name="date_time">
<class name="weeks_duration">
<template>
<template-type-parameter name="duration_config"/>
</template>
<inherit access="public">boost::date_time::date_duration< duration_config ></inherit>
<purpose>Additional duration type that represents a number of n*7 days. </purpose>
<method-group name="public member functions"/>
<constructor>
<parameter name="w">
<paramtype>typename duration_config::impl_type</paramtype>
</parameter>
</constructor>
<constructor>
<parameter name="sv">
<paramtype>special_values</paramtype>
</parameter>
</constructor>
</class>
<class name="months_duration">
<template>
<template-type-parameter name="base_config"/>
</template>
<purpose>additional duration type that represents a logical month </purpose>
<description>
<para>A logical month enables things like: "date(2002,Mar,2) + months(2) -> 2002-May2". If the date is a last day-of-the-month, the result will also be a last-day-of-the-month. </para>
</description>
<method-group name="public member functions">
<method name="number_of_months" cv="const">
<type>int_rep</type>
</method>
<method name="get_neg_offset" cv="const">
<type>duration_type</type>
<parameter name="d">
<paramtype>const date_type &</paramtype>
</parameter>
<purpose>returns a negative duration </purpose>
</method>
<method name="get_offset" cv="const">
<type>duration_type</type>
<parameter name="d">
<paramtype>const date_type &</paramtype>
</parameter>
</method>
<method name="operator==" cv="const">
<type>bool</type>
<parameter name="rhs">
<paramtype>const <classname>months_type</classname> &</paramtype>
</parameter>
</method>
<method name="operator!=" cv="const">
<type>bool</type>
<parameter name="rhs">
<paramtype>const <classname>months_type</classname> &</paramtype>
</parameter>
</method>
<method name="operator+" cv="const">
<type>
<classname>months_type</classname>
</type>
<parameter name="rhs">
<paramtype>const <classname>months_type</classname> &</paramtype>
</parameter>
</method>
<method name="operator+=" cv="">
<type><classname>months_type</classname> &</type>
<parameter name="rhs">
<paramtype>const <classname>months_type</classname> &</paramtype>
</parameter>
</method>
<method name="operator-" cv="const">
<type>
<classname>months_type</classname>
</type>
<parameter name="rhs">
<paramtype>const <classname>months_type</classname> &</paramtype>
</parameter>
</method>
<method name="operator-=" cv="">
<type><classname>months_type</classname> &</type>
<parameter name="rhs">
<paramtype>const <classname>months_type</classname> &</paramtype>
</parameter>
</method>
<method name="operator *" cv="const">
<type>
<classname>months_type</classname>
</type>
<parameter name="rhs">
<paramtype>const int_type</paramtype>
</parameter>
</method>
<method name="operator *=" cv="">
<type><classname>months_type</classname> &</type>
<parameter name="rhs">
<paramtype>const int_type</paramtype>
</parameter>
</method>
<method name="operator/" cv="const">
<type>
<classname>months_type</classname>
</type>
<parameter name="rhs">
<paramtype>const int_type</paramtype>
</parameter>
</method>
<method name="operator/=" cv="">
<type><classname>months_type</classname> &</type>
<parameter name="rhs">
<paramtype>const int_type</paramtype>
</parameter>
</method>
<method name="operator+" cv="const">
<type>
<classname>months_type</classname>
</type>
<parameter name="y">
<paramtype>const <classname>years_type</classname> &</paramtype>
</parameter>
</method>
<method name="operator+=" cv="">
<type><classname>months_type</classname> &</type>
<parameter name="y">
<paramtype>const <classname>years_type</classname> &</paramtype>
</parameter>
</method>
<method name="operator-" cv="const">
<type>
<classname>months_type</classname>
</type>
<parameter name="y">
<paramtype>const <classname>years_type</classname> &</paramtype>
</parameter>
</method>
<method name="operator-=" cv="">
<type><classname>months_type</classname> &</type>
<parameter name="y">
<paramtype>const <classname>years_type</classname> &</paramtype>
</parameter>
</method>
</method-group>
<constructor>
<parameter name="num">
<paramtype>int_rep</paramtype>
</parameter>
</constructor>
<constructor>
<parameter name="sv">
<paramtype>special_values</paramtype>
</parameter>
</constructor>
</class>
<class name="years_duration">
<template>
<template-type-parameter name="base_config"/>
</template>
<purpose>additional duration type that represents a logical year </purpose>
<description>
<para>A logical year enables things like: "date(2002,Mar,2) + years(2) -> 2004-Mar-2". If the date is a last day-of-the-month, the result will also be a last-day-of-the-month (ie date(2001-Feb-28) + years(3) -> 2004-Feb-29). </para>
</description>
<method-group name="public member functions">
<method name="number_of_years" cv="const">
<type>int_rep</type>
</method>
<method name="get_neg_offset" cv="const">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -