|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_PLACEMENT_PQUERY_H_
2 #define GENESIS_PLACEMENT_PQUERY_H_
57 class PlacementEdgeData;
58 class PlacementNodeData;
306 std::vector<PqueryPlacement> placements_;
307 std::vector<PqueryName> names_;
314 #endif // include guard
void clear_placements()
Delete all PqueryPlacements of this Pquery.
size_t name_size() const
Return the number of PqueryNames stored in this Pquery.
Header of PqueryPlacement class.
void remove_name_at(size_t index)
Remove the PqueryName at a certain index position within this Pquery.
iterator_names begin_names()
Pquery & operator=(Pquery const &)=default
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
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.
A pquery holds a set of PqueryPlacements and a set of PqueryNames.
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< PqueryName > PqueryNames
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< PqueryPlacement > PqueryPlacements
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()