Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ResultSet Class Reference

#include <QueryResult.h>

Collaboration diagram for ResultSet:

Public Member Functions

FieldFetch () const
uint32 GetFieldCount () const
uint64 GetRowCount () const
bool NextRow ()
const Fieldoperator[] (uint32 index) const
 ResultSet (MYSQL_RES *result, MYSQL_FIELD *fields, uint64 rowCount, uint32 fieldCount)
 ~ResultSet ()

Protected Attributes

Field_currentRow
uint32 _fieldCount
uint64 _rowCount

Private Member Functions

void CleanUp ()
ResultSetoperator= (ResultSet const &right)=delete
 ResultSet (ResultSet const &right)=delete

Private Attributes

MYSQL_FIELD * _fields
MYSQL_RES * _result

Detailed Description

Definition at line 18 of file QueryResult.h.

Constructor & Destructor Documentation

◆ ResultSet() [1/2]

ResultSet::ResultSet ( MYSQL_RES * result,
MYSQL_FIELD * fields,
uint64 rowCount,
uint32 fieldCount )

Definition at line 9 of file QueryResult.cpp.

References _currentRow, _fieldCount, _fields, _result, _rowCount, and ASSERT.

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

◆ ~ResultSet()

ResultSet::~ResultSet ( )

Definition at line 128 of file QueryResult.cpp.

References CleanUp().

◆ ResultSet() [2/2]

ResultSet::ResultSet ( ResultSet const & right)
privatedelete

References ResultSet().

Member Function Documentation

◆ CleanUp()

void ResultSet::CleanUp ( )
private

Definition at line 194 of file QueryResult.cpp.

References _currentRow, and _result.

Referenced by NextRow(), and ~ResultSet().

◆ Fetch()

Field * ResultSet::Fetch ( ) const
inline

Definition at line 28 of file QueryResult.h.

References _currentRow.

◆ GetFieldCount()

uint32 ResultSet::GetFieldCount ( ) const
inline

Definition at line 26 of file QueryResult.h.

References _fieldCount.

◆ GetRowCount()

◆ NextRow()

◆ operator=()

ResultSet & ResultSet::operator= ( ResultSet const & right)
privatedelete

References ResultSet().

◆ operator[]()

const Field & ResultSet::operator[] ( uint32 index) const
inline

Definition at line 29 of file QueryResult.h.

References _currentRow, _fieldCount, and ASSERT.

Member Data Documentation

◆ _currentRow

Field* ResultSet::_currentRow
protected

Definition at line 37 of file QueryResult.h.

Referenced by CleanUp(), Fetch(), NextRow(), operator[](), and ResultSet().

◆ _fieldCount

uint32 ResultSet::_fieldCount
protected

Definition at line 38 of file QueryResult.h.

Referenced by GetFieldCount(), NextRow(), operator[](), and ResultSet().

◆ _fields

MYSQL_FIELD* ResultSet::_fields
private

Definition at line 43 of file QueryResult.h.

Referenced by NextRow(), and ResultSet().

◆ _result

MYSQL_RES* ResultSet::_result
private

Definition at line 42 of file QueryResult.h.

Referenced by CleanUp(), NextRow(), and ResultSet().

◆ _rowCount

uint64 ResultSet::_rowCount
protected

Definition at line 36 of file QueryResult.h.

Referenced by GetRowCount(), and ResultSet().


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