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

PLearn::FieldRowRef Class Reference

#include <SimpleDB.h>

Collaboration diagram for PLearn::FieldRowRef:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FieldRowRef (const RowIterator &it)
 operator FieldValue () const
 Conversion from / assignment into FieldValue.

FieldRowRefoperator= (const FieldValue &)
FieldRowRefoperator= (const FieldRowRef rhs)
RowIterator operator & () const
 Taking the address of a FieldRowRef returns a RowIterator.


Private Attributes

RowIterator it_
 of course, this just wraps an iterator


Detailed Description

A FieldRowRef represents a reference to a (polymorphic) field in a row. It can transparently convert itself into a FieldValue, or be assigned from a FieldValue.

Definition at line 1018 of file SimpleDB.h.


Constructor & Destructor Documentation

PLearn::FieldRowRef::FieldRowRef const RowIterator it  )  [inline]
 

Definition at line 1021 of file SimpleDB.h.


Member Function Documentation

RowIterator PLearn::FieldRowRef::operator &  )  const [inline]
 

Taking the address of a FieldRowRef returns a RowIterator.

Definition at line 1197 of file SimpleDB.h.

PLearn::FieldRowRef::operator FieldValue  )  const
 

Conversion from / assignment into FieldValue.

Definition at line 686 of file SimpleDB.cc.

References PLearn::RowIterator::asCharacter(), PLearn::RowIterator::asDate(), PLearn::RowIterator::asDouble(), PLearn::RowIterator::asFloat(), PLearn::RowIterator::asInt(), PLearn::RowIterator::asShort(), PLearn::RowIterator::asSignedChar(), PLearn::RowIterator::asString(), it_, and x.

FieldRowRef& PLearn::FieldRowRef::operator= const FieldRowRef  rhs  )  [inline]
 

Definition at line 1027 of file SimpleDB.h.

FieldRowRef & PLearn::FieldRowRef::operator= const FieldValue  ) 
 

Definition at line 710 of file SimpleDB.cc.

References PLearn::RowIterator::asCharacter(), PLearn::RowIterator::asDate(), PLearn::RowIterator::asDouble(), PLearn::RowIterator::asFloat(), PLearn::RowIterator::asInt(), PLearn::RowIterator::asShort(), PLearn::RowIterator::asSignedChar(), PLearn::RowIterator::asString(), PLearn::FieldValue::date_val_, PLearn::FieldValue::double_val_, PLearn::FieldValue::isDate(), PLearn::FieldValue::isFloating(), PLearn::FieldValue::isIntegral(), it_, PLearn::FieldValue::long_val_, PLERROR, PLearn::RowIterator::precision(), PLearn::FieldValue::toString(), and x.


Member Data Documentation

RowIterator PLearn::FieldRowRef::it_ [private]
 

of course, this just wraps an iterator

Definition at line 1035 of file SimpleDB.h.

Referenced by operator FieldValue(), and operator=().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:23:04 2004 for PLearn by doxygen 1.3.7