TrinityCore
ResultSet Class Reference

#include <QueryResult.h>

Public Member Functions

 ResultSet (MySQLResult *result, MySQLField *fields, uint64 rowCount, uint32 fieldCount)
 
 ~ResultSet ()
 
bool NextRow ()
 
uint64 GetRowCount () const
 
uint32 GetFieldCount () const
 
FieldFetch () const
 
Field const & operator[] (std::size_t index) const
 

Protected Attributes

std::vector< QueryResultFieldMetadata_fieldMetadata
 
uint64 _rowCount
 
Field_currentRow
 
uint32 _fieldCount
 

Private Member Functions

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

Private Attributes

MySQLResult_result
 
MySQLField_fields
 

Detailed Description

Definition at line 25 of file QueryResult.h.

Constructor & Destructor Documentation

◆ ResultSet() [1/2]

ResultSet::ResultSet ( MySQLResult result,
MySQLField fields,
uint64  rowCount,
uint32  fieldCount 
)

Definition at line 206 of file QueryResult.cpp.

+ Here is the call graph for this function:

◆ ~ResultSet()

ResultSet::~ResultSet ( )

Definition at line 353 of file QueryResult.cpp.

+ Here is the call graph for this function:

◆ ResultSet() [2/2]

ResultSet::ResultSet ( ResultSet const &  right)
privatedelete

Member Function Documentation

◆ CleanUp()

void ResultSet::CleanUp ( )
private

Definition at line 412 of file QueryResult.cpp.

+ Here is the caller graph for this function:

◆ Fetch()

Field * ResultSet::Fetch ( ) const
inline

Definition at line 35 of file QueryResult.h.

◆ GetFieldCount()

uint32 ResultSet::GetFieldCount ( ) const
inline

Definition at line 33 of file QueryResult.h.

◆ GetRowCount()

uint64 ResultSet::GetRowCount ( ) const
inline

Definition at line 32 of file QueryResult.h.

+ Here is the caller graph for this function:

◆ NextRow()

bool ResultSet::NextRow ( )

Definition at line 363 of file QueryResult.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

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

◆ operator[]()

Field const & ResultSet::operator[] ( std::size_t  index) const

Definition at line 440 of file QueryResult.cpp.

Member Data Documentation

◆ _currentRow

Field* ResultSet::_currentRow
protected

Definition at line 41 of file QueryResult.h.

◆ _fieldCount

uint32 ResultSet::_fieldCount
protected

Definition at line 42 of file QueryResult.h.

◆ _fieldMetadata

std::vector<QueryResultFieldMetadata> ResultSet::_fieldMetadata
protected

Definition at line 39 of file QueryResult.h.

◆ _fields

MySQLField* ResultSet::_fields
private

Definition at line 47 of file QueryResult.h.

◆ _result

MySQLResult* ResultSet::_result
private

Definition at line 46 of file QueryResult.h.

◆ _rowCount

uint64 ResultSet::_rowCount
protected

Definition at line 40 of file QueryResult.h.


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