V |
|
void |
|
BriefReport (NxsString &s) |
|
|
|
|
Outputs a brief description of this block's contents to the referenced NxsString. An example of the output of this command is shown below: TREES block contains 102 trees
|
|
|
|
unsigned |
|
GetNumDefaultTree () |
|
|
|
|
Returns the 0-offset index of the default tree, which will be 0 if there is only one tree stored or no trees stored. If more than one tree is stored, the default tree will be the one specifically indicated by the user (using an asterisk in the data file), or 0 if the user failed to specify. |
|
|
|
unsigned |
|
GetNumTrees () |
|
|
|
|
Returns the number of trees stored in this NxsTreesBlock object. |
|
|
|
NxsString |
|
GetTranslatedTreeDescription (unsigned i) |
|
|
|
|
Returns the description of the tree stored at position i in treeName. Assumes that i will be in the range [0..ntrees). Node numbers will be translated to names in the resulting tree description. Use GetTreeDescription if translation is not desired. |
|
|
|
NxsString |
|
GetTreeDescription (unsigned i) |
|
|
|
|
Returns the description of the tree stored at position i in treeDescription. Assumes that i will be in the range [0..ntrees). |
|
|
|
NxsString |
|
GetTreeName (unsigned i) |
|
|
|
|
Returns the name of the tree stored at position i in treeName. Assumes that i will be in the range [0..ntrees). |
|
|
|
void |
|
HandleTreeDescription (NxsToken &token, bool utree) |
|
|
|
|
Takes control from the Read member function when a TREE or UTREE command is encountered. If a TREE command is found, the HandleTreeDescription member function is called with utree equal to false. If a UTREE command is found, utree equals true. |
|
|
|
bool |
|
IsDefaultTree (unsigned i) |
|
|
|
|
Returns true if the ith tree (0-offset) is the default tree, false otherwise. Assumes that i will be in the range [0..ntrees). |
|
|
|
bool |
|
IsRootedTree (unsigned i) |
|
|
|
|
Returns true if the ith tree (0-offset) is rooted, false otherwise. Assumes that i will be in the range [0..ntrees). |
|
C |
|
|
|
NxsTreesBlock (NxsTaxaBlock *tb) |
|
|
|
|
Initializes id to "TREES", ntrees to 0, defaultTree to 0, and taxa to tb. Assumes tb is non-NULL. |
|
D |
|
|
|
~NxsTreesBlock () |
|
|
|
|
Clears translateList, rooted, treeName and treeDescription. |
|
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 command. Characters are read from the input stream in. Overrides the abstract virtual function in the base class. |
|
|
|
void |
|
ReplaceTaxaBlockPtr (NxsTaxaBlock *tb) |
|
|
|
|
Makes data member taxa point to tb rather than the NxsTaxaBlock object it was previously pointing to. Assumes tb is non-NULL. |
|
V |
|
void |
|
Report (ostream &out) |
|
|
|
|
This function outputs a brief report of the contents of this block. Overrides the abstract virtual function in the base class. |
|
V |
|
void |
|
Reset () |
|
|
|
|
Flushes treeName, treeDescription, translateList and rooted, and sets ntrees and defaultTree both to 0 in preparation for reading a new TREES block. |
|