NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
Posix::detail::rule Class Reference

#include <ptz.h>

Collaboration diagram for Posix::detail::rule:

Public Member Functions

 rule ()
 
bool ok () const
 
date::local_seconds operator() (date::year y) const
 
std::string to_string () const
 

Private Types

enum  { off , J , M , N }
 

Private Attributes

date::month m_
 
date::weekday wd_
 
unsigned short n_: 14
 
unsigned short mode_: 2
 
std::chrono::duration< std::int32_t > time_ = std::chrono::hours{2}
 

Friends

std::ostream & operator<< (std::ostream &os, const rule &r)
 
unsigned read_date (const string_t &s, unsigned i, rule &r)
 
bool operator== (const rule &x, const rule &y)
 

Detailed Description

Definition at line 79 of file ptz.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
off 

Definition at line 81 of file ptz.h.

Constructor & Destructor Documentation

◆ rule()

Posix::detail::rule::rule ( )
inline

Definition at line 90 of file ptz.h.

Member Function Documentation

◆ ok()

bool Posix::detail::rule::ok ( ) const
inline

Definition at line 92 of file ptz.h.

References mode_, and off.

Referenced by Posix::time_zone::get_info(), and Posix::time_zone::name().

◆ operator()()

date::local_seconds Posix::detail::rule::operator() ( date::year  y) const
inline

Definition at line 128 of file ptz.h.

References date::year::is_leap(), J, date::January, M, m_, mode_, N, n_, time_, and wd_.

Here is the call graph for this function:

◆ to_string()

std::string Posix::detail::rule::to_string ( ) const
inline

Definition at line 155 of file ptz.h.

References date::weekday::c_encoding(), J, M, m_, mode_, N, n_, off, time_, and wd_.

Referenced by Posix::time_zone::name().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 210 of file ptz.h.

◆ operator==

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

Definition at line 103 of file ptz.h.

◆ read_date

unsigned read_date ( const string_t s,
unsigned  i,
rule r 
)
friend

Definition at line 670 of file ptz.h.

Member Data Documentation

◆ m_

date::month Posix::detail::rule::m_
private

Definition at line 83 of file ptz.h.

Referenced by operator()(), and to_string().

◆ mode_

unsigned short Posix::detail::rule::mode_
private

Definition at line 86 of file ptz.h.

Referenced by ok(), operator()(), and to_string().

◆ n_

unsigned short Posix::detail::rule::n_
private

Definition at line 85 of file ptz.h.

Referenced by operator()(), and to_string().

◆ time_

std::chrono::duration<std::int32_t> Posix::detail::rule::time_ = std::chrono::hours{2}
private

Definition at line 87 of file ptz.h.

Referenced by operator()(), and to_string().

◆ wd_

date::weekday Posix::detail::rule::wd_
private

Definition at line 84 of file ptz.h.

Referenced by operator()(), and to_string().


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