#include <SimpleDB.h>
Collaboration diagram for PLearn::FieldValue:

Public Member Functions | |
| FieldValue () | |
| Default construction and copy construction.   | |
| FieldValue (const FieldValue &fv) | |
| ~FieldValue () | |
| FieldValue (const char *) | |
| Constructors from concrete values.   | |
| FieldValue (unsigned char) | |
| FieldValue (signed char) | |
| FieldValue (short) | |
| FieldValue (int) | |
| FieldValue (float) | |
| FieldValue (double) | |
| FieldValue (const PDate &) | |
| bool | isMissing () const | 
| Missing value handling.   | |
| void | setMissing () | 
| string | toString () const | 
| Conversion to strings and doubles.   | |
| double | toDouble () const | 
| PDate | toDate () const | 
| operator double () const | |
| operator float () const | |
| operator int () const | |
| operator string () const | |
| operator PDate () const | |
| FieldValue & | operator= (FieldValue) | 
| --- Pseudo-polymorphic operations Assignment   | |
| bool | operator== (const FieldValue &) const | 
| Relational (relational operations don't always make sense).   | |
| bool | operator< (const FieldValue &) const | 
| bool | operator!= (const FieldValue &rhs) const | 
| bool | operator<= (const FieldValue &rhs) const | 
| bool | operator> (const FieldValue &rhs) const | 
| bool | operator>= (const FieldValue &rhs) const | 
| FieldValue | operator+ (const FieldValue &) const | 
| Arithmetic (again, these don't always make sense).   | |
| FieldValue | operator- (const FieldValue &) const | 
| FieldValue | operator * (const FieldValue &) const | 
| FieldValue | operator/ (const FieldValue &) const | 
| void | swap (FieldValue &) | 
| Swap the guts of this with someone else.   | |
| bool | isString () const | 
| Some useful type-checking predicates.   | |
| bool | isIntegral () const | 
| bool | isFloating () const | 
| bool | isDate () const | 
Private Attributes | |
| FieldType | field_type_ | 
| int | precision_ | 
Definition at line 236 of file SimpleDB.h.
      
  | 
  
| 
 Default construction and copy construction. 
 Definition at line 101 of file SimpleDB.cc. References PLearn::Unknown. Referenced by operator *(), operator+(), operator-(), and operator/().  | 
  
      
  | 
  
| 
 
 Definition at line 105 of file SimpleDB.cc. References PLearn::CharacterType, date_val_, PLearn::DateType, double_val_, PLearn::DoubleType, field_type_, PLearn::FloatType, PLearn::IntType, long_val_, PLERROR, precision_, PLearn::ShortType, PLearn::SignedCharType, string_val_, PLearn::StringType, PLearn::strlen(), and PLearn::Unknown.  | 
  
      
  | 
  
| 
 
 Definition at line 140 of file SimpleDB.cc. References PLearn::CharacterType, PLearn::DateType, PLearn::DoubleType, field_type_, PLearn::FloatType, PLearn::IntType, PLearn::ShortType, PLearn::SignedCharType, string_val_, PLearn::StringType, and PLearn::Unknown.  | 
  
      
  | 
  
| 
 Constructors from concrete values. 
 Definition at line 158 of file SimpleDB.cc. References precision_, string_val_, and PLearn::StringType.  | 
  
      
  | 
  
| 
 
 Definition at line 165 of file SimpleDB.cc. References PLearn::CharacterType, and x.  | 
  
      
  | 
  
| 
 
 Definition at line 171 of file SimpleDB.cc. References PLearn::SignedCharType, and x.  | 
  
      
  | 
  
| 
 
 Definition at line 177 of file SimpleDB.cc. References PLearn::ShortType, and x.  | 
  
      
  | 
  
| 
 
 Definition at line 183 of file SimpleDB.cc. References PLearn::IntType, and x.  | 
  
      
  | 
  
| 
 
 Definition at line 189 of file SimpleDB.cc. References PLearn::FloatType, and x.  | 
  
      
  | 
  
| 
 
 Definition at line 195 of file SimpleDB.cc. References PLearn::DoubleType, and x.  | 
  
      
  | 
  
| 
 
 Definition at line 201 of file SimpleDB.cc. References date_val_, PLearn::DateType, PLearn::FieldValue::DateVal_t::day, PLearn::FieldValue::DateVal_t::month, x, and PLearn::FieldValue::DateVal_t::year.  | 
  
      
  | 
  
| 
 
 Definition at line 320 of file SimpleDB.h. References PLearn::DateType, and field_type_. Referenced by PLearn::SDBVMFieldDateDiff::convertField(), and PLearn::FieldRowRef::operator=().  | 
  
      
  | 
  
| 
 
 Definition at line 316 of file SimpleDB.h. References PLearn::DoubleType, field_type_, and PLearn::FloatType. Referenced by operator *(), operator+(), operator-(), operator/(), operator<(), PLearn::FieldRowRef::operator=(), and operator==().  | 
  
      
  | 
  
| 
 
 Definition at line 310 of file SimpleDB.h. References PLearn::CharacterType, field_type_, PLearn::IntType, PLearn::ShortType, and PLearn::SignedCharType. Referenced by PLearn::SDBVMFieldDateDiff::convertField(), operator *(), operator+(), operator-(), operator/(), operator<(), PLearn::FieldRowRef::operator=(), and operator==().  | 
  
      
  | 
  
      
  | 
  
| 
 Some useful type-checking predicates. 
 Definition at line 306 of file SimpleDB.h. References field_type_, and PLearn::StringType.  | 
  
      
  | 
  
| 
 
 Definition at line 468 of file SimpleDB.cc. References PLearn::CharacterType, PLearn::DateType, double_val_, field_type_, PLearn::FieldType, FieldValue(), isFloating(), isIntegral(), long_val_, PLERROR, and PLearn::StringType.  | 
  
      
  | 
  
| 
 
 Definition at line 265 of file SimpleDB.h. References toDouble().  | 
  
      
  | 
  
| 
 
 Definition at line 266 of file SimpleDB.h. References toDouble().  | 
  
      
  | 
  
| 
 
 Definition at line 267 of file SimpleDB.h. References toDouble().  | 
  
      
  | 
  
| 
 
 Definition at line 269 of file SimpleDB.h. References toDate().  | 
  
      
  | 
  
| 
 
 Definition at line 268 of file SimpleDB.h. References toString().  | 
  
      
  | 
  
| 
 
 Definition at line 280 of file SimpleDB.h.  | 
  
      
  | 
  
| 
 Arithmetic (again, these don't always make sense). 
 Definition at line 396 of file SimpleDB.cc. References PLearn::CharacterType, PLearn::DateType, double_val_, field_type_, PLearn::FieldType, FieldValue(), isFloating(), isIntegral(), long_val_, PLERROR, and PLearn::StringType.  | 
  
      
  | 
  
| 
 
 Definition at line 429 of file SimpleDB.cc. References PLearn::CharacterType, date_val_, PLearn::DateType, PLearn::FieldValue::DateVal_t::day, double_val_, field_type_, PLearn::FieldType, FieldValue(), isFloating(), isIntegral(), long_val_, PLearn::FieldValue::DateVal_t::month, PLERROR, PLearn::StringType, and PLearn::FieldValue::DateVal_t::year.  | 
  
      
  | 
  
| 
 
 Definition at line 501 of file SimpleDB.cc. References PLearn::CharacterType, PLearn::DateType, double_val_, field_type_, PLearn::FieldType, FieldValue(), isFloating(), isIntegral(), long_val_, PLERROR, and PLearn::StringType.  | 
  
      
  | 
  
| 
 
 Definition at line 355 of file SimpleDB.cc. References date_val_, PLearn::DateType, PLearn::FieldValue::DateVal_t::day, double_val_, field_type_, PLearn::FieldType, isFloating(), isIntegral(), long_val_, PLearn::FieldValue::DateVal_t::month, PLERROR, string_val_, PLearn::StringType, and PLearn::FieldValue::DateVal_t::year.  | 
  
      
  | 
  
| 
 
 Definition at line 284 of file SimpleDB.h.  | 
  
      
  | 
  
| 
 --- Pseudo-polymorphic operations Assignment 
 Definition at line 308 of file SimpleDB.cc. References PLearn::swap().  | 
  
      
  | 
  
| 
 Relational (relational operations don't always make sense). 
 Definition at line 314 of file SimpleDB.cc. References date_val_, PLearn::DateType, PLearn::FieldValue::DateVal_t::day, double_val_, field_type_, PLearn::FieldType, isFloating(), isIntegral(), long_val_, PLearn::FieldValue::DateVal_t::month, PLERROR, string_val_, PLearn::StringType, and PLearn::FieldValue::DateVal_t::year.  | 
  
      
  | 
  
| 
 
 Definition at line 288 of file SimpleDB.h.  | 
  
      
  | 
  
| 
 
 Definition at line 292 of file SimpleDB.h.  | 
  
      
  | 
  
      
  | 
  
| 
 Swap the guts of this with someone else. 
 Definition at line 534 of file SimpleDB.cc. References PLearn::CharacterType, date_val_, PLearn::DateType, double_val_, PLearn::DoubleType, field_type_, PLearn::FloatType, PLearn::IntType, long_val_, precision_, PLearn::ShortType, PLearn::SignedCharType, string_val_, PLearn::StringType, and PLearn::Unknown.  | 
  
      
  | 
  
| 
 
 Definition at line 296 of file SimpleDB.cc. References date_val_, PLearn::DateType, PLearn::FieldValue::DateVal_t::day, field_type_, PLearn::FieldValue::DateVal_t::month, PLERROR, and PLearn::FieldValue::DateVal_t::year. Referenced by PLearn::SDBVMFieldICBCTargets::convertField(), PLearn::SDBVMFieldDateDiff::convertField(), PLearn::SDBVMFieldDateGreater::getDiscreteValue(), and operator PDate().  | 
  
      
  | 
  
| 
 
 Definition at line 267 of file SimpleDB.cc. References PLearn::CharacterType, PLearn::date_to_float(), date_val_, PLearn::DateType, PLearn::FieldValue::DateVal_t::day, double_val_, PLearn::DoubleType, field_type_, PLearn::FloatType, PLearn::IntType, isMissing(), long_val_, MISSING_VALUE, PLearn::FieldValue::DateVal_t::month, PLERROR, PLearn::ShortType, PLearn::SignedCharType, PLearn::StringType, PLearn::Unknown, and PLearn::FieldValue::DateVal_t::year. Referenced by operator double(), operator float(), and operator int().  | 
  
      
  | 
  
| 
 Conversion to strings and doubles. 
 Definition at line 248 of file SimpleDB.cc. References PLearn::CharacterType, date_val_, PLearn::DateType, PLearn::FieldValue::DateVal_t::day, double_val_, PLearn::DoubleType, field_type_, PLearn::FloatType, PLearn::IntType, isMissing(), long_val_, PLearn::FieldValue::DateVal_t::month, PLearn::ShortType, PLearn::SignedCharType, PLearn::space_to_underscore(), string_val_, PLearn::StringType, PLearn::tostring(), PLearn::Unknown, and PLearn::FieldValue::DateVal_t::year. Referenced by operator string(), PLearn::operator<<(), and PLearn::FieldRowRef::operator=().  | 
  
      
  | 
  
| 
 
 Definition at line 335 of file SimpleDB.h. Referenced by FieldValue(), isMissing(), operator-(), operator<(), PLearn::FieldRowRef::operator=(), operator==(), setMissing(), swap(), toDate(), toDouble(), and toString().  | 
  
      
  | 
  
| 
 
 Definition at line 334 of file SimpleDB.h. Referenced by FieldValue(), isMissing(), operator *(), operator+(), operator-(), operator/(), operator<(), PLearn::FieldRowRef::operator=(), operator==(), setMissing(), swap(), toDouble(), and toString().  | 
  
      
  | 
  
| 
 
 Definition at line 325 of file SimpleDB.h. Referenced by FieldValue(), isDate(), isFloating(), isIntegral(), isMissing(), isString(), operator *(), operator+(), operator-(), operator/(), operator<(), operator==(), setMissing(), swap(), toDate(), toDouble(), toString(), and ~FieldValue().  | 
  
      
  | 
  
| 
 
 Definition at line 333 of file SimpleDB.h. Referenced by FieldValue(), isMissing(), operator *(), operator+(), operator-(), operator/(), operator<(), PLearn::FieldRowRef::operator=(), operator==(), setMissing(), swap(), toDouble(), and toString().  | 
  
      
  | 
  
| 
 
 Definition at line 326 of file SimpleDB.h. Referenced by FieldValue(), and swap().  | 
  
      
  | 
  
| 
 
 Definition at line 332 of file SimpleDB.h. Referenced by FieldValue(), isMissing(), operator<(), operator==(), setMissing(), swap(), toString(), and ~FieldValue().  | 
  
 1.3.7