![]() |
Biodata Generator 1.0.0
Procedural human physical characteristics generation for C++23
|
Return type for biodata generation, holding all physical characteristics. More...
#include <biodatagen.hpp>
Public Member Functions | |
| std::uint64_t | seed () const |
| Retrieve the random seed used to generate this biodata. | |
| std::string | to_string () const |
| Human-readable summary string. | |
| operator std::string () const | |
| Implicit conversion to std::string. | |
Static Public Member Functions | |
| static std::string_view | eye_color_str (eye_color c) |
| Eye colour label. | |
| static std::string_view | hair_color_str (hair_color c) |
| Hair colour label. | |
| static std::string_view | skin_type_str (skin_type t) |
| Skin type label. | |
| static std::string_view | blood_type_str (blood_type t) |
| Blood type label. | |
| static std::string_view | handedness_str (handedness h) |
| Handedness label. | |
| static std::string_view | sex_str (sex s) |
| Biological sex label. | |
Public Attributes | |
| std::string | country_code |
| ISO 3166-1 alpha-2 code. | |
| sex | bio_sex {sex::male} |
| Biological sex. | |
| double | height_cm {0.0} |
| Height in centimetres. | |
| double | weight_kg {0.0} |
| Weight in kilograms. | |
| double | bmi {0.0} |
| Body mass index (kg/m²). | |
| eye_color | eyes {eye_color::brown} |
| Eye colour. | |
| hair_color | hair {hair_color::black} |
| Hair colour. | |
| skin_type | skin {skin_type::III} |
| Fitzpatrick skin type. | |
| blood_type | blood {blood_type::O_pos} |
| Blood type (ABO/Rh). | |
| handedness | hand {handedness::right} |
| Handedness. | |
Friends | |
| class | bdg |
| std::ostream & | operator<< (std::ostream &os, const biodata &b) |
| Stream the summary to an output stream. | |
Return type for biodata generation, holding all physical characteristics.
Supports implicit conversion to std::string (summary line) and streaming via operator<<.
Definition at line 107 of file biodatagen.hpp.
|
inlinestatic |
Blood type label.
Definition at line 195 of file biodatagen.hpp.
|
inlinestatic |
Eye colour label.
Definition at line 155 of file biodatagen.hpp.
|
inlinestatic |
Hair colour label.
Definition at line 167 of file biodatagen.hpp.
|
inlinestatic |
Handedness label.
Definition at line 212 of file biodatagen.hpp.
|
inline |
Implicit conversion to std::string.
Definition at line 140 of file biodatagen.hpp.
|
inline |
Retrieve the random seed used to generate this biodata.
Definition at line 122 of file biodatagen.hpp.
|
inlinestatic |
Biological sex label.
Definition at line 223 of file biodatagen.hpp.
|
inlinestatic |
Skin type label.
Definition at line 180 of file biodatagen.hpp.
|
inline |
Human-readable summary string.
Definition at line 125 of file biodatagen.hpp.
|
friend |
Definition at line 235 of file biodatagen.hpp.
|
friend |
Stream the summary to an output stream.
Definition at line 146 of file biodatagen.hpp.
| sex dasmig::biodata::bio_sex {sex::male} |
Biological sex.
Definition at line 111 of file biodatagen.hpp.
| blood_type dasmig::biodata::blood {blood_type::O_pos} |
Blood type (ABO/Rh).
Definition at line 118 of file biodatagen.hpp.
| double dasmig::biodata::bmi {0.0} |
Body mass index (kg/m²).
Definition at line 114 of file biodatagen.hpp.
| std::string dasmig::biodata::country_code |
ISO 3166-1 alpha-2 code.
Definition at line 110 of file biodatagen.hpp.
| eye_color dasmig::biodata::eyes {eye_color::brown} |
Eye colour.
Definition at line 115 of file biodatagen.hpp.
| hair_color dasmig::biodata::hair {hair_color::black} |
Hair colour.
Definition at line 116 of file biodatagen.hpp.
| handedness dasmig::biodata::hand {handedness::right} |
Handedness.
Definition at line 119 of file biodatagen.hpp.
| double dasmig::biodata::height_cm {0.0} |
Height in centimetres.
Definition at line 112 of file biodatagen.hpp.
| skin_type dasmig::biodata::skin {skin_type::III} |
Fitzpatrick skin type.
Definition at line 117 of file biodatagen.hpp.
| double dasmig::biodata::weight_kg {0.0} |
Weight in kilograms.
Definition at line 113 of file biodatagen.hpp.