Skip to content

Commit c4fba95

Browse files
committed
Add types/tree_sequence.hpp
1 parent 56aa5e8 commit c4fba95

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

Diff for: fwdpp/ts/types/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ pkginclude_HEADERS= node.hpp \
55
site.hpp \
66
mutation_record.hpp \
77
generate_null_id.hpp \
8-
table_collection.hpp
8+
table_collection.hpp \
9+
tree_sequence.hpp

Diff for: fwdpp/ts/types/tree_sequence.hpp

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#pragma once
2+
3+
#include <cstdint>
4+
#include <memory>
5+
#include <vector>
6+
#include "table_collection.hpp"
7+
8+
namespace fwdpp
9+
{
10+
namespace ts
11+
{
12+
namespace types
13+
{
14+
template <typename SignedInteger> class tree_sequence
15+
{
16+
private:
17+
std::shared_ptr<const types::table_collection<SignedInteger>> tables_;
18+
std::vector<SignedInteger> samples_;
19+
std::size_t num_trees_;
20+
21+
public:
22+
tree_sequence(
23+
std::shared_ptr<types::table_collection<SignedInteger>> tables)
24+
: tables_{std::move(tables)}
25+
{
26+
}
27+
};
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)