Loading...
Searching...
No Matches
ledger::date_specifier_t Class Reference

#include <times.h>

Public Types

typedef date_t::day_of_week_type day_of_week_type
typedef date_t::day_type day_type
typedef date_t::month_type month_type
typedef unsigned short year_type

Public Member Functions

date_t begin () const
 date_specifier_t (const date_specifier_t &other)
 date_specifier_t (const date_t &date, const optional< date_traits_t > &traits=none)
 date_specifier_t (const optional< year_type > &_year=none, const optional< month_type > &_month=none, const optional< day_type > &_day=none, const optional< day_of_week_type > &_wday=none)
date_t end () const
optional< date_duration_timplied_duration () const
bool is_within (const date_t &date) const
string to_string () const
 ~date_specifier_t () throw ()

Protected Attributes

optional< day_typeday
optional< month_typemonth
optional< day_of_week_typewday
optional< year_typeyear

Friends

class date_parser_t

Detailed Description

Definition at line 238 of file times.h.

Member Typedef Documentation

◆ day_of_week_type

typedef date_t::day_of_week_type ledger::date_specifier_t::day_of_week_type

Definition at line 250 of file times.h.

◆ day_type

typedef date_t::day_type ledger::date_specifier_t::day_type

Definition at line 249 of file times.h.

◆ month_type

typedef date_t::month_type ledger::date_specifier_t::month_type

Definition at line 248 of file times.h.

◆ year_type

typedef unsigned short ledger::date_specifier_t::year_type

Definition at line 246 of file times.h.

Constructor & Destructor Documentation

◆ date_specifier_t() [1/3]

ledger::date_specifier_t::date_specifier_t ( const optional< year_type > & _year = none,
const optional< month_type > & _month = none,
const optional< day_type > & _day = none,
const optional< day_of_week_type > & _wday = none )
inline

Definition at line 259 of file times.h.

References date_specifier_t(), day, month, TRACE_CTOR, wday, and year.

Referenced by date_specifier_t(), date_specifier_t(), date_specifier_t(), and ~date_specifier_t().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ date_specifier_t() [2/3]

ledger::date_specifier_t::date_specifier_t ( const date_t & date,
const optional< date_traits_t > & traits = none )
inline

Definition at line 267 of file times.h.

References date_specifier_t(), day, month, TRACE_CTOR, and year.

Here is the call graph for this function:

◆ date_specifier_t() [3/3]

ledger::date_specifier_t::date_specifier_t ( const date_specifier_t & other)
inline

Definition at line 278 of file times.h.

References date_specifier_t(), day, month, TRACE_CTOR, wday, and year.

Here is the call graph for this function:

◆ ~date_specifier_t()

ledger::date_specifier_t::~date_specifier_t ( )
throw ( )
inline

Definition at line 283 of file times.h.

References date_specifier_t(), and TRACE_DTOR.

Here is the call graph for this function:

Member Function Documentation

◆ begin()

date_t ledger::date_specifier_t::begin ( ) const

Referenced by is_within().

Here is the caller graph for this function:

◆ end()

date_t ledger::date_specifier_t::end ( ) const

Referenced by is_within().

Here is the caller graph for this function:

◆ implied_duration()

optional< date_duration_t > ledger::date_specifier_t::implied_duration ( ) const
inline

◆ is_within()

bool ledger::date_specifier_t::is_within ( const date_t & date) const
inline

Definition at line 290 of file times.h.

References begin(), and end().

Here is the call graph for this function:

◆ to_string()

string ledger::date_specifier_t::to_string ( ) const
inline

Definition at line 305 of file times.h.

References day, month, wday, and year.

◆ date_parser_t

friend class date_parser_t
friend

Definition at line 240 of file times.h.

References date_parser_t.

Referenced by date_parser_t.

Member Data Documentation

◆ day

optional<day_type> ledger::date_specifier_t::day
protected

◆ month

optional<month_type> ledger::date_specifier_t::month
protected

◆ wday

optional<day_of_week_type> ledger::date_specifier_t::wday
protected

Definition at line 256 of file times.h.

Referenced by date_specifier_t(), date_specifier_t(), implied_duration(), and to_string().

◆ year

optional<year_type> ledger::date_specifier_t::year
protected

The documentation for this class was generated from the following file: