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
Source
Select which kind of Newick data to take, i.e., either comments, values, or tags. ...
virtual ~IndexedAttributeTreeNewickReaderPlugin()=default
IndexedAttributeTreeNewickReaderPlugin self_type
Read Newick trees with ordered attributes for the Nodes and Edges.
void clear()
Reset all settings to the default, i.e., delete all attribute settings.
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.
void register_with(NewickReader &reader) const
void register_with(NewickReader &reader) const
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.
Provide a set of plugin functions for NewickReader to read ordered attributes of the Nodes and Edges ...
Store data at the attributes map of an AttributeTreeEdge.
self_type & operator=(IndexedAttributeTreeNewickReaderPlugin const &)=default
Take data from Newick values, i.e., :3.14.
void element_to_edge(NewickBrokerElement const &element, TreeEdge &edge) const
Store data at the attributes map of an AttributeTreeNode.
Provide a set of plugin functions for NewickReader to read a DefaultTree.
Target
Select where to store the data, i.e., at Nodes or Edges of the Tree.
Take data from Newick tags, i.e., {42}.
Take data from Newick comments, i.e., [something].
std::map< std::string, std::string > AttributeTreeMap
Alias for the map type used by an AttributeTree.
IndexedAttributeTreeNewickReaderPlugin()=default
Store the information for one element of a Newick tree.
void element_to_node(NewickBrokerElement const &element, TreeNode &node) const
IndexedAttributeTreeNewickReader()