Template Struct genetic_parameters

Struct Documentation

template<typename GeneticValueType, typename MutationFunctionType, typename RecombinationFunctionType, typename SwappingFunctionType>
struct fwdpp::genetic_parameters

Hold types for genetic operations.

This is a simplistic struct to encapsulate the types needed for “doing the genetics” in a simulation.

There is no effort to ensure that the types reflect valid policies upon instantiation or construction.

For a single-locus simulation, interlocus_recombination_function is expected to be std::nullptr_t

The heavy use of lambdas in fwdpp means that it is, in practice, nearly impossible to know the template parameter types. Thus, objects of this type are made by calling fwdpp::make_genetic_parameters.

Version

0.7.4 Added to library

Version

0.9.0 gvalue no longer const

Public Types

using genetic_value = GeneticValueType
using mutation_function = MutationFunctionType
using recombination_function = RecombinationFunctionType
using swapping_function = SwappingFunctionType

Public Functions

template<typename gv, typename mut, typename rec, typename swapper>
genetic_parameters(gv &&gvalue_param, mut &&generate_mutations_param, rec &&generate_breakpoints_param, swapper &&haploid_genome_swapper_param)

Public Members

genetic_value gvalue
const mutation_function generate_mutations
const recombination_function generate_breakpoints
const swapping_function haploid_genome_swapper
flagged_mutation_queue mutation_recycling_bin
flagged_haploid_genome_queue haploid_genome_recycling_bin
std::vector<uint_t> neutral
std::vector<uint_t> selected