5 #ifndef BPP_PHYL_MAPPING_WEIGHTEDSUBSTITUTIONCOUNT_H
6 #define BPP_PHYL_MAPPING_WEIGHTEDSUBSTITUTIONCOUNT_H
30 virtual void setWeights(std::shared_ptr<const AlphabetIndex2> index) = 0;
32 virtual std::shared_ptr<const AlphabetIndex2>
getWeights()
const = 0;
42 std::shared_ptr<const AlphabetIndex2>
weights_;
64 void setWeights(std::shared_ptr<const AlphabetIndex2> weights);
Partial implementation of the WeightedSubstitutionCount interface.
AbstractWeightedSubstitutionCount(std::shared_ptr< const AlphabetIndex2 > weights)
AbstractWeightedSubstitutionCount & operator=(const AbstractWeightedSubstitutionCount &index)
std::shared_ptr< const AlphabetIndex2 > getWeights() const
AbstractWeightedSubstitutionCount(const AbstractWeightedSubstitutionCount &index)
void setWeights(std::shared_ptr< const AlphabetIndex2 > weights)
virtual void weightsHaveChanged()=0
virtual ~AbstractWeightedSubstitutionCount()
std::shared_ptr< const AlphabetIndex2 > weights_
The SubstitutionsCount interface.
Interface allowing for weighting of substitution counts according to state properties.
virtual bool hasWeights() const =0
virtual std::shared_ptr< const AlphabetIndex2 > getWeights() const =0
virtual void setWeights(std::shared_ptr< const AlphabetIndex2 > index)=0
Defines the basic types of data flow nodes.