5 #ifndef BPP_PHYL_LEGACY_LIKELIHOOD_TREELIKELIHOODDATA_H
6 #define BPP_PHYL_LEGACY_LIKELIHOOD_TREELIKELIHOODDATA_H
9 #include "../../Tree/Node.h"
10 #include "../../Tree/TreeTemplate.h"
71 virtual std::shared_ptr<const Alphabet>
getAlphabet()
const = 0;
72 virtual std::shared_ptr< const TreeTemplate<Node>>
getTree()
const = 0;
73 virtual size_t getArrayPosition(
int parentId,
int sonId,
size_t currentPosition)
const = 0;
96 virtual unsigned int getWeight(
size_t pos)
const = 0;
101 virtual const std::vector<unsigned int>&
getWeights()
const = 0;
The phylogenetic node class.
TreeLikelihood data structure.
virtual const std::vector< unsigned int > & getWeights() const =0
virtual TreeLikelihoodNodeData & getNodeData(int nodeId)=0
virtual size_t getArrayPosition(int parentId, int sonId, size_t currentPosition) const =0
virtual size_t getNumberOfStates() const =0
virtual size_t getNumberOfDistinctSites() const =0
virtual size_t getNumberOfSites() const =0
virtual std::shared_ptr< const Alphabet > getAlphabet() const =0
virtual std::shared_ptr< const TreeTemplate< Node > > getTree() const =0
virtual unsigned int getWeight(size_t pos) const =0
TreeLikelihoodData * clone() const =0
virtual ~TreeLikelihoodData()
virtual size_t getRootArrayPosition(size_t site) const =0
virtual const TreeLikelihoodNodeData & getNodeData(int nodeId) const =0
TreeLikelihood partial data structure.
virtual void setNode(const Node *node)=0
Set the node associated to this data.
virtual ~TreeLikelihoodNodeData()
virtual const Node * getNode() const =0
Get the node associated to this data structure.
TreeLikelihoodNodeData * clone() const =0
Defines the basic types of data flow nodes.