|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TREE_FORMATS_NEWICK_SIMPLE_WRITER_H_
2 #define GENESIS_TREE_FORMATS_NEWICK_SIMPLE_WRITER_H_
78 for(
auto const& comment : node_data.comments ) {
79 element.
comments.push_back( comment );
88 for(
auto const& value : edge_data.values ) {
89 element.
values.push_back( value );
91 for(
auto const& tag : edge_data.tags ) {
92 element.
tags.push_back( tag );
137 #endif // include guard
virtual ~SimpleNewickTreeNewickWriterPlugin()=default
void register_with(NewickWriter &writer) const
std::vector< std::string > comments
Arbitrary strings that can be attached to a node, e.g. in Newick format via "[]".
Write a Tree to Newick format.
void node_to_element(TreeNode const &node, NewickBrokerElement &element) const
std::vector< std::string > values
Numerical values associated with the node, i.e. branch lengths.
Data class for SimpleNewickTreeNodes.
std::vector< edge_to_element_function > edge_to_element_plugins
Collect all functions to be called for each TreeEdge in order to translate it to a Newick representat...
std::vector< std::string > tags
Arbitrary strings that can be attached to a node, e.g. in Newick format via "{}".
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
SimpleNewickTreeNewickWriterPlugin()=default
Provide a set of plugin functions for NewickWriter to write a CommonTree.
SimpleNewickTreeNewickWriter()
void register_with(NewickWriter &writer) const
void edge_to_element(TreeEdge const &edge, NewickBrokerElement &element) const
Store the information for one element of a Newick tree.
Data class for SimpleNewickTreeEdges.
SimpleNewickTreeNewickWriterPlugin & operator=(SimpleNewickTreeNewickWriterPlugin const &)=default
std::vector< node_to_element_function > node_to_element_plugins
Collect all functions to be called for each TreeNode in order to translate it to a Newick representat...