|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_PLACEMENT_PLACEMENT_TREE_H_
2 #define GENESIS_PLACEMENT_PLACEMENT_TREE_H_
111 static std::unique_ptr< PlacementNodeData >
create()
116 virtual std::unique_ptr< BaseNodeData >
recreate()
const override
121 virtual std::unique_ptr< BaseNodeData >
clone()
const override
172 static std::unique_ptr< PlacementEdgeData >
create()
177 virtual std::unique_ptr< BaseEdgeData >
recreate()
const override
182 virtual std::unique_ptr< BaseEdgeData >
clone()
const override
222 #endif // include guard
virtual std::unique_ptr< BaseNodeData > clone() const override
Polymorphically copy an instance of this class. Use instead of copy constructor.
PlacementNodeData()=default
EdgeNumType edge_num() const
Return the edge_num of this edge. This value is defined by the jplace standard.
virtual ~PlacementEdgeData() override=default
static std::unique_ptr< PlacementEdgeData > create()
virtual std::unique_ptr< BaseEdgeData > clone() const override
Polymorphically copy an instance of this class. Use instead of copy constructor.
PlacementNodeData & operator=(PlacementNodeData &&)=delete
Data class for PlacementTreeEdges. Stores the branch length of the edge, and the edge_num,...
PlacementEdgeData()=default
void reset_edge_num(EdgeNumType val)
Force to set the edge_num to a certain value.
Data class for PlacementTreeNodes. Stores a node name.
virtual ~PlacementNodeData() override=default
tree::Tree PlacementTree
Alias for a tree::Tree used for a tree with information needed for storing Pqueries....
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
PlacementEdgeData & operator=(PlacementEdgeData &&)=delete
Common class containing the commonly needed data for tree edges.
Common class containing the commonly needed data for tree nodes.
virtual std::unique_ptr< BaseNodeData > recreate() const override
Polymorphically create a default-constructed instance of this class with the same derived type as it ...
int EdgeNumType
Data type used for the edge_num() property of the edges in a PlacementTree.
virtual std::unique_ptr< BaseEdgeData > recreate() const override
Polymorphically create a default-constructed instance of this class with the same derived type as it ...
static std::unique_ptr< PlacementNodeData > create()