#include <elements.h>
Public Member Functions | |
element (string t, double d) | |
copy constructor | |
element () | |
default constructor | |
string | get_taxa () |
get_taxa function | |
double | get_dist () |
get distance function | |
Private Attributes | |
double | dist |
distance between two taxa | |
string | taxa |
actual two taxa |
this class assists with the clustering process by storing a set of taxa and their associated distance
element::element | ( | string | t, | |
double | d | |||
) |
copy constructor
takes in a string and a double and creates an element object out of them
t | holds taxa to be copied into element object | |
d | holds distance to be copied into element object |
< copy constructor
element::element | ( | ) |
default constructor
creates an element object with null values
< default constructor
double element::get_dist | ( | ) | [inline] |
get distance function
string element::get_taxa | ( | ) | [inline] |
get_taxa function