bpp-phyl3
3.0.0
|
#include <Bpp/Phyl/Simulation/SimpleSubstitutionProcessSiteSimulator.h>
Public Member Functions | |
SimProcessNode (const ProcessComputationNode &pcn) | |
uint | getSpeciesIndex () const |
bool | isSpeciation () const |
bool | isMixture () const |
PhyloNode * | clone () const |
Name: | |
std::string | getName () const |
Get the name associated to this node, if there is one, otherwise throw a NodeException. More... | |
void | setName (const std::string &name) |
Give a name or update the name associated to the node. More... | |
void | deleteName () |
Delete the name associated to this node (do nothing if there is no name). More... | |
bool | hasName () const |
Tell is this node has a name. More... | |
Node properties: | |
void | setProperty (const std::string &name, const Clonable &property) |
Set/add a node 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 node properties. More... | |
void | deleteProperties () |
Delete all node properties. More... | |
bool | hasProperty (const std::string &name) const |
std::vector< std::string > | getPropertyNames () const |
Private Attributes | |
size_t | state_ |
VVdouble | cumProb_ |
std::vector< std::shared_ptr< SimProcessNode > > | sons_ |
const uint | speciesIndex_ |
the index of the species in the phyloTree matching this node. More... | |
std::string | name_ |
std::map< std::string, Clonable * > | properties_ |
Friends | |
class | SimpleSubstitutionProcessSiteSimulator |
class | GivenDataSubstitutionProcessSiteSimulator |
Definition at line 27 of file SimpleSubstitutionProcessSiteSimulator.h.
|
inline |
Definition at line 41 of file SimpleSubstitutionProcessSiteSimulator.h.
|
inlineinherited |
Definition at line 102 of file PhyloNode.h.
References bpp::PhyloNode::PhyloNode().
|
inlineinherited |
Delete the name associated to this node (do nothing if there is no name).
Definition at line 145 of file PhyloNode.h.
References bpp::PhyloNode::name_.
|
inlineinherited |
Delete all node properties.
Definition at line 234 of file PhyloNode.h.
References bpp::PhyloNode::properties_.
Referenced by bpp::PhyloNode::~PhyloNode().
|
inlineinherited |
Definition at line 210 of file PhyloNode.h.
References bpp::PhyloNode::hasProperty(), and bpp::PhyloNode::properties_.
|
inlineinherited |
Get the name associated to this node, if there is one, otherwise throw a NodeException.
Definition at line 126 of file PhyloNode.h.
References bpp::PhyloNode::hasName(), and bpp::PhyloNode::name_.
|
inlineinherited |
Definition at line 182 of file PhyloNode.h.
References bpp::PhyloNode::hasProperty(), and bpp::PhyloNode::properties_.
Referenced by bpp::StochasticMapping::getNodeState(), bpp::ProcessComputationNode::isMixture(), and bpp::ProcessComputationNode::isSpeciation().
|
inlineinherited |
Definition at line 190 of file PhyloNode.h.
References bpp::PhyloNode::hasProperty(), and bpp::PhyloNode::properties_.
|
inlineinherited |
Definition at line 245 of file PhyloNode.h.
References bpp::MapTools::getKeys(), and bpp::PhyloNode::properties_.
|
inlineinherited |
Definition at line 49 of file ProcessComputationTree.h.
References bpp::ProcessComputationNode::speciesIndex_.
Referenced by bpp::ProcessComputationNode::isMixture(), and bpp::ProcessComputationNode::isSpeciation().
|
inlineinherited |
Tell is this node has a name.
Definition at line 155 of file PhyloNode.h.
References bpp::PhyloNode::name_.
Referenced by bpp::PhyloNode::getName().
|
inlineinherited |
Definition at line 243 of file PhyloNode.h.
References bpp::PhyloNode::properties_.
Referenced by bpp::PhyloNode::deleteProperty(), bpp::PhyloNode::getProperty(), bpp::PhyloNode::removeProperty(), and bpp::PhyloNode::setProperty().
|
inlineinherited |
Definition at line 62 of file ProcessComputationTree.h.
References bpp::PhyloNode::getProperty(), bpp::ProcessComputationNode::getSpeciesIndex(), and bpp::TextTools::toString().
|
inlineinherited |
Definition at line 54 of file ProcessComputationTree.h.
References bpp::PhyloNode::getProperty(), bpp::ProcessComputationNode::getSpeciesIndex(), and bpp::TextTools::toString().
|
inlineinherited |
Remove all node properties.
Attached objects will not be deleted.
Definition at line 226 of file PhyloNode.h.
References bpp::PhyloNode::properties_.
|
inlineinherited |
Definition at line 198 of file PhyloNode.h.
References bpp::PhyloNode::hasProperty(), and bpp::PhyloNode::properties_.
|
inlineinherited |
Give a name or update the name associated to the node.
name | The name to give to the node. |
Definition at line 137 of file PhyloNode.h.
References bpp::PhyloNode::name_.
|
inlineinherited |
Set/add a node 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 175 of file PhyloNode.h.
References bpp::PhyloNode::hasProperty(), and bpp::PhyloNode::properties_.
Referenced by bpp::StochasticMapping::setNodeState().
|
friend |
Definition at line 45 of file SimpleSubstitutionProcessSiteSimulator.h.
|
friend |
Definition at line 44 of file SimpleSubstitutionProcessSiteSimulator.h.
|
private |
Definition at line 35 of file SimpleSubstitutionProcessSiteSimulator.h.
|
privateinherited |
Definition at line 62 of file PhyloNode.h.
Referenced by bpp::PhyloNode::deleteName(), bpp::PhyloNode::getName(), bpp::PhyloNode::hasName(), bpp::PhyloNode::operator=(), and bpp::PhyloNode::setName().
|
mutableprivateinherited |
Definition at line 65 of file PhyloNode.h.
Referenced by bpp::PhyloNode::deleteProperties(), bpp::PhyloNode::deleteProperty(), bpp::PhyloNode::getProperty(), bpp::PhyloNode::getPropertyNames(), bpp::PhyloNode::hasProperty(), bpp::PhyloNode::operator=(), bpp::PhyloNode::PhyloNode(), bpp::PhyloNode::removeProperties(), bpp::PhyloNode::removeProperty(), and bpp::PhyloNode::setProperty().
|
private |
Definition at line 38 of file SimpleSubstitutionProcessSiteSimulator.h.
|
privateinherited |
the index of the species in the phyloTree matching this node.
Definition at line 33 of file ProcessComputationTree.h.
Referenced by bpp::ProcessComputationNode::getSpeciesIndex().
|
private |
Definition at line 32 of file SimpleSubstitutionProcessSiteSimulator.h.