bpp-phyl3  3.0.0
bpp::TreeParsimonyDataInterface Class Referenceabstract

TreeParsimonyScore data structure. More...

#include <Bpp/Phyl/Parsimony/TreeParsimonyData.h>

+ Inheritance diagram for bpp::TreeParsimonyDataInterface:
+ Collaboration diagram for bpp::TreeParsimonyDataInterface:

Public Member Functions

 TreeParsimonyDataInterface ()
 
virtual ~TreeParsimonyDataInterface ()
 
TreeParsimonyDataInterfaceclone () const override=0
 
virtual const TreeTemplate< Node > & tree () const =0
 
virtual std::shared_ptr< const TreeTemplate< Node > > getTree () const =0
 
virtual size_t getArrayPosition (int parentId, int sonId, size_t currentPosition) const =0
 
virtual size_t getRootArrayPosition (size_t site) const =0
 
virtual TreeParsimonyNodeDataInterfacenodeData (int nodeId)=0
 
virtual const TreeParsimonyNodeDataInterfacenodeData (int nodeId) const =0
 

Detailed Description

TreeParsimonyScore data structure.

Stores all the inner computations:

  • subtree scores and ancestral states for each node,
  • correspondence between sites in the dataset and array indices.
See also
TreeParsimonyNodeData

Definition at line 56 of file TreeParsimonyData.h.

Constructor & Destructor Documentation

◆ TreeParsimonyDataInterface()

bpp::TreeParsimonyDataInterface::TreeParsimonyDataInterface ( )
inline

Definition at line 60 of file TreeParsimonyData.h.

◆ ~TreeParsimonyDataInterface()

virtual bpp::TreeParsimonyDataInterface::~TreeParsimonyDataInterface ( )
inlinevirtual

Definition at line 61 of file TreeParsimonyData.h.

Member Function Documentation

◆ clone()

TreeParsimonyDataInterface* bpp::TreeParsimonyDataInterface::clone ( ) const
overridepure virtual

Implements bpp::Clonable.

Implemented in bpp::DRTreeParsimonyData.

◆ getArrayPosition()

virtual size_t bpp::TreeParsimonyDataInterface::getArrayPosition ( int  parentId,
int  sonId,
size_t  currentPosition 
) const
pure virtual

Implemented in bpp::DRTreeParsimonyData.

◆ getRootArrayPosition()

virtual size_t bpp::TreeParsimonyDataInterface::getRootArrayPosition ( size_t  site) const
pure virtual

◆ getTree()

virtual std::shared_ptr<const TreeTemplate<Node> > bpp::TreeParsimonyDataInterface::getTree ( ) const
pure virtual

◆ nodeData() [1/2]

virtual const TreeParsimonyNodeDataInterface& bpp::TreeParsimonyDataInterface::nodeData ( int  nodeId) const
pure virtual

Implemented in bpp::DRTreeParsimonyData.

◆ nodeData() [2/2]

virtual TreeParsimonyNodeDataInterface& bpp::TreeParsimonyDataInterface::nodeData ( int  nodeId)
pure virtual

Implemented in bpp::DRTreeParsimonyData.

◆ tree()

virtual const TreeTemplate<Node>& bpp::TreeParsimonyDataInterface::tree ( ) const
pure virtual

The documentation for this class was generated from the following file: