Entity Generator 1.1.0
Composable, deterministic entity generation for C++23
Loading...
Searching...
No Matches
dasmig::weighted_choice_component< T, Formatter >::option Struct Reference

A value–weight pair for weighted selection. More...

#include <entitygen.hpp>

Public Attributes

value
 The selectable value.
 
double weight
 Relative selection weight (must be >= 0).
 

Detailed Description

template<typename T, typename Formatter = use_default_formatter>
struct dasmig::weighted_choice_component< T, Formatter >::option

A value–weight pair for weighted selection.

Definition at line 369 of file entitygen.hpp.

Member Data Documentation

◆ value

template<typename T , typename Formatter = use_default_formatter>
T dasmig::weighted_choice_component< T, Formatter >::option::value

The selectable value.

Definition at line 371 of file entitygen.hpp.

◆ weight

template<typename T , typename Formatter = use_default_formatter>
double dasmig::weighted_choice_component< T, Formatter >::option::weight

Relative selection weight (must be >= 0).

Definition at line 372 of file entitygen.hpp.


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