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

What a zone source knows about a time zone name; see info(). More...

#include <temporal_types.h>

Public Member Functions

bool has (Tag tag) const

Public Attributes

std::string primary_name
bool is_link = false
 Whether the name is a link to primary_name.
uint16_t rank = 0
 The name's position on the shrink ladder; UTC is 0.
std::vector< Tag > tags
 The zone's features, in ALL_TAGS order.

Detailed Description

What a zone source knows about a time zone name; see info().

Member Function Documentation

◆ has()

bool hegel::generators::temporal::ZoneInfo::has ( Tag tag) const
inline

Whether the zone has a feature.

Parameters
tagThe feature to look for.
Returns
true when tags holds tag.

Member Data Documentation

◆ primary_name

std::string hegel::generators::temporal::ZoneInfo::primary_name

The zone the name resolves to: the name itself unless it is a link.


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