bpp-phyl  2.2.0
bpp::DRTreeParsimonyLeafData Class Reference

Parsimony data structure for a leaf. More...

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

+ Inheritance diagram for bpp::DRTreeParsimonyLeafData:
+ Collaboration diagram for bpp::DRTreeParsimonyLeafData:

Public Member Functions

 DRTreeParsimonyLeafData ()
 
 DRTreeParsimonyLeafData (const DRTreeParsimonyLeafData &tpld)
 
DRTreeParsimonyLeafDataoperator= (const DRTreeParsimonyLeafData &tpld)
 
DRTreeParsimonyLeafDataclone () const
 
const NodegetNode () 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 > & getBitsetsArray ()
 
const std::vector< Bitset > & getBitsetsArray () const
 

Private Attributes

std::vector< BitsetleafBitsets_
 
const Nodeleaf_
 

Detailed Description

Parsimony data structure for a leaf.

This class is for use with the DRTreeParsimonyData class.

Store the vector of bitsets associated to a leaf.

See also
DRTreeParsimonyData

Definition at line 142 of file DRTreeParsimonyData.h.

Constructor & Destructor Documentation

◆ DRTreeParsimonyLeafData() [1/2]

bpp::DRTreeParsimonyLeafData::DRTreeParsimonyLeafData ( )
inline

Definition at line 150 of file DRTreeParsimonyData.h.

Referenced by clone().

◆ DRTreeParsimonyLeafData() [2/2]

bpp::DRTreeParsimonyLeafData::DRTreeParsimonyLeafData ( const DRTreeParsimonyLeafData tpld)
inline

Definition at line 155 of file DRTreeParsimonyData.h.

Member Function Documentation

◆ clone()

DRTreeParsimonyLeafData* bpp::DRTreeParsimonyLeafData::clone ( ) const
inlinevirtual

Implements bpp::TreeParsimonyNodeData.

Definition at line 168 of file DRTreeParsimonyData.h.

References DRTreeParsimonyLeafData().

◆ getBitsetsArray() [1/2]

std::vector<Bitset>& bpp::DRTreeParsimonyLeafData::getBitsetsArray ( )
inline

Definition at line 174 of file DRTreeParsimonyData.h.

References leafBitsets_.

Referenced by bpp::DRTreeParsimonyData::init().

◆ getBitsetsArray() [2/2]

const std::vector<Bitset>& bpp::DRTreeParsimonyLeafData::getBitsetsArray ( ) const
inline

Definition at line 178 of file DRTreeParsimonyData.h.

References leafBitsets_.

◆ getNode()

const Node* bpp::DRTreeParsimonyLeafData::getNode ( ) const
inlinevirtual

Get the node associated to this data structure.

Returns
The node associated to this structure.

Implements bpp::TreeParsimonyNodeData.

Definition at line 171 of file DRTreeParsimonyData.h.

References leaf_.

◆ operator=()

DRTreeParsimonyLeafData& bpp::DRTreeParsimonyLeafData::operator= ( const DRTreeParsimonyLeafData tpld)
inline

Definition at line 160 of file DRTreeParsimonyData.h.

References leaf_, and leafBitsets_.

◆ setNode()

void bpp::DRTreeParsimonyLeafData::setNode ( const Node node)
inlinevirtual

Set the node associated to this data.

Parameters
nodeA pointer toward the node to be associated to this data.

Implements bpp::TreeParsimonyNodeData.

Definition at line 172 of file DRTreeParsimonyData.h.

References leaf_.

Referenced by bpp::DRTreeParsimonyData::init().

Member Data Documentation

◆ leaf_

const Node* bpp::DRTreeParsimonyLeafData::leaf_
private

Definition at line 147 of file DRTreeParsimonyData.h.

Referenced by getNode(), operator=(), and setNode().

◆ leafBitsets_

std::vector<Bitset> bpp::DRTreeParsimonyLeafData::leafBitsets_
mutableprivate

Definition at line 146 of file DRTreeParsimonyData.h.

Referenced by getBitsetsArray(), and operator=().


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