This class stores the information needed to map the internal storage for a cell of a matrix (a "state code") to the set of states that it corresponds to. More...
#include <nxscharactersblock.h>
Public Member Functions | |
NxsDiscreteDatatypeMapper () | |
NxsDiscreteDatatypeMapper (NxsCharactersBlock::DataTypesEnum datatypeE, bool hasGaps) | |
NxsDiscreteDatatypeMapper (NxsCharactersBlock::DataTypesEnum datatype, const std::string &symbols, char missingChar, char gapChar, char matchChar, bool respectCase, const std::map< char, NxsString > &extraEquates) | |
unsigned | GetNumStateCodes () const |
const std::set < NxsDiscreteStateCell > & | GetStateSetForCode (NxsDiscreteStateCell stateCode) const |
bool | IsSemanticallyEquivalent (const NxsDiscreteDatatypeMapper &other) const |
bool | IsPolymorphic (NxsDiscreteStateCell stateCode) const |
NxsDiscreteStateCell | PositionInSymbols (const char currChar) const |
NxsDiscreteStateCell | GetStateCodeStored (char currChar) const |
NxsDiscreteStateCell | GetHighestStateCode () const |
NxsDiscreteStateCell | GetOneStateForCode (NxsDiscreteStateCell stateCode, unsigned stateIndex) const |
NxsDiscreteStateRow | GetStateVectorForCode (NxsDiscreteStateCell stateCode) const |
std::string | StateCodeToNexusString (NxsDiscreteStateCell, bool demandSymbols=true) const |
void | WriteStateCodeAsNexusString (std::ostream &out, NxsDiscreteStateCell scode, bool demandSymbols=true) const |
bool | WasRestrictionDataype () const |
NxsDiscreteStateCell | EncodeNexusStateString (const std::string &stateAsNexus, NxsToken &token, const unsigned taxInd, const unsigned charInd, const NxsDiscreteStateRow *firstTaxonRow, const NxsString &nameStr) |
NxsDiscreteStateCell | StateCodeForStateSet (const std::set< NxsDiscreteStateCell > &, const bool isPolymorphic, const bool addToLookup, const char symbol) |
void | DebugWriteMapperFields (std::ostream &out) const |
This class stores the information needed to map the internal storage for a cell of a matrix (a "state code") to the set of states that it corresponds to.
Definition at line 1126 of file nxscharactersblock.h.