template<class T, std::predicate< T > P1, std::predicate< T > P2, Formattable< T > F1, Formattable< T > F2, class Policy = PAUP>
class quetzal::format::newick::generator< T, P1, P2, F1, F2, Policy >
Generate the Newick formula from an external (custom) tree class.
|
| generator (P1 has_parent, P2 has_children, F1 label, F2 branch_length, Policy pol={}) |
| Constructor.
|
|
auto | pre_order () |
| Operation called in the general DFS algorithm to open a parenthesis if node has children to be visited.
|
|
auto | in_order () |
| Operation called in the general DFS algorithm to add a comma between visited nodes.
|
|
auto | post_order () |
| Operation to be passed to a generic DFS algorithm to open a parenthesis if node has children to be visited.
|
|
bool | has_forbidden_characters (const std::string &s) const |
| Check if a string contains characters forbidden by the standard.
|
|
void | clear () |
| Clear the formula buffer to refresh the generator.
|
|
std::string && | take_result () const |
| Retrieve the formatted string of the given node in the specified format.
|
|