bpp-phyl3
3.0.0
|
#include <Bpp/Phyl/Mapping/PhyloBranchReward.h>
Public Member Functions | |
PhyloBranchReward () | |
Constructors. More... | |
PhyloBranchReward (double length) | |
PhyloBranchReward (const PhyloBranch &branch) | |
PhyloBranchReward (const PhyloBranchReward &branch) | |
Copy constructor. More... | |
PhyloBranchReward & | operator= (const PhyloBranchReward &branch) |
Assignation operator. More... | |
PhyloBranchReward * | clone () const |
~PhyloBranchReward () | |
destructor. In Graph, nothing is changed. More... | |
void | setNumberOfSites (size_t nbSites) |
Sets a number of sites. More... | |
size_t | getNumberOfSites () const |
Gets the number of sites. More... | |
double | getSiteReward (size_t site) const |
void | setSiteReward (size_t site, double rew) |
double | operator() (size_t site) const |
Gets the rewards at a given site on a given type. More... | |
double & | operator() (size_t site) |
const Vdouble & | getRewards () const |
return rewards More... | |
Vdouble & | getRewards () |
bool | hasLength () const |
Has the length been set? More... | |
void | deleteLength () |
Delete length. More... | |
double | getLength () const |
What is the branch length? More... | |
void | setLength (double newLength) |
void | setProperty (const std::string &name, const Clonable &property) |
Set/add a branch property. More... | |
Clonable * | getProperty (const std::string &name) |
const Clonable * | getProperty (const std::string &name) const |
Clonable * | removeProperty (const std::string &name) |
void | deleteProperty (const std::string &name) |
void | removeProperties () |
Remove all branch properties. More... | |
void | deleteProperties () |
Delete all branch properties. More... | |
bool | hasProperty (const std::string &name) const |
std::vector< std::string > | getPropertyNames () const |
bool | hasBootstrapValue () const |
double | getBootstrapValue () const |
Protected Attributes | |
Vdouble | rewards_ |
bool | isLengthDefined_ |
double | length_ |
std::map< std::string, Clonable * > | properties_ |
Definition at line 25 of file PhyloBranchReward.h.
|
inline |
Constructors.
Definition at line 44 of file PhyloBranchReward.h.
Referenced by clone().
|
inline |
Definition at line 49 of file PhyloBranchReward.h.
|
inline |
Definition at line 54 of file PhyloBranchReward.h.
|
inline |
Copy constructor.
branch | The branch to copy. |
Definition at line 65 of file PhyloBranchReward.h.
|
inline |
destructor. In Graph, nothing is changed.
Definition at line 89 of file PhyloBranchReward.h.
|
inline |
Definition at line 83 of file PhyloBranchReward.h.
References PhyloBranchReward().
|
inlineinherited |
Delete length.
Definition at line 90 of file PhyloBranch.h.
References bpp::PhyloBranch::isLengthDefined_.
|
inlineinherited |
Delete all branch properties.
Definition at line 189 of file PhyloBranch.h.
References bpp::PhyloBranch::properties_.
Referenced by bpp::PhyloBranch::~PhyloBranch().
|
inlineinherited |
Definition at line 165 of file PhyloBranch.h.
References bpp::PhyloBranch::hasProperty(), and bpp::PhyloBranch::properties_.
|
inlineinherited |
Definition at line 207 of file PhyloBranch.h.
References bpp::PhyloBranch::hasBootstrapValue(), and bpp::PhyloBranch::properties_.
|
inlineinherited |
What is the branch length?
Definition at line 101 of file PhyloBranch.h.
References bpp::PhyloBranch::isLengthDefined_, and bpp::PhyloBranch::length_.
Referenced by bpp::PhyloBranchParam::PhyloBranchParam().
|
inline |
Gets the number of sites.
Definition at line 103 of file PhyloBranchReward.h.
References rewards_.
Referenced by getSiteReward(), and setSiteReward().
|
inlineinherited |
Definition at line 137 of file PhyloBranch.h.
References bpp::PhyloBranch::hasProperty(), and bpp::PhyloBranch::properties_.
|
inlineinherited |
Definition at line 145 of file PhyloBranch.h.
References bpp::PhyloBranch::hasProperty(), and bpp::PhyloBranch::properties_.
|
inlineinherited |
Definition at line 200 of file PhyloBranch.h.
References bpp::MapTools::getKeys(), and bpp::PhyloBranch::properties_.
|
inline |
Definition at line 151 of file PhyloBranchReward.h.
References rewards_.
|
inline |
|
inline |
Definition at line 109 of file PhyloBranchReward.h.
References getNumberOfSites(), and rewards_.
|
inlineinherited |
Definition at line 202 of file PhyloBranch.h.
References bpp::PhyloBranch::properties_.
Referenced by bpp::PhyloBranch::getBootstrapValue().
|
inlineinherited |
Has the length been set?
Definition at line 81 of file PhyloBranch.h.
References bpp::PhyloBranch::isLengthDefined_.
Referenced by bpp::PhyloBranchParam::PhyloBranchParam().
|
inlineinherited |
Definition at line 198 of file PhyloBranch.h.
References bpp::PhyloBranch::properties_.
Referenced by bpp::PhyloBranch::deleteProperty(), bpp::PhyloBranch::getProperty(), bpp::PhyloBranch::removeProperty(), and bpp::PhyloBranch::setProperty().
|
inline |
Definition at line 137 of file PhyloBranchReward.h.
References rewards_.
|
inline |
Gets the rewards at a given site on a given type.
Without check
Definition at line 132 of file PhyloBranchReward.h.
References rewards_.
|
inline |
Assignation operator.
branch | the branch to copy. |
Definition at line 76 of file PhyloBranchReward.h.
References bpp::PhyloBranch::operator=(), and rewards_.
|
inlineinherited |
Remove all branch properties.
Attached objects will not be deleted.
Definition at line 181 of file PhyloBranch.h.
References bpp::PhyloBranch::properties_.
|
inlineinherited |
Definition at line 153 of file PhyloBranch.h.
References bpp::PhyloBranch::hasProperty(), and bpp::PhyloBranch::properties_.
|
inlineinherited |
Define a new branch length
newLength | a double repserenting the new length of the branch |
Definition at line 114 of file PhyloBranch.h.
References bpp::PhyloBranch::isLengthDefined_, and bpp::PhyloBranch::length_.
|
inline |
|
inlineinherited |
Set/add a branch property.
If no property with the same name is found, the new property will be added to the list. Conversely, the property will be deleted and replaced by the new one. If you want to keep a copy of the old property, consider using the removeProperty function before.
name | The name of the property to set. |
property | The property object (will be cloned). |
Definition at line 130 of file PhyloBranch.h.
References bpp::PhyloBranch::hasProperty(), and bpp::PhyloBranch::properties_.
|
inline |
Definition at line 116 of file PhyloBranchReward.h.
References getNumberOfSites(), and rewards_.
|
protectedinherited |
Definition at line 23 of file PhyloBranch.h.
Referenced by bpp::PhyloBranch::deleteLength(), bpp::PhyloBranch::getLength(), bpp::PhyloBranch::hasLength(), bpp::PhyloBranch::operator=(), and bpp::PhyloBranch::setLength().
|
protectedinherited |
Definition at line 24 of file PhyloBranch.h.
Referenced by bpp::PhyloBranch::getLength(), bpp::PhyloBranch::operator=(), and bpp::PhyloBranch::setLength().
|
mutableprotectedinherited |
Definition at line 25 of file PhyloBranch.h.
Referenced by bpp::PhyloBranch::deleteProperties(), bpp::PhyloBranch::deleteProperty(), bpp::PhyloBranch::getBootstrapValue(), bpp::PhyloBranch::getProperty(), bpp::PhyloBranch::getPropertyNames(), bpp::PhyloBranch::hasBootstrapValue(), bpp::PhyloBranch::hasProperty(), bpp::PhyloBranch::operator=(), bpp::PhyloBranch::PhyloBranch(), bpp::PhyloBranch::removeProperties(), bpp::PhyloBranch::removeProperty(), and bpp::PhyloBranch::setProperty().
|
protected |
Definition at line 34 of file PhyloBranchReward.h.
Referenced by getNumberOfSites(), getRewards(), getSiteReward(), operator()(), operator=(), setNumberOfSites(), and setSiteReward().