![]() |
Biodata Generator 1.0.0
Procedural human physical characteristics generation for C++23
|
Biodata generator that produces demographically plausible human physical characteristics using country-level population statistics. More...
#include <biodatagen.hpp>
Public Member Functions | |
| bdg ()=default | |
| Default constructor — creates an empty generator with no data. | |
| bdg (const bdg &)=delete | |
| bdg & | operator= (const bdg &)=delete |
| bdg (bdg &&) noexcept=default | |
| bdg & | operator= (bdg &&) noexcept=default |
| biodata | get_biodata (std::string_view cca2) |
| Generate random biodata for a specific country. | |
| biodata | get_biodata (std::string_view cca2, std::uint64_t call_seed) const |
| Generate deterministic biodata for a specific country. | |
| biodata | get_biodata () |
| Generate random biodata from a random country. | |
| biodata | get_biodata (std::uint64_t call_seed) const |
| Generate deterministic biodata from a random country. | |
| biodata | get_biodata (std::string_view cca2, sex bio_sex) |
| Generate random biodata with a predetermined sex. | |
| biodata | get_biodata (std::string_view cca2, sex bio_sex, std::uint64_t call_seed) const |
| Generate deterministic biodata with a predetermined sex. | |
| biodata | get_biodata (sex bio_sex) |
| Generate random biodata from a random country with a predetermined sex. | |
| biodata | get_biodata (sex bio_sex, std::uint64_t call_seed) const |
| Generate deterministic biodata from a random country with a predetermined sex. | |
| bdg & | seed (std::uint64_t seed_value) |
| Seed the internal random engine for deterministic sequences. | |
| bdg & | unseed () |
| Reseed the engine with a non-deterministic source. | |
| bool | has_data () const |
| Check whether any data has been loaded. | |
| std::size_t | country_count () const |
| Return the number of loaded countries. | |
| void | load (const std::filesystem::path &dir) |
| Load biodata from a resource directory. | |
| bool | load (dataset tier) |
| Load a specific dataset tier from auto-probed paths. | |
Static Public Member Functions | |
| static bdg & | instance () |
| Access the global singleton instance. | |
Biodata generator that produces demographically plausible human physical characteristics using country-level population statistics.
The generation pipeline:
Can be used as a singleton via instance() or constructed independently.
Definition at line 258 of file biodatagen.hpp.
|
inline |
Return the number of loaded countries.
Definition at line 369 of file biodatagen.hpp.
|
inline |
Generate random biodata from a random country.
| std::runtime_error | If no data has been loaded. |
Definition at line 300 of file biodatagen.hpp.
|
inline |
Generate random biodata from a random country with a predetermined sex.
Definition at line 330 of file biodatagen.hpp.
|
inline |
Generate deterministic biodata from a random country with a predetermined sex.
Definition at line 339 of file biodatagen.hpp.
|
inline |
Generate random biodata for a specific country.
| cca2 | ISO 3166-1 alpha-2 country code (e.g. "US", "BR"). |
| std::runtime_error | If no data has been loaded. |
| std::invalid_argument | If the country code is unknown. |
Definition at line 286 of file biodatagen.hpp.
|
inline |
Generate random biodata with a predetermined sex.
Definition at line 314 of file biodatagen.hpp.
|
inline |
Generate deterministic biodata with a predetermined sex.
Definition at line 321 of file biodatagen.hpp.
|
inline |
Generate deterministic biodata for a specific country.
Definition at line 292 of file biodatagen.hpp.
|
inline |
Generate deterministic biodata from a random country.
Definition at line 306 of file biodatagen.hpp.
|
inline |
Check whether any data has been loaded.
Definition at line 366 of file biodatagen.hpp.
|
inlinestatic |
Access the global singleton instance.
Auto-probes common resource paths on first access.
Definition at line 274 of file biodatagen.hpp.
|
inline |
Load biodata from a resource directory.
Expects the directory to contain: biodata.tsv.
Replaces any previously loaded data.
Definition at line 379 of file biodatagen.hpp.
|
inline |
Load a specific dataset tier from auto-probed paths.
Definition at line 392 of file biodatagen.hpp.
|
inline |
Seed the internal random engine for deterministic sequences.
Definition at line 350 of file biodatagen.hpp.
|
inline |
Reseed the engine with a non-deterministic source.
Definition at line 357 of file biodatagen.hpp.