NxsDiscreteDatatypeMapper Class Reference

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>

List of all members.

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

Detailed Description

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Enumerator Friends
Generated on Mon Mar 29 16:37:12 2010 for NCL by  doxygen 1.6.3