unsigned NxsUnalignedBlock::GetNumStates ( unsigned  taxInd,
unsigned  charInd 
)

Returns the number of states for taxon `i', character `j'.

If `j' is equal to or greater than the number of characters for taxon `i', returns UINT_MAX. If there is missing data, the return value is 0, otherwise a positive integer will be returned. An alternative is to use the function GetInternalRepresentation to obtain a vector of all states, and the size of that vector could be used to determine both the number and the identity of the states. If no data was stored for the taxon having index i in the UNALIGNED block, a NxsUnalignedBlock::NxsX_NoDataForTaxon exception is thrown.

Definition at line 837 of file nxsunalignedblock.cpp.

 All Classes Functions Variables Enumerations Enumerator Friends
Generated on Mon Mar 29 16:37:13 2010 for NCL by  doxygen 1.6.3