|
Relationship Generator 1.2.2
Believable families around a person: parents, siblings, partners and children, with ages and names for C++23
|
A person in a family: who they are to the anchor, their name and when they live. More...
#include <relgen.hpp>
Public Attributes | |
| std::size_t | id {0} |
| Index in family::members. | |
| relation | role {relation::anchor} |
| How the person is related to the anchor. | |
| sex | bio_sex {sex::male} |
| Biological sex. | |
| std::string | given |
| Given name; empty without names. | |
| std::string | patronymic |
| Patronymic, for the cultures that have one. | |
| std::string | family |
| Family name (both of a double surname). | |
| std::string | name |
| The full name, in the culture's order. | |
| std::chrono::year_month_day | birth {} |
| Date of birth. | |
| bool | twin {false} |
| Born on the same day as a full sibling (or the anchor's). | |
| bool | alive {true} |
| Alive at the reference date. | |
| std::uint8_t | age {0} |
| Age in completed years at the reference date, or at death. | |
| std::optional< std::chrono::year_month_day > | death {} |
| Date of death, for the dead. // NOLINT(readability-redundant-member-init) | |
A person in a family: who they are to the anchor, their name and when they live.
Definition at line 228 of file relgen.hpp.
| std::uint8_t dasmig::person::age {0} |
Age in completed years at the reference date, or at death.
Definition at line 240 of file relgen.hpp.
| bool dasmig::person::alive {true} |
Alive at the reference date.
Definition at line 239 of file relgen.hpp.
| sex dasmig::person::bio_sex {sex::male} |
Biological sex.
Definition at line 232 of file relgen.hpp.
| std::chrono::year_month_day dasmig::person::birth {} |
Date of birth.
Definition at line 237 of file relgen.hpp.
| std::optional<std::chrono::year_month_day> dasmig::person::death {} |
Date of death, for the dead. // NOLINT(readability-redundant-member-init)
Definition at line 241 of file relgen.hpp.
| std::string dasmig::person::family |
Family name (both of a double surname).
Definition at line 235 of file relgen.hpp.
| std::string dasmig::person::given |
Given name; empty without names.
Definition at line 233 of file relgen.hpp.
| std::size_t dasmig::person::id {0} |
Index in family::members.
Definition at line 230 of file relgen.hpp.
| std::string dasmig::person::name |
The full name, in the culture's order.
Definition at line 236 of file relgen.hpp.
| std::string dasmig::person::patronymic |
Patronymic, for the cultures that have one.
Definition at line 234 of file relgen.hpp.
| relation dasmig::person::role {relation::anchor} |
How the person is related to the anchor.
Definition at line 231 of file relgen.hpp.
| bool dasmig::person::twin {false} |
Born on the same day as a full sibling (or the anchor's).
Definition at line 238 of file relgen.hpp.