Class genetic_map¶
Defined in File genetic_map.hpp
Class Documentation¶
-
class
fwdpp::genetic_map¶ A genetic map is a container of fwdpp::genetic_map_unit objects.
Public Functions
-
genetic_map(std::vector<std::unique_ptr<genetic_map_unit>> &&c)¶ Constructor
- Parameters
c:rvaluereference to vector of genetic_map_unit objects.
-
genetic_map()¶
-
void
add_callback(std::unique_ptr<genetic_map_unit> &&gu)¶ Add a new callback by moving the input.
-
void
add_callback(const genetic_map_unit &gu)¶ Add a new callback by cloning the input.
-
std::vector<double>
operator()(const gsl_rng *r) const¶ - Note
Future revisions may change the return type to void and allow for a reusable vector.
-
std::size_t
size() const¶ Return number of stored callbacks.
-