5 #ifndef BPP_PHYL_PARSIMONY_ABSTRACTTREEPARSIMONYDATA_H
6 #define BPP_PHYL_PARSIMONY_ABSTRACTTREEPARSIMONYDATA_H
37 std::shared_ptr<const TreeTemplate<Node>>
tree_;
76 std::shared_ptr<const TreeTemplate<Node>>
getTree()
const override {
return tree_; }
Partial implementation of the TreeParsimonyData interface.
const TreeTemplate< Node > & tree() const override
std::shared_ptr< const TreeTemplate< Node > > getTree() const override
void setTree(std::shared_ptr< const TreeTemplate< Node >> tree)
virtual ~AbstractTreeParsimonyData()
std::vector< size_t > rootPatternLinks_
size_t getRootArrayPosition(size_t site) const override
std::shared_ptr< const TreeTemplate< Node > > tree_
AbstractTreeParsimonyData & operator=(const AbstractTreeParsimonyData &atpd)
AbstractTreeParsimonyData(std::shared_ptr< const TreeTemplate< Node >> tree)
AbstractTreeParsimonyData(const AbstractTreeParsimonyData &atpd)
std::vector< unsigned int > rootWeights_
unsigned int getWeight(size_t pos) const
TreeParsimonyScore data structure.
The phylogenetic tree class.
Defines the basic types of data flow nodes.