Hegel 0.18.3
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::generators::temporal::InferRule Struct Reference

A yearly rule the engine infers from the transitions of last_year and the year before it. More...

#include <zone_source.h>

Public Member Functions

 InferRule (int32_t year)

Public Attributes

int32_t last_year
 The last year the transitions cover, in [MIN_YEAR, MAX_YEAR].

Detailed Description

A yearly rule the engine infers from the transitions of last_year and the year before it.

Neither year changing anything gives a fixed offset; each changing twice, between the same two types, on dates one rule names in both years gives that rule; anything else holds the last type.

Constructor & Destructor Documentation

◆ InferRule()

hegel::generators::temporal::InferRule::InferRule ( int32_t year)
inlineexplicit
Parameters
yearThe last year the transitions cover.

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