Relationship Generator 1.2.2
Believable families around a person: parents, siblings, partners and children, with ages and names for C++23
Loading...
Searching...
No Matches
dasmig::known_person Struct Reference

Someone the caller already knows: used to build the family of a member of a family that exists, so that both agree. More...

#include <relgen.hpp>

Public Attributes

sex bio_sex {sex::male}
 Biological sex.
 
std::chrono::year_month_day birth {}
 Date of birth.
 
std::optional< std::chrono::year_month_day > death {}
 Date of death, for the dead. // NOLINT(readability-redundant-member-init)
 
std::optional< person_name > name {}
 The name, or drawn to match the relatives'. // NOLINT(readability-redundant-member-init)
 
std::vector< known_person > parents {}
 This person's own parents, when known: the anchor's grandparents (at most one of each sex). // NOLINT(readability-redundant-member-init)
 

Detailed Description

Someone the caller already knows: used to build the family of a member of a family that exists, so that both agree.

A person who is alive has no death; one who died before the reference date has it.

Definition at line 62 of file relgen.hpp.

Member Data Documentation

◆ bio_sex

sex dasmig::known_person::bio_sex {sex::male}

Biological sex.

Definition at line 64 of file relgen.hpp.

◆ birth

std::chrono::year_month_day dasmig::known_person::birth {}

Date of birth.

Definition at line 65 of file relgen.hpp.

◆ death

std::optional<std::chrono::year_month_day> dasmig::known_person::death {}

Date of death, for the dead. // NOLINT(readability-redundant-member-init)

Definition at line 66 of file relgen.hpp.

◆ name

std::optional<person_name> dasmig::known_person::name {}

The name, or drawn to match the relatives'. // NOLINT(readability-redundant-member-init)

Definition at line 67 of file relgen.hpp.

◆ parents

std::vector<known_person> dasmig::known_person::parents {}

This person's own parents, when known: the anchor's grandparents (at most one of each sex). // NOLINT(readability-redundant-member-init)

Definition at line 68 of file relgen.hpp.


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