bpp-phyl3
3.0.0
|
Parsimony data structure for a node. More...
#include <Bpp/Phyl/Parsimony/DRTreeParsimonyData.h>
Public Member Functions | |
DRTreeParsimonyNodeData () | |
DRTreeParsimonyNodeData (const DRTreeParsimonyNodeData &tpnd) | |
DRTreeParsimonyNodeData & | operator= (const DRTreeParsimonyNodeData &tpnd) |
DRTreeParsimonyNodeData * | clone () const |
const Node * | getNode () const |
Get the node associated to this data structure. More... | |
void | setNode (const Node *node) |
Set the node associated to this data. More... | |
std::vector< Bitset > & | getBitsetsArrayForNeighbor (int neighborId) |
const std::vector< Bitset > & | getBitsetsArrayForNeighbor (int neighborId) const |
std::vector< unsigned int > & | getScoresArrayForNeighbor (int neighborId) |
const std::vector< unsigned int > & | getScoresArrayForNeighbor (int neighborId) const |
bool | isNeighbor (int neighborId) const |
void | eraseNeighborArrays () |
Private Attributes | |
std::map< int, std::vector< Bitset > > | nodeBitsets_ |
std::map< int, std::vector< unsigned int > > | nodeScores_ |
const Node * | node_ |
Parsimony data structure for a node.
This class is for use with the DRTreeParsimonyData class.
Store for each neighbor node
Definition at line 33 of file DRTreeParsimonyData.h.
|
inline |
Definition at line 42 of file DRTreeParsimonyData.h.
Referenced by clone().
|
inline |
Definition at line 48 of file DRTreeParsimonyData.h.
|
inlinevirtual |
Implements bpp::TreeParsimonyNodeDataInterface.
Definition at line 62 of file DRTreeParsimonyData.h.
References DRTreeParsimonyNodeData().
|
inline |
Definition at line 91 of file DRTreeParsimonyData.h.
References nodeBitsets_, and nodeScores_.
Referenced by bpp::DRTreeParsimonyData::init_(), and bpp::DRTreeParsimonyData::reInit_().
|
inline |
Definition at line 69 of file DRTreeParsimonyData.h.
References nodeBitsets_.
Referenced by bpp::DRTreeParsimonyScore::computeScoresForNode(), bpp::DRTreeParsimonyScore::computeScoresPostorder(), bpp::DRTreeParsimonyScore::computeScoresPostorderForNode(), bpp::DRTreeParsimonyScore::computeScoresPreorder(), bpp::DRTreeParsimonyScore::computeScoresPreorderForNode(), bpp::DRTreeParsimonyData::init_(), bpp::DRTreeParsimonyData::reInit_(), and bpp::DRTreeParsimonyScore::testNNI().
|
inline |
Definition at line 73 of file DRTreeParsimonyData.h.
References nodeBitsets_.
|
inlinevirtual |
Get the node associated to this data structure.
Implements bpp::TreeParsimonyNodeDataInterface.
Definition at line 65 of file DRTreeParsimonyData.h.
References node_.
Referenced by bpp::DRTreeParsimonyScore::computeScoresForNode(), bpp::DRTreeParsimonyScore::computeScoresPostorderForNode(), and bpp::DRTreeParsimonyScore::computeScoresPreorderForNode().
|
inline |
Definition at line 77 of file DRTreeParsimonyData.h.
References nodeScores_.
Referenced by bpp::DRTreeParsimonyScore::computeScoresForNode(), bpp::DRTreeParsimonyScore::computeScoresPostorder(), bpp::DRTreeParsimonyScore::computeScoresPostorderForNode(), bpp::DRTreeParsimonyScore::computeScoresPreorder(), bpp::DRTreeParsimonyScore::computeScoresPreorderForNode(), bpp::DRTreeParsimonyData::init_(), bpp::DRTreeParsimonyData::reInit_(), and bpp::DRTreeParsimonyScore::testNNI().
|
inline |
Definition at line 81 of file DRTreeParsimonyData.h.
References nodeScores_.
|
inline |
Definition at line 86 of file DRTreeParsimonyData.h.
References nodeBitsets_.
|
inline |
Definition at line 54 of file DRTreeParsimonyData.h.
References node_, nodeBitsets_, and nodeScores_.
|
inlinevirtual |
Set the node associated to this data.
node | A pointer toward the node to be associated to this data. |
Implements bpp::TreeParsimonyNodeDataInterface.
Definition at line 67 of file DRTreeParsimonyData.h.
References node_.
Referenced by bpp::DRTreeParsimonyData::init_(), and bpp::DRTreeParsimonyData::reInit_().
|
private |
Definition at line 39 of file DRTreeParsimonyData.h.
Referenced by getNode(), operator=(), and setNode().
|
mutableprivate |
Definition at line 37 of file DRTreeParsimonyData.h.
Referenced by eraseNeighborArrays(), getBitsetsArrayForNeighbor(), isNeighbor(), and operator=().
|
mutableprivate |
Definition at line 38 of file DRTreeParsimonyData.h.
Referenced by eraseNeighborArrays(), getScoresArrayForNeighbor(), and operator=().