template<typename Space, typename Time, typename Value>
class quetzal::demography::FlowHashMapImplementation< Space, Time, Value >
Defines a template class to store the demographic flows number across a landscape along time.
- Template Parameters
-
Space | Demes identifiers. |
Time | EqualityComparable, CopyConstructible. |
Value | The type of the population size variable (int, unsigned int, double...) |
|
| FlowHashMapImplementation ()=default |
| Default constructor.
|
|
value_type | flow_from_to (coord_type const &from, coord_type const &to, time_type t) const |
| Retrieves value of the flow from deme i to deme j at time t.
|
|
void | set_flow_from_to (coord_type const &from, coord_type const &to, time_type t, value_type v) |
| Retrieves value of the flow from deme i to deme j at time t.
|
|
void | add_to_flow_from_to (coord_type const &from, coord_type const &to, time_type t, value_type v) |
| Adds value v to the flow from deme i to deme j at time t.
|
|
std::unordered_map< coord_type, value_type > const & | flow_to (coord_type const &x, time_type t) const |
| Retrieves the distribution of the value of the flow converging to deme x at time t.
|
|
bool | flow_to_is_defined (coord_type const &to, time_type const &t) const |
| Check if the distribution of the value of the flow converging to deme x at time t is defined.
|
|
auto | begin () const |
| Read-only access to the migration history.
|
|
auto | end () const |
| Read-only access to the migration history.
|
|