|
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_READER_H_
2 #define GENESIS_TREE_FORMATS_NEWICK_SIMPLE_READER_H_
85 if( edge_data.values.size() > 0 ) {
86 edge_data.values.erase( edge_data.values.begin() );
88 edge_data.tags = element.
tags;
149 #endif // include guard
create_node_data_function create_node_data_plugin
std::vector< std::string > comments
Arbitrary strings that can be attached to a node, e.g. in Newick format via "[]".
SimpleNewickTreeNewickReaderPlugin & operator=(SimpleNewickTreeNewickReaderPlugin const &)=default
Provide a set of plugin functions for NewickReader to read a CommonTree.
create_edge_data_function create_edge_data_plugin
void element_to_edge(NewickBrokerElement const &element, TreeEdge &edge) const
void register_with(NewickReader &reader) const
std::vector< std::string > values
Numerical values associated with the node, i.e. branch lengths.
std::vector< element_to_edge_function > element_to_edge_plugins
Data class for SimpleNewickTreeNodes.
std::vector< std::string > values
Numerical values associated with the node, excluding branch lengths.
static std::unique_ptr< SimpleNewickNodeData > create()
std::vector< std::string > tags
Arbitrary strings that can be attached to a node, e.g. in Newick format via "{}".
static std::unique_ptr< SimpleNewickEdgeData > create()
SimpleNewickTreeNewickReaderPlugin()=default
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
bool enable_tags() const
Return whether currently Newick tags are enabled.
std::vector< std::string > comments
List of comments such as NHX elements.
std::vector< element_to_node_function > element_to_node_plugins
void register_with(NewickReader &reader) const
void element_to_node(NewickBrokerElement const &element, TreeNode &node) const
Store the information for one element of a Newick tree.
Data class for SimpleNewickTreeEdges.
SimpleNewickTreeNewickReader()
virtual ~SimpleNewickTreeNewickReaderPlugin()=default