|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file.
55 return placements_.begin();
60 return placements_.end();
65 return placements_.cbegin();
70 return placements_.cend();
75 return { placements_ };
80 return { placements_ };
94 placements_.emplace_back( edge );
95 return placements_.back();
100 placements_.emplace_back( val );
101 return placements_.back();
108 placements_.emplace_back( val );
109 placements_.back().reset_edge( edge );
110 return placements_.back();
115 return placements_.size();
120 return placements_[index];
125 return placements_[index];
130 placements_.erase( placements_.begin() + index );
144 return names_.begin();
154 return names_.cbegin();
159 return names_.cend();
183 names_.emplace_back( name, multiplicity );
184 return names_.back();
190 return names_.back();
195 return names_.size();
200 return names_.at(index);
205 return names_.at(index);
210 names_.erase( names_.begin() + index );
void clear_placements()
Delete all PqueryPlacements of this Pquery.
size_t name_size() const
Return the number of PqueryNames stored in this Pquery.
void remove_name_at(size_t index)
Remove the PqueryName at a certain index position within this Pquery.
iterator_names begin_names()
void remove_placement_at(size_t index)
Remove the PqueryPlacement at a certain index position within this Pquery.
PqueryName & name_at(size_t index)
Return the PqueryName at a certain index.
iterator_placements begin_placements()
std::vector< PqueryPlacement >::iterator iterator_placements
Provides some valuable additions to STD.
void clear()
Clear all data stored in this Pquery, i.e., clear all PqueryNames and all PqueryPlacements.
PqueryPlacement & placement_at(size_t index)
Return the PqueryPlacement at a certain index.
PqueryName & add_name(std::string name="", double multiplicity=1.0)
Create a new PqueryName using the provided parameters, add it to the Pquery and return it.
iterator_names end_names()
std::vector< PqueryPlacement >::const_iterator const_iterator_placements
Simple wrapper for typical begin() and end() iterators, to be used in range-based for loops.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
utils::Range< iterator_names > names()
Return a Range iterator to the PqueryNames.
utils::Range< iterator_placements > placements()
Return a Range iterator to the PqueryPlacements.
size_t placement_size() const
Return the number of PqueryPlacements stored in this Pquery.
void clear_names()
Delete all PqueryNames of this Pquery.
std::vector< PqueryName >::iterator iterator_names
std::vector< PqueryName > & expose_names()
A name of a Pquery and its multiplicity.
iterator_placements end_placements()
One placement position of a Pquery on a Tree.
PqueryPlacement & add_placement(PlacementTreeEdge &edge)
Create a new PqueryPlacement at a given PlacementTreeEdge, add it to the Pquery and return it.
std::vector< PqueryName >::const_iterator const_iterator_names
std::vector< PqueryPlacement > & expose_placements()