|
Public Types |
enum | TableType {
PEDIGREE,
GENETICMAP,
DECOMPOSED,
RESULTS,
ALLELEFREQUENCY,
UNKNOWNTABLETYPE
} |
Public Member Functions |
| DataTable (TableParser &parser) |
| ~DataTable () |
void | addColumn (DataColumn *column) |
unsigned | getColumnOrdinal (const char *name) const |
std::string | getColumnName (unsigned ordinal) const |
unsigned | getNumberOfColumns (void) const |
DataColumn * | getColumn (unsigned ordinal) const |
DataColumn * | getColumn (const std::string &name) const |
void | deleteFrontColumn () |
void | display () |
void | printInputTableAsTabDelimited (std::string filename) const |
void | printPedigreeTableAsTabDelimited (std::string filename) const |
const TableType | getTableType (void) const |
std::string | getTableTypeAsString (void) const |
const unsigned | getNumberOfRows (void) const |
bool | columnExists (const std::string &name) const |
void | toggleColumnsForPedigree (const std::vector< std::string > &columns) |
unsigned | getNumberOfShowOnPedigreeColumns () const |
Data * | getDataAtIndex (const std::string name, unsigned long index) const |
Data * | getDataAtIndex (unsigned columnIndex, unsigned long index) const |
int | getAffectedColumnIndex (void) const |
int | getDeceasedColumnIndex (void) const |
int | getDOBColumnIndex (void) const |
int | getDZTwinColumnIndex (void) const |
int | getMZTwinColumnIndex (void) const |
int | getProbandColumnIndex (void) const |
int | getSampledColumnIndex (void) const |
int | getSuperscriptColumnIndex (void) const |
int | getConsultandColumnIndex (void) const |
int | getCarrierColumnIndex (void) const |
int | getRelationshipEndedColumnIndex (void) const |
int | getInfertilityColumnIndex (void) const |
int | getSterilityColumnIndex (void) const |
unsigned | getIconColumnCount (void) const |
unsigned | getIconColumnIndex (unsigned nth) const |
unsigned | getLabelColumnIndex (unsigned nth) const |
const std::vector< unsigned > * | getIconColumnVector (void) const |
const std::vector< unsigned > * | getLabelColumnVector (void) const |
ColorSeriesStack * | getColorSeriesStack (void) const |
ColorSeries * | getColorSeriesFromStack (unsigned nth) const |
ColorSeries * | getBlackAndWhiteSeriesFromStack (unsigned nth) const |
Static Public Attributes |
static const int | COLUMN_IS_MISSING = -1 |
static FieldLabels | labels |
Private Member Functions |
void | _setDeclaredTypesFromParser (const std::vector< char > *pDeclaredTypes) |
void | _determineTableType (const std::vector< std::string > *pTitles) |
void | _classifyRemainingColumns (const std::vector< std::string > *pElements, const std::vector< std::string > *pTitles) |
void | _setColorSeriesStack (void) |
Private Attributes |
TableType | _tabletype |
FileTypeClassifier | _fileTypeClassifier |
FileTypeClassifier::FILE_TYPE | _fileType |
const char * | _fileTypeName |
std::set< DataColumn *, ltstr > | _columnSet |
std::vector< std::set< DataColumn *,
ltstr >::iterator > | _columnVector |
std::vector< DATATYPE > | _finalTypes |
unsigned long | _rows |
unsigned | _columns |
std::vector< unsigned > | _iconColumns |
std::vector< unsigned > | _labelColumns |
ColorSeriesStack * | _colorSeriesStack |
ColorSeriesStack * | _blackAndWhiteSeriesStack |
int | _affectedColumnIndex |
int | _deceasedColumnIndex |
int | _dobColumnIndex |
int | _dzTwinColumnIndex |
int | _mzTwinColumnIndex |
int | _probandColumnIndex |
int | _sampledColumnIndex |
int | _superscriptColumnIndex |
int | _consultandColumnIndex |
int | _carrierColumnIndex |
int | _relationshipEndedColumnIndex |
int | _infertilityColumnIndex |
int | _sterilityColumnIndex |
Classes |
struct | ltstr |
This class is used as a container for all types of data tables encountered in Madeline. At the same time, some aspects of the class are specific to pedigree tables (the most common table type encountered in Madeline). Due to the way that the table classi- fication code works, we felt it was better --without being very expensive-- to add some pedigree-table-specific functionality directly into DataTable rather than have to break out separate subclasses for each table type.