ʻOhana
Population structure, admixture history, and selection using learning methods.
Public Types | Static Public Member Functions
jade::basic_nwk2svg< TValue > Class Template Reference

A template for a class that converts Newick-formatted trees to SVG representations. More...

#include <jade.nwk2svg.hpp>

+ Collaboration diagram for jade::basic_nwk2svg< TValue >:

Public Types

typedef TValue value_type
 The value type. More...
 
typedef jade::basic_newick_node< value_typenode_type
 The node type. More...
 
typedef jade::basic_svg_tree< value_typesvg_tree_type
 The SVG tree type. More...
 

Static Public Member Functions

static void execute (std::istream &in, std::ostream &out)
 Executes the program through the specified streams. More...
 

Detailed Description

template<typename TValue>
class jade::basic_nwk2svg< TValue >

A template for a class that converts Newick-formatted trees to SVG representations.

Definition at line 19 of file jade.nwk2svg.hpp.

Member Typedef Documentation

◆ node_type

template<typename TValue >
typedef jade::basic_newick_node<value_type> jade::basic_nwk2svg< TValue >::node_type

The node type.

Definition at line 26 of file jade.nwk2svg.hpp.

◆ svg_tree_type

template<typename TValue >
typedef jade::basic_svg_tree<value_type> jade::basic_nwk2svg< TValue >::svg_tree_type

The SVG tree type.

Definition at line 29 of file jade.nwk2svg.hpp.

◆ value_type

template<typename TValue >
typedef TValue jade::basic_nwk2svg< TValue >::value_type

The value type.

Definition at line 23 of file jade.nwk2svg.hpp.

Member Function Documentation

◆ execute()

template<typename TValue >
static void jade::basic_nwk2svg< TValue >::execute ( std::istream &  in,
std::ostream &  out 
)
inlinestatic

Executes the program through the specified streams.

Parameters
inThe input stream.
outThe output stream.

Definition at line 34 of file jade.nwk2svg.hpp.

37  {
38  node_type node (in);
39  svg_tree_type svg (node);
40 
41  svg.optimize_positions();
42  svg.write(out);
43  }
+ Here is the call graph for this function:

The documentation for this class was generated from the following file:
jade::basic_nwk2svg::svg_tree_type
jade::basic_svg_tree< value_type > svg_tree_type
The SVG tree type.
Definition: jade.nwk2svg.hpp:29
jade::basic_nwk2svg::node_type
jade::basic_newick_node< value_type > node_type
The node type.
Definition: jade.nwk2svg.hpp:26