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

TableScanCursor Class Reference

#include <TableCursors.h>

Inherits Table::Cursor.

List of all members.


Detailed Description

Cursor that takes a where clause, and scans a table for matching tuples.


Public Member Functions

bool avail () const
 Returns true iff there are more rows..
const char * rowData () const
 Returns a pointer to the data of the current row.
virtual void deleteRow () const
 Delete the current row from the database.
virtual void setTuple (const char *tuple)
 Set the input tuple in this cursors internal context.
virtual void reset ()
 Point the cursor at the first valid row.
virtual TableScanCursoroperator++ ()
 Move forward to the next valid row Set that row data as the index 1 duple in the eval context.
virtual string as_string () const
 String representation of this cursor.
 TableScanCursor (Table *table, ptr< Expression > where_clause)
virtual ~TableScanCursor ()
 Close the database cursor on destruction.

Static Public Member Functions

ptr< TableScanCursorfactory (Table *table, ptr< SQLWhereClause > wc)


Constructor & Destructor Documentation

TableScanCursor::TableScanCursor Table table,
ptr< Expression where_clause
 

virtual TableScanCursor::~TableScanCursor  )  [virtual]
 

Close the database cursor on destruction.

TODO: Some kind of pool of these, maybe.


Member Function Documentation

virtual string TableScanCursor::as_string  )  const [virtual]
 

String representation of this cursor.

Reimplemented from Table::Cursor.

bool TableScanCursor::avail  )  const [virtual]
 

Returns true iff there are more rows..

Implements Table::Cursor.

virtual void TableScanCursor::deleteRow  )  const [virtual]
 

Delete the current row from the database.

Valid only if avail().

Implements Table::Cursor.

ptr< TableScanCursor > TableScanCursor::factory Table table,
ptr< SQLWhereClause wc
[static]
 

virtual TableScanCursor& TableScanCursor::operator++  )  [virtual]
 

Move forward to the next valid row Set that row data as the index 1 duple in the eval context.

Implements Table::Cursor.

virtual void TableScanCursor::reset  )  [virtual]
 

Point the cursor at the first valid row.

This will need to be called before the cursor is valid after construction.

Implements Table::Cursor.

const char* TableScanCursor::rowData  )  const [virtual]
 

Returns a pointer to the data of the current row.

Valid only if avail().

Implements Table::Cursor.

virtual void TableScanCursor::setTuple const char *  tuple  )  [virtual]
 

Set the input tuple in this cursors internal context.

Must be called before reset, if the cursor is going to use data from the input tuple.

Implements Table::Cursor.


The documentation for this class was generated from the following files:
Generated on Fri Nov 12 15:15:24 2004 for Borealis by doxygen 1.3.8