V |
|
unsigned |
|
AddTaxonLabel (NxsString s) |
|
|
|
|
Adds taxon label 's' to end of list of taxon labels and increments ntax by 1. Returns index of taxon label just added. |
|
|
|
void |
|
ChangeTaxonLabel (unsigned i, NxsString s) |
|
|
|
|
Changes the label for taxon 'i' to 's'. |
|
|
|
unsigned |
|
FindTaxon (NxsString s) |
|
|
|
|
Returns index of taxon named 's' in taxonLabels list. If taxon named 's' cannot be found, or if there are no labels currently stored in the taxonLabels list, throws NxsX_NoSuchTaxon exception. |
|
|
|
unsigned |
|
GetMaxTaxonLabelLength () |
|
|
|
|
Returns the length of the longest taxon label stored. Useful for formatting purposes in outputting the data matrix (i.e., you want the left edge of the matrix to line up). |
|
|
|
|
|
bool |
|
IsAlreadyDefined (NxsString s) |
|
|
|
|
Returns true if taxon label equal to 's' can be found in the taxonLabels list, and returns false otherwise. |
|
|
|
bool |
|
NeedsQuotes (unsigned i) |
|
|
|
|
Returns true if taxonLabels[i] contains embedded spaces and thus should be surrounded by single quotes if output is NEXUS format. |
|
|
|
V |
|
void |
|
Read (NxsToken &token) |
|
|
|
|
This function provides the ability to read everything following the block name (which is read by the NxsReader object) to the end or endblock statement. Characters are read from the input stream in. Overrides the abstract virtual function in the base class. |
|
V |
|
void |
|
Report (ostream &out) |
|
|
|
|
This function outputs a brief report of the contents of this taxa block. Overrides the abstract virtual function in the base class. |
|
V |
|
void |
|
Reset () |
|
|
|
|
Flushes taxonLabels and sets ntax to 0 in preparation for reading a new TAXA block. |
|
|
|
void |
|
SetNtax (unsigned n) |
|
|
|
|
Sets ntax to n. |
|