#include <DataColumn.h>
Public Member Functions | |
DataColumn () | |
DataColumn (const std::string &name, DATATYPE columnType=MISSING, unsigned long rows=0, unsigned ordinal=0) | |
~DataColumn () | |
void | setColumnType (DATATYPE columnType) |
void | setName (const char *name) |
void | setName (const std::string &name) |
void | setShowOnPedigree (bool value) |
void | setShowOnIcon (bool value) |
void | set (std::vector< std::string > &vec) |
void | setRow (unsigned long row, const std::string &value) |
bool | True () const |
bool | False () const |
DATATYPE | getColumnType (void) const |
std::string | getColumnTypeAsString (void) const |
int | getOrdinal (void) const |
int | getNumberOfRows (void) const |
std::string | getName (void) const |
std::string | getCaseInvariantName (void) const |
bool | getShowOnPedigree (void) const |
bool | getShowOnIcon (void) const |
void | printData (void) |
void | printData (unsigned long i) |
std::string | get (unsigned long i) const |
Data * | getDataAtIndex (unsigned long i) const |
std::vector< Data * > | getData () |
const UniqueList *const | getUniqueList (void) |
Private Attributes | |
std::string | _name |
int | _ordinal |
DATATYPE | _columnType |
unsigned long | _rows |
std::vector< Data * > | _data |
bool | _showOnPedigree |
bool | _showOnIcon |
UniqueList * | _uniqueList |
|
|
|
|
|
|
|
|
|
get: Get data at index as a string. |
|
getCaseInvariantName() : Used for sorting and searching |
|
|
|
|
|
|
|
getDataAtIndex: |
|
|
|
|
|
|
|
|
|
|
|
getUniqueList(): Creates a list of unique data values present in the data column. This cannot be a const method because it needs to create the private _uniqueList if not yet present: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|