42 #include "private/qsqlcachedresult_p.h" 70 void init(
int count,
bool fo);
170 while(
at() < i - 1) {
186 while (
at() < i + 1) {
The QVariant class acts like a union for the most common Qt data types.
QVariant data(int i)
Returns the data for field index in the current row as a QVariant.
bool isActive() const
Returns true if the result has records to be retrieved; otherwise returns false.
QSqlCachedResult::ValueCache cache
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
#define QT_END_NAMESPACE
This macro expands to.
bool fetchFirst()
Positions the result to the first record (row 0) in the result.
bool isForwardOnly() const
Returns true if you can only scroll forward through the result set; otherwise returns false...
bool isNull() const
Returns true if this is a NULL variant, false otherwise.
The QSqlDriver class is an abstract base class for accessing specific SQL databases.
int at() const
Returns the current (zero-based) row position of the result.
bool fetchNext()
Positions the result to the next available record (row) in the result.
virtual void setAt(int at)
This function is provided for derived classes to set the internal (zero-based) row position to index...
void resize(int size)
Sets the size of the vector to size.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QSqlCachedResultPrivate * d
void clear()
Removes all the elements from the vector and releases the memory used by the vector.
bool isNull(int i)
Returns true if the field at position index in the current row is null; otherwise returns false...
void init(int count, bool fo)
bool fetch(int i)
Positions the result to an arbitrary (zero-based) row index.
bool fetchLast()
Positions the result to the last record (last row) in the result.
virtual void virtual_hook(int id, void *data)
const T & at(int i) const
Returns the item at index position i in the vector.
QSqlCachedResult(const QSqlDriver *db)
bool canSeek(int i) const
bool fetchPrevious()
Positions the result to the previous record (row) in the result.
static const uint initial_cache_size
virtual bool gotoNext(ValueCache &values, int index)=0
QSqlCachedResultPrivate()
virtual void setActive(bool a)
This function is provided for derived classes to set the internal active state to active...
virtual ~QSqlCachedResult()
The QSqlResult class provides an abstract interface for accessing data from specific SQL databases...
int size() const
Returns the number of items in the vector.
void virtual_hook(int id, void *data)