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

Boolean Class Reference

Boolean is a data type that is derived from Data. More...

#include <Boolean.h>

Inheritance diagram for Boolean:

Data Carrier Consultand Gender LivingDead Proband Sampled List of all members.

Public Member Functions

 Boolean ()
 Boolean (const char *value)
 Boolean (const std::string &value)
virtual bool isMissing (void) const
virtual void setMissing (void)
virtual void set (const char *value)
virtual void set (const std::string &value)
virtual const std::string get (void) const
char getAsChar (void) const
virtual void set (const bool value)
virtual const bool getBoolean (void) const
bool operator== (const Data &b) const
bool operator< (const Data &b) const
virtual Booleanclone () const
const DATATYPE getDataType (void) const

Static Public Member Functions

static void addLookupTableEntry (std::string label, bool value)

Protected Attributes

bool _value
bool _isMissing

Static Private Attributes

static std::map< std::string,
bool > 
_lookupTable

Friends

class BooleanMapLoader

Detailed Description

Boolean is a data type that is derived from Data.

Boolean variables can take the values true, false or missing


Constructor & Destructor Documentation

Boolean::Boolean  )  [inline]
 

Boolean::Boolean const char *  value  )  [inline]
 

Boolean::Boolean const std::string &  value  )  [inline]
 


Member Function Documentation

void Boolean::addLookupTableEntry std::string  label,
bool  value
[static]
 

Reimplemented in Carrier, Consultand, Gender, LivingDead, Proband, and Sampled.

Boolean * Boolean::clone  )  const [virtual]
 

Implements Data.

virtual const std::string Boolean::get void   )  const [inline, virtual]
 

Implements Data.

Reimplemented in Carrier, Consultand, Gender, LivingDead, Proband, and Sampled.

char Boolean::getAsChar void   )  const [inline]
 

virtual const bool Boolean::getBoolean void   )  const [inline, virtual]
 

const DATATYPE Boolean::getDataType void   )  const [inline, virtual]
 

Implements Data.

virtual bool Boolean::isMissing void   )  const [inline, virtual]
 

Implements Data.

bool Boolean::operator< const Data b  )  const [virtual]
 

operator<

NOTA BENE: This is used for SORTING ONLY

Implements Data.

bool Boolean::operator== const Data b  )  const [virtual]
 

Implements Data.

virtual void Boolean::set const bool  value  )  [inline, virtual]
 

Reimplemented in Carrier, Consultand, Gender, LivingDead, Proband, and Sampled.

void Boolean::set const std::string &  value  )  [virtual]
 

Implements Data.

Reimplemented in Carrier, Consultand, Gender, LivingDead, Proband, and Sampled.

void Boolean::set const char *  value  )  [virtual]
 

Implements Data.

Reimplemented in Carrier, Consultand, Gender, LivingDead, Proband, and Sampled.

virtual void Boolean::setMissing void   )  [inline, virtual]
 

Implements Data.


Friends And Related Function Documentation

friend class BooleanMapLoader [friend]
 


Member Data Documentation

bool Boolean::_isMissing [protected]
 

std::map< std::string, bool > Boolean::_lookupTable [static, private]
 

Reimplemented in Carrier, Consultand, Gender, LivingDead, Proband, and Sampled.

bool Boolean::_value [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