Savarese Software Research Corporation
ResultSet Class Reference

#include <types.h>

List of all members.

Public Types

enum  ColumnType {
  Integer = SQLITE_INTEGER, Float = SQLITE_FLOAT, Text = SQLITE_TEXT, Blob = SQLITE_BLOB,
  Null = SQLITE_NULL
}

Public Member Functions

unsigned int count_values () const
bool done () const
unsigned int row_number () const
bool next () SSRC_DECL_THROW(DatabaseException)
ColumnType column_type (const unsigned int index) const
template<typename T >
value (unsigned int index=0) const
template<typename T >
values () const
template<typename T >
 operator T () const
template<typename functor >
unsigned int for_each (const functor &apply) SSRC_DECL_THROW(DatabaseException)

Friends

class PreparedStatement

Detailed Description

Definition at line 173 of file database/types.h.


Member Enumeration Documentation

Enumerator:
Integer 
Float 
Text 
Blob 
Null 

Definition at line 187 of file database/types.h.


Member Function Documentation

ColumnType ResultSet::column_type ( const unsigned int  index) const [inline]

Definition at line 218 of file database/types.h.

unsigned int ResultSet::count_values ( ) const [inline]

Definition at line 195 of file database/types.h.

bool ResultSet::done ( ) const [inline]

Definition at line 199 of file database/types.h.

Referenced by for_each().

template<typename functor >
unsigned int ResultSet::for_each ( const functor &  apply) [inline]

Definition at line 250 of file database/types.h.

References done(), and next().

bool ResultSet::next ( ) [inline]

Definition at line 203 of file database/types.h.

References detail::step().

Referenced by for_each().

template<typename T >
ResultSet::operator T ( ) const [inline]

Definition at line 244 of file database/types.h.

unsigned int ResultSet::row_number ( ) const [inline]

Definition at line 201 of file database/types.h.

template<typename T >
T ResultSet::values ( ) const [inline]

Definition at line 227 of file database/types.h.


Friends And Related Function Documentation

friend class PreparedStatement [friend]

Definition at line 174 of file database/types.h.


The documentation for this class was generated from the following file:

Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.