|
bpp-phyl3 3.0.0
|
#include <Bpp/Phyl/Tree/PhyloBranch.h>
Inheritance diagram for bpp::PhyloBranch:
Collaboration diagram for bpp::PhyloBranch:Public Member Functions | |
| PhyloBranch () | |
| Constructors. More... | |
| PhyloBranch (double length) | |
| PhyloBranch (const PhyloBranchParam &branch) | |
| PhyloBranch (const PhyloBranch &branch) | |
| Copy constructor. More... | |
| PhyloBranch & | operator= (const PhyloBranch &branch) |
| Assignation operator. More... | |
| PhyloBranch * | clone () const |
| virtual | ~PhyloBranch () |
| destructor. In Graph, nothing is changed. More... | |
| 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 | |
| bool | isLengthDefined_ |
| double | length_ |
| std::map< std::string, Clonable * > | properties_ |
Definition at line 20 of file PhyloBranch.h.
|
inline |
Constructors.
Definition at line 35 of file PhyloBranch.h.
Referenced by clone().
|
inline |
Definition at line 41 of file PhyloBranch.h.
| PhyloBranch::PhyloBranch | ( | const PhyloBranchParam & | branch | ) |
Definition at line 25 of file PhyloBranch.cpp.
| PhyloBranch::PhyloBranch | ( | const PhyloBranch & | branch | ) |
Copy constructor.
| branch | The branch to copy. |
Copy constructor:
Definition at line 13 of file PhyloBranch.cpp.
References properties_.
|
inlinevirtual |
destructor. In Graph, nothing is changed.
Definition at line 70 of file PhyloBranch.h.
References deleteProperties().
|
inline |
Definition at line 64 of file PhyloBranch.h.
References PhyloBranch().
|
inline |
|
inline |
Delete all branch properties.
Definition at line 187 of file PhyloBranch.h.
References properties_.
Referenced by ~PhyloBranch().
|
inline |
Definition at line 163 of file PhyloBranch.h.
References hasProperty(), and properties_.
|
inline |
Definition at line 205 of file PhyloBranch.h.
References hasBootstrapValue(), and properties_.
|
inline |
What is the branch length?
Definition at line 99 of file PhyloBranch.h.
References isLengthDefined_, and length_.
Referenced by bpp::PhyloBranchParam::PhyloBranchParam().
|
inline |
Definition at line 135 of file PhyloBranch.h.
References hasProperty(), and properties_.
|
inline |
Definition at line 143 of file PhyloBranch.h.
References hasProperty(), and properties_.
|
inline |
Definition at line 198 of file PhyloBranch.h.
References bpp::MapTools::getKeys(), and properties_.
|
inline |
Definition at line 200 of file PhyloBranch.h.
References properties_.
Referenced by getBootstrapValue().
|
inline |
Has the length been set?
Definition at line 79 of file PhyloBranch.h.
References isLengthDefined_.
Referenced by bpp::PhyloBranchParam::PhyloBranchParam().
|
inline |
Definition at line 196 of file PhyloBranch.h.
References properties_.
Referenced by deleteProperty(), getProperty(), removeProperty(), and setProperty().
| PhyloBranch & PhyloBranch::operator= | ( | const PhyloBranch & | branch | ) |
Assignation operator.
| branch | the branch to copy. |
Assignation operator:
Definition at line 33 of file PhyloBranch.cpp.
References isLengthDefined_, length_, and properties_.
Referenced by bpp::PhyloBranchMapping::operator=(), and bpp::PhyloBranchReward::operator=().
|
inline |
Remove all branch properties.
Attached objects will not be deleted.
Definition at line 179 of file PhyloBranch.h.
References properties_.
|
inline |
Definition at line 151 of file PhyloBranch.h.
References hasProperty(), and properties_.
|
inline |
Define a new branch length
| newLength | a double repserenting the new length of the branch |
Definition at line 112 of file PhyloBranch.h.
References isLengthDefined_, and length_.
|
inline |
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 hasProperty(), and properties_.
|
protected |
Definition at line 23 of file PhyloBranch.h.
Referenced by deleteLength(), getLength(), hasLength(), operator=(), and setLength().
|
protected |
Definition at line 24 of file PhyloBranch.h.
Referenced by getLength(), operator=(), and setLength().
|
mutableprotected |
Definition at line 25 of file PhyloBranch.h.
Referenced by deleteProperties(), deleteProperty(), getBootstrapValue(), getProperty(), getPropertyNames(), hasBootstrapValue(), hasProperty(), operator=(), PhyloBranch(), removeProperties(), removeProperty(), and setProperty().