|
bpp-phyl3 3.0.0
|
#include <Bpp/Phyl/Mapping/PhyloBranchMapping.h>
Inheritance diagram for bpp::PhyloBranchMapping:
Collaboration diagram for bpp::PhyloBranchMapping:Public Member Functions | |
| PhyloBranchMapping () | |
| Constructors. More... | |
| PhyloBranchMapping (double length) | |
| PhyloBranchMapping (const PhyloBranch &branch) | |
| PhyloBranchMapping (const PhyloBranchMapping &branch) | |
| Copy constructor. More... | |
| PhyloBranchMapping & | operator= (const PhyloBranchMapping &branch) |
| Assignation operator. More... | |
| PhyloBranchMapping * | clone () const |
| ~PhyloBranchMapping () | |
| destructor. In Graph, nothing is changed. More... | |
| void | setNumberOfSites (size_t nbSites) |
| Sets a number of sites. If the number of types is already defined, it is kept. More... | |
| void | setNumberOfTypes (size_t nbTypes) |
| Define a number of types. More... | |
| void | setNumberOfSitesAndTypes (size_t nbSites, size_t nbTypes) |
| Define a number of types. More... | |
| size_t | getNumberOfSites () const |
| Gets the number of sites. More... | |
| size_t | getNumberOfTypes () const |
| Gets the number of types. More... | |
| Vdouble & | getSiteCount (size_t site) |
| Gets the counts at a given site. More... | |
| const Vdouble & | getSiteCount (size_t site) const |
| double | getSiteTypeCount (size_t site, size_t type) const |
| Gets the counts at a given site on a given type. More... | |
| void | setSiteTypeCount (size_t site, size_t type, double value) |
| Sets the counts at a given site on a given type. More... | |
| double | operator() (size_t site, size_t type) const |
| Without check. More... | |
| double & | operator() (size_t site, size_t type) |
| const VVdouble & | getCounts () const |
| return counts More... | |
| VVdouble & | getCounts () |
| 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 | |
| VVdouble | counts_ |
| bool | isLengthDefined_ |
| double | length_ |
| std::map< std::string, Clonable * > | properties_ |
Definition at line 25 of file PhyloBranchMapping.h.
|
inline |
Constructors.
Definition at line 44 of file PhyloBranchMapping.h.
Referenced by clone().
|
inline |
Definition at line 49 of file PhyloBranchMapping.h.
|
inline |
Definition at line 54 of file PhyloBranchMapping.h.
|
inline |
Copy constructor.
| branch | The branch to copy. |
Definition at line 65 of file PhyloBranchMapping.h.
|
inline |
destructor. In Graph, nothing is changed.
Definition at line 89 of file PhyloBranchMapping.h.
|
inline |
Definition at line 83 of file PhyloBranchMapping.h.
References PhyloBranchMapping().
|
inlineinherited |
Delete length.
Definition at line 88 of file PhyloBranch.h.
References bpp::PhyloBranch::isLengthDefined_.
|
inlineinherited |
Delete all branch properties.
Definition at line 187 of file PhyloBranch.h.
References bpp::PhyloBranch::properties_.
Referenced by bpp::PhyloBranch::~PhyloBranch().
|
inlineinherited |
Definition at line 163 of file PhyloBranch.h.
References bpp::PhyloBranch::hasProperty(), and bpp::PhyloBranch::properties_.
|
inlineinherited |
Definition at line 205 of file PhyloBranch.h.
References bpp::PhyloBranch::hasBootstrapValue(), and bpp::PhyloBranch::properties_.
|
inline |
Definition at line 203 of file PhyloBranchMapping.h.
References counts_.
|
inline |
|
inlineinherited |
What is the branch length?
Definition at line 99 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 121 of file PhyloBranchMapping.h.
References counts_.
Referenced by getSiteTypeCount(), and setSiteTypeCount().
|
inline |
Gets the number of types.
Definition at line 129 of file PhyloBranchMapping.h.
References counts_.
Referenced by getSiteTypeCount(), and setSiteTypeCount().
|
inlineinherited |
Definition at line 135 of file PhyloBranch.h.
References bpp::PhyloBranch::hasProperty(), and bpp::PhyloBranch::properties_.
|
inlineinherited |
Definition at line 143 of file PhyloBranch.h.
References bpp::PhyloBranch::hasProperty(), and bpp::PhyloBranch::properties_.
|
inlineinherited |
Definition at line 198 of file PhyloBranch.h.
References bpp::MapTools::getKeys(), and bpp::PhyloBranch::properties_.
|
inline |
Gets the counts at a given site.
Definition at line 138 of file PhyloBranchMapping.h.
References counts_.
|
inline |
Definition at line 143 of file PhyloBranchMapping.h.
References counts_.
|
inline |
Gets the counts at a given site on a given type.
With check
Definition at line 157 of file PhyloBranchMapping.h.
References counts_, getNumberOfSites(), and getNumberOfTypes().
|
inlineinherited |
Definition at line 200 of file PhyloBranch.h.
References bpp::PhyloBranch::properties_.
Referenced by bpp::PhyloBranch::getBootstrapValue().
|
inlineinherited |
Has the length been set?
Definition at line 79 of file PhyloBranch.h.
References bpp::PhyloBranch::isLengthDefined_.
Referenced by bpp::PhyloBranchParam::PhyloBranchParam().
|
inlineinherited |
Definition at line 196 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 189 of file PhyloBranchMapping.h.
References counts_.
|
inline |
|
inline |
Assignation operator.
| branch | the branch to copy. |
Definition at line 76 of file PhyloBranchMapping.h.
References counts_, and bpp::PhyloBranch::operator=().
|
inlineinherited |
Remove all branch properties.
Attached objects will not be deleted.
Definition at line 179 of file PhyloBranch.h.
References bpp::PhyloBranch::properties_.
|
inlineinherited |
Definition at line 151 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 112 of file PhyloBranch.h.
References bpp::PhyloBranch::isLengthDefined_, and bpp::PhyloBranch::length_.
|
inline |
Sets a number of sites. If the number of types is already defined, it is kept.
Definition at line 96 of file PhyloBranchMapping.h.
References counts_, and bpp::VectorTools::resize2().
|
inline |
Define a number of types.
Definition at line 112 of file PhyloBranchMapping.h.
References counts_, and bpp::VectorTools::resize2().
|
inline |
Define a number of types.
Definition at line 104 of file PhyloBranchMapping.h.
References counts_, and bpp::VectorTools::resize2().
|
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 128 of file PhyloBranch.h.
References bpp::PhyloBranch::hasProperty(), and bpp::PhyloBranch::properties_.
|
inline |
Sets the counts at a given site on a given type.
Definition at line 170 of file PhyloBranchMapping.h.
References counts_, getNumberOfSites(), and getNumberOfTypes().
|
protected |
Definition at line 34 of file PhyloBranchMapping.h.
Referenced by getCounts(), getNumberOfSites(), getNumberOfTypes(), getSiteCount(), getSiteTypeCount(), operator()(), operator=(), setNumberOfSites(), setNumberOfSitesAndTypes(), setNumberOfTypes(), and setSiteTypeCount().
|
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().