|
bpp-phyl
2.2.0
|
Partial implementation of the mapping interface. More...
#include <Bpp/Phyl/Mapping/Mapping.h>
Inheritance diagram for bpp::AbstractMapping:
Collaboration diagram for bpp::AbstractMapping:Public Member Functions | |
| AbstractMapping (const Tree &tree) | |
| AbstractMapping (const AbstractMapping &absm) | |
| AbstractMapping & | operator= (const AbstractMapping &absm) |
| AbstractMapping * | clone () const =0 |
| virtual | ~AbstractMapping () |
| bool | isEmpty () const |
| const TreeTemplate< Node > & | getTree () const throw (Exception) |
| void | setTree (const Tree &tree) |
| int | getSitePosition (size_t index) const throw (Exception) |
| void | setSitePosition (size_t index, int position) throw (Exception) |
| Set the position of a given site. More... | |
| size_t | getNumberOfSites () const |
| size_t | getNumberOfBranches () const |
| virtual const Node * | getNode (size_t nodeIndex) const |
| virtual void | setNumberOfSites (size_t numberOfSites) |
| virtual std::vector< double > | getBranchLengths () const |
| virtual size_t | getNodeIndex (int nodeId) const throw (NodeNotFoundException) |
Private Attributes | |
| std::auto_ptr< const TreeTemplate< Node > > | tree_ |
| std::vector< int > | sitesPositions_ |
| std::vector< const Node * > | nodes_ |
| size_t | nbSites_ |
| size_t | nbBranches_ |
Partial implementation of the mapping interface.
This implementation copies the input tree in a TreeTemplate<Node> object.
|
inline |
Definition at line 143 of file Mapping.h.
References nbBranches_, nodes_, and tree_.
|
inline |
|
inlinevirtual |
|
pure virtual |
Implements bpp::Mapping.
Implemented in bpp::AbstractSubstitutionMapping, bpp::ProbabilisticSubstitutionMapping, bpp::ProbabilisticRewardMapping, and bpp::AbstractRewardMapping.
|
inlinevirtual |
Implements bpp::Mapping.
Definition at line 222 of file Mapping.h.
References nbBranches_, and nodes_.
|
inlinevirtual |
|
inlinevirtual | ||||||||||||||
| nodeId | An id of the node to look for in the map. |
Implements bpp::Mapping.
Definition at line 230 of file Mapping.h.
References nbBranches_, and nodes_.
Referenced by bpp::SubstitutionMappingTools::getCountsPerBranch(), bpp::SubstitutionMappingTools::getNormalizationsPerBranch(), bpp::ProbabilisticSubstitutionMapping::getNumberOfSubstitutions(), bpp::ProbabilisticRewardMapping::getReward(), bpp::SubstitutionMappingTools::outputIndividualCountsPerBranchPerSite(), and bpp::SubstitutionMappingTools::outputTotalCountsPerBranchPerSite().
|
inlinevirtual |
Implements bpp::Mapping.
Definition at line 210 of file Mapping.h.
References nbBranches_.
Referenced by bpp::ProbabilisticRewardMapping::setNumberOfSites(), bpp::ProbabilisticSubstitutionMapping::setNumberOfSites(), bpp::ProbabilisticRewardMapping::setTree(), and bpp::ProbabilisticSubstitutionMapping::setTree().
|
inlinevirtual |
Implements bpp::Mapping.
Definition at line 208 of file Mapping.h.
References nbSites_.
Referenced by bpp::SubstitutionMappingTools::getCountsPerBranch(), bpp::SubstitutionMappingTools::outputIndividualCountsPerBranchPerSite(), bpp::SubstitutionMappingTools::outputTotalCountsPerBranchPerSite(), bpp::ProbabilisticRewardMapping::setTree(), and bpp::ProbabilisticSubstitutionMapping::setTree().
|
inlinevirtual | ||||||||||||||
| index | The site index. |
Implements bpp::Mapping.
Definition at line 196 of file Mapping.h.
References isEmpty(), and sitesPositions_.
|
inlinevirtual | |||||||||||||
Implements bpp::Mapping.
|
inlinevirtual |
Implements bpp::Mapping.
Definition at line 180 of file Mapping.h.
References tree_.
Referenced by getSitePosition(), getTree(), and setSitePosition().
|
inline |
Definition at line 161 of file Mapping.h.
References nbBranches_, nbSites_, nodes_, sitesPositions_, and tree_.
Referenced by bpp::AbstractRewardMapping::operator=(), and bpp::AbstractSubstitutionMapping::operator=().
|
inlinevirtual |
Reimplemented in bpp::ProbabilisticSubstitutionMapping, and bpp::ProbabilisticRewardMapping.
Definition at line 214 of file Mapping.h.
References nbSites_, and sitesPositions_.
Referenced by bpp::ProbabilisticRewardMapping::setNumberOfSites(), and bpp::ProbabilisticSubstitutionMapping::setNumberOfSites().
|
inlinevirtual | ||||||||||||||||||||
Set the position of a given site.
| index | The site index. |
| position | The position of the site. |
Implements bpp::Mapping.
Definition at line 202 of file Mapping.h.
References isEmpty(), and sitesPositions_.
|
inline |
Definition at line 188 of file Mapping.h.
References nbBranches_, nodes_, and tree_.
Referenced by bpp::ProbabilisticRewardMapping::setTree(), and bpp::ProbabilisticSubstitutionMapping::setTree().
|
private |
Definition at line 138 of file Mapping.h.
Referenced by AbstractMapping(), getBranchLengths(), getNodeIndex(), getNumberOfBranches(), operator=(), and setTree().
|
private |
Definition at line 137 of file Mapping.h.
Referenced by getNumberOfSites(), operator=(), and setNumberOfSites().
|
private |
Definition at line 136 of file Mapping.h.
Referenced by AbstractMapping(), getBranchLengths(), getNode(), getNodeIndex(), operator=(), and setTree().
|
private |
Definition at line 135 of file Mapping.h.
Referenced by getSitePosition(), operator=(), setNumberOfSites(), and setSitePosition().
|
private |
Definition at line 134 of file Mapping.h.
Referenced by AbstractMapping(), getTree(), isEmpty(), operator=(), and setTree().