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 237 of file times.h.

Member Typedef Documentation

◆ day_of_week_type

Definition at line 249 of file times.h.

◆ day_type

Definition at line 248 of file times.h.

◆ month_type

Definition at line 247 of file times.h.

◆ year_type

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 258 of file times.h.

References TRACE_CTOR.

◆ 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 266 of file times.h.

References day, ledger::downcast(), 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 277 of file times.h.

References TRACE_CTOR.

◆ ~date_specifier_t()

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

Definition at line 282 of file times.h.

References TRACE_DTOR.

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

Definition at line 293 of file times.h.

References day, ledger::date_duration_t::DAYS, ledger::downcast(), month, ledger::date_duration_t::MONTHS, wday, year, and ledger::date_duration_t::YEARS.

+ Here is the call graph for this function:

◆ is_within()

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

Definition at line 289 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 304 of file times.h.

References day, month, wday, and year.

Friends And Related Symbol Documentation

◆ date_parser_t

friend class date_parser_t
friend

Definition at line 239 of file times.h.

Member Data Documentation

◆ day

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

Definition at line 254 of file times.h.

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

◆ month

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

Definition at line 253 of file times.h.

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

◆ wday

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

Definition at line 255 of file times.h.

Referenced by implied_duration(), and to_string().

◆ year

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

Definition at line 252 of file times.h.

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


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