Skip to content

Commit

Permalink
add init_num_trees
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Jul 7, 2021
1 parent f0ac0da commit 582480f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions fwdpp/ts/types/tree_sequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,17 @@ namespace fwdpp
return samples;
}

std::size_t
init_num_trees()
{
return 0;
}

public:
tree_sequence(
std::shared_ptr<types::table_collection<SignedInteger>> tables)
: tables_{init_tables(std::move(tables))}, samples_{
init_samples(*tables)}
: tables_{init_tables(std::move(tables))},
samples_{init_samples(*tables)}, num_trees_{init_num_trees()}
{
}

Expand All @@ -83,7 +89,8 @@ namespace fwdpp
std::vector<SignedInteger> samples)
: tables_{init_tables(std::move(tables))}, samples_{init_samples(
*tables,
std::move(samples))}
std::move(samples))},
num_trees_{init_num_trees()}
{
}
};
Expand Down

0 comments on commit 582480f

Please sign in to comment.