This abstract class describes the interface that every block that wants to serve as a reader of NEXUS TAXA blocks should fulfill. More...
Public Member Functions
|virtual unsigned||AddTaxonLabel (const std::string &s)=0|
|virtual void||ChangeTaxonLabel (unsigned i, NxsString s)=0|
|virtual unsigned||FindTaxon (const NxsString &label) const =0|
|virtual bool||IsAlreadyDefined (const std::string &label)=0|
|virtual unsigned||GetMaxTaxonLabelLength ()=0|
|virtual unsigned||GetNumTaxonLabels () const =0|
|virtual unsigned||GetNTax () const =0|
|virtual unsigned||GetNTaxTotal () const =0|
|virtual NxsString||GetTaxonLabel (unsigned i) const =0|
|virtual std::vector< std::string >||GetAllLabels () const|
|virtual unsigned||TaxLabelToNumber (const std::string &label) const =0|
|virtual void||HandleTaxLabels (NxsToken &token)=0|
|virtual void||WriteTaxLabelsCommand (std::ostream &out) const =0|
|virtual void||SetNtax (unsigned n)=0|
|virtual unsigned||GetNumActiveTaxa () const =0|
|virtual bool||IsActiveTaxon (unsigned i) const =0|
|virtual unsigned||InactivateTaxa (const std::set< unsigned > &s)=0|
|virtual unsigned||ActivateTaxa (const std::set< unsigned > &)=0|
|virtual unsigned||InactivateTaxon (unsigned)=0|
|virtual unsigned||ActivateTaxon (unsigned)=0|
This abstract class describes the interface that every block that wants to serve as a reader of NEXUS TAXA blocks should fulfill.
A parsed taxa block in NEXUS is essentially a list of unique taxon labels.
When compared the label comparison is not case-sensitive.
The taxon can be referred to in NEXUS files by its number (numbering starting at 1), or its label.