|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TREE_ATTRIBUTE_TREE_INDEXED_NEWICK_READER_H_
2 #define GENESIS_TREE_ATTRIBUTE_TREE_INDEXED_NEWICK_READER_H_
210 std::string
const& target_key
244 std::string
const& target_key,
245 std::string
const& default_value
285 std::string
const& target_key_prefix
322 std::vector<std::string>
const& get_attribute_source_(
327 void process_indexed_attributes_(
333 void process_catch_all_attributes_(
345 struct AttributeDescriptor
350 std::string target_key;
351 std::string default_value;
355 std::vector<AttributeDescriptor> indexed_attributes_;
356 std::vector<AttributeDescriptor> catch_all_attributes_;
396 #endif // include guard
IndexedAttributeTreeNewickReaderPlugin self_type
void element_to_edge(NewickBrokerElement const &element, TreeEdge &edge) const
std::map< std::string, std::string > AttributeTreeMap
Alias for the map type used by an AttributeTree.
IndexedAttributeTreeNewickReaderPlugin()=default
Read Newick trees with ordered attributes for the Nodes and Edges.
Provide a set of plugin functions for NewickReader to read a CommonTree.
Source
Select which kind of Newick data to take, i.e., either comments, values, or tags.
Provide a set of plugin functions for NewickReader to read ordered attributes of the Nodes and Edges ...
void register_with(NewickReader &reader) const
virtual ~IndexedAttributeTreeNewickReaderPlugin()=default
Target
Select where to store the data, i.e., at Nodes or Edges of the Tree.
@ kValue
Take data from Newick values, i.e., :3.14.
@ kComment
Take data from Newick comments, i.e., [something].
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
@ kEdge
Store data at the attributes map of an AttributeTreeEdge.
IndexedAttributeTreeNewickReader()
void clear()
Reset all settings to the default, i.e., delete all attribute settings.
@ kTag
Take data from Newick tags, i.e., {42}.
self_type & add_attribute(Source source, size_t index, Target target, std::string const &target_key)
Store the Newick data at a given index in an AttributeTreeMap.
self_type & operator=(IndexedAttributeTreeNewickReaderPlugin const &)=default
Store the information for one element of a Newick tree.
void register_with(NewickReader &reader) const
@ kNode
Store data at the attributes map of an AttributeTreeNode.
void element_to_node(NewickBrokerElement const &element, TreeNode &node) const
self_type & add_catch_all(Source source, Target target, std::string const &target_key_prefix)
Store all Newick data of a given source in an AttributeTreeMap.