Dynalib Utils
Public Member Functions | Static Public Member Functions | Friends | List of all members
date::detail::Rule Class Reference

#include <tz_private.h>

Public Member Functions

 Rule ()=default
 
 Rule (const std::string &s)
 
 Rule (const Rule &r, date::year starting_year, date::year ending_year)
 
const std::string & name () const
 
const std::string & abbrev () const
 
const MonthDayTimemdt () const
 
const date::yearstarting_year () const
 
const date::yearending_year () const
 
const std::chrono::minutes & save () const
 

Static Public Member Functions

static void split_overlaps (std::vector< Rule > &rules)
 

Friends

bool operator== (const Rule &x, const Rule &y)
 
bool operator< (const Rule &x, const Rule &y)
 
bool operator== (const Rule &x, const date::year &y)
 
bool operator< (const Rule &x, const date::year &y)
 
bool operator== (const date::year &x, const Rule &y)
 
bool operator< (const date::year &x, const Rule &y)
 
bool operator== (const Rule &x, const std::string &y)
 
bool operator< (const Rule &x, const std::string &y)
 
bool operator== (const std::string &x, const Rule &y)
 
bool operator< (const std::string &x, const Rule &y)
 
std::ostream & operator<< (std::ostream &os, const Rule &r)
 

Constructor & Destructor Documentation

◆ Rule() [1/3]

date::detail::Rule::Rule ( )
default

◆ Rule() [2/3]

date::detail::Rule::Rule ( const std::string &  s)
explicit

◆ Rule() [3/3]

date::detail::Rule::Rule ( const Rule r,
date::year  starting_year,
date::year  ending_year 
)

Member Function Documentation

◆ abbrev()

const std::string& date::detail::Rule::abbrev ( ) const
inline

◆ ending_year()

const date::year& date::detail::Rule::ending_year ( ) const
inline

◆ mdt()

const MonthDayTime& date::detail::Rule::mdt ( ) const
inline

◆ name()

const std::string& date::detail::Rule::name ( ) const
inline

◆ save()

const std::chrono::minutes& date::detail::Rule::save ( ) const
inline

◆ split_overlaps()

void date::detail::Rule::split_overlaps ( std::vector< Rule > &  rules)
static

◆ starting_year()

const date::year& date::detail::Rule::starting_year ( ) const
inline

Friends And Related Function Documentation

◆ operator< [1/5]

bool operator< ( const Rule x,
const Rule y 
)
friend

◆ operator< [2/5]

bool operator< ( const Rule x,
const date::year y 
)
friend

◆ operator< [3/5]

bool operator< ( const date::year x,
const Rule y 
)
friend

◆ operator< [4/5]

bool operator< ( const Rule x,
const std::string &  y 
)
friend

◆ operator< [5/5]

bool operator< ( const std::string &  x,
const Rule y 
)
friend

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Rule r 
)
friend

◆ operator== [1/5]

bool operator== ( const Rule x,
const Rule y 
)
friend

◆ operator== [2/5]

bool operator== ( const Rule x,
const date::year y 
)
friend

◆ operator== [3/5]

bool operator== ( const date::year x,
const Rule y 
)
friend

◆ operator== [4/5]

bool operator== ( const Rule x,
const std::string &  y 
)
friend

◆ operator== [5/5]

bool operator== ( const std::string &  x,
const Rule y 
)
friend

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