Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Data Class Reference

#include <Data.h>

Inheritance diagram for Data:

Boolean Date Genotype Haplotype Number String Carrier Consultand Gender LivingDead Proband Sampled Affected Infertility RelationshipEnded Sterility Twin List of all members.

Public Member Functions

 Data ()
virtual ~Data ()
virtual bool isMissing (void) const =0
virtual void setMissing (void)=0
virtual void set (const std::string &)=0
virtual void set (const char *)=0
virtual const std::string get (void) const =0
virtual const DATATYPE getDataType (void) const =0
virtual Dataclone () const =0
virtual bool operator== (const Data &) const =0
virtual bool operator< (const Data &) const =0

Static Public Member Functions

static void addGlobalMissingValue (std::string value)
static bool isGlobalMissingValue (std::string value)
static std::string & trim (std::string &s, const std::string &drop="            ​⁠ ")

Static Protected Attributes

static std::set< std::string > _missingValue

Static Private Attributes

static bool _displayNumberSeparators
static bool _displayNativeDigitsInDates
static bool _displayNativeDigitsInNumbers

Friends

class DataMissingValueLoader

Constructor & Destructor Documentation

Data::Data  )  [inline]
 

virtual Data::~Data  )  [inline, virtual]
 


Member Function Documentation

void Data::addGlobalMissingValue std::string  value  )  [static]
 

addGlobalMissingValue: The default missing value is "." for all data types. The user can specify an alternative missing value by calling this static method.

virtual Data* Data::clone  )  const [pure virtual]
 

Implemented in Boolean, Date, Genotype, Haplotype, Number, and String.

virtual const std::string Data::get void   )  const [pure virtual]
 

Implemented in Boolean, Carrier, Consultand, Date, Gender, Genotype, Haplotype, LivingDead, Number, Proband, Sampled, String, and Twin.

virtual const DATATYPE Data::getDataType void   )  const [pure virtual]
 

Implemented in Boolean, Date, Genotype, Haplotype, Number, and String.

bool Data::isGlobalMissingValue std::string  value  )  [static]
 

virtual bool Data::isMissing void   )  const [pure virtual]
 

Implemented in Boolean, Date, Genotype, Haplotype, Number, and String.

virtual bool Data::operator< const Data  )  const [pure virtual]
 

Implemented in Boolean, Date, Genotype, Haplotype, Number, and String.

virtual bool Data::operator== const Data  )  const [pure virtual]
 

Implemented in Boolean, Date, Genotype, Haplotype, Number, and String.

virtual void Data::set const char *   )  [pure virtual]
 

Implemented in Affected, Boolean, Carrier, Consultand, Date, Gender, Genotype, Haplotype, Infertility, LivingDead, Number, Proband, RelationshipEnded, Sampled, Sterility, and String.

virtual void Data::set const std::string &   )  [pure virtual]
 

Implemented in Boolean, Carrier, Consultand, Date, Gender, Genotype, Haplotype, LivingDead, Number, Proband, Sampled, and String.

virtual void Data::setMissing void   )  [pure virtual]
 

Implemented in Boolean, Date, Genotype, Haplotype, Number, and String.

std::string & Data::trim std::string &  s,
const std::string &  drop = "              ​⁠ "
[static]
 

trim(): Trim takes a non-const *reference* to a string and modifies the original string, and returns a reference to the original string: Also note that the default "drop" string in Data.h contains numerous Unicode space characters like ZWSP, NBSP, ZWNBSP, N SPACE, M SPACE, etc.:


Friends And Related Function Documentation

friend class DataMissingValueLoader [friend]
 


Member Data Documentation

bool Data::_displayNativeDigitsInDates [static, private]
 

bool Data::_displayNativeDigitsInNumbers [static, private]
 

bool Data::_displayNumberSeparators [static, private]
 

std::set< std::string > Data::_missingValue [static, protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4