Struct mutation_base

Inheritance Relationships

Derived Type

Struct Documentation

struct fwdpp::mutation_base

Base class for mutations At minimum, a mutation must contain a position and a count in the population. You can derive from this class, for instance to add selection coefficients, counts in different sexes, etc.

Note

See TutMut in md_md_policies for more detail on how to extend this type

Subclassed by fwdpp::mutation

Public Functions

mutation_base(const double &position, const bool &isneutral = true, const std::uint16_t x = 0) noexcept
~mutation_base() noexcept
mutation_base(mutation_base const&) = default
mutation_base(mutation_base&&) = default
mutation_base &operator=(mutation_base const&) = default
mutation_base &operator=(mutation_base&&) = default
bool is_equal(const mutation_base &rhs) const

Public Members

double pos

Mutation position.

std::uint16_t xtra

16 bits of extra data to be associated w/this type. Do with it what you will. Fits into padded space in this struct, and doesn’t affect sizeof(mutation).

bool neutral

Is the mutation neutral or not?