EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TuplesetReader::iterator Class Reference

#include "RowsetReader.h"

Inheritance diagram for TuplesetReader::iterator:
Collaboration diagram for TuplesetReader::iterator:

Public Member Functions

 iterator ()
 
PyRepGetRep (size_t index) const
 
- Public Member Functions inherited from PyRowsetReader::iterator
PyRep::PyType GetType (size_t index) const
 
bool IsNone (size_t index) const
 
bool GetBool (size_t index) const
 
uint32 GetInt (size_t index) const
 
int64 GetLong (size_t index) const
 
double GetFloat (size_t index) const
 
const char * GetString (size_t index) const
 
const char * GetWString (size_t index) const
 
- Public Member Functions inherited from BaseRowsetReader::iterator
std::string GetAsString (size_t index) const
 
const iteratoroperator++ ()
 
const iteratoroperator++ (int)
 
const iteratoroperator-- ()
 
const iteratoroperator-- (int)
 
bool operator== (const iterator &oth) const
 
bool operator!= (const iterator &oth) const
 

Protected Member Functions

 iterator (TuplesetReader *parent, size_t rowIndex)
 
BaseRowsetReader_baseReader () const
 
void _SetRow (size_t rowIndex)
 
- Protected Member Functions inherited from BaseRowsetReader::iterator
 iterator ()
 
virtual size_t _rowIndex () const
 

Protected Attributes

TuplesetReadermParent
 
PyListmRow
 
- Protected Attributes inherited from BaseRowsetReader::iterator
size_t mRowIndex
 

Friends

class TuplesetReader
 

Detailed Description

Definition at line 149 of file RowsetReader.h.

Constructor & Destructor Documentation

TuplesetReader::iterator::iterator ( )

Definition at line 221 of file RowsetReader.cpp.

222 : mParent( NULL )
223 {
224 }
TuplesetReader * mParent
Definition: RowsetReader.h:164
TuplesetReader::iterator::iterator ( TuplesetReader parent,
size_t  rowIndex 
)
protected

Definition at line 226 of file RowsetReader.cpp.

References _SetRow().

227 : mParent( parent )
228 {
229  _SetRow( rowIndex );
230 }
TuplesetReader * mParent
Definition: RowsetReader.h:164
void _SetRow(size_t rowIndex)

Here is the call graph for this function:

Member Function Documentation

BaseRowsetReader* TuplesetReader::iterator::_baseReader ( ) const
inlineprotectedvirtual

Implements BaseRowsetReader::iterator.

Definition at line 160 of file RowsetReader.h.

References mParent.

160 { return mParent; }
TuplesetReader * mParent
Definition: RowsetReader.h:164
void TuplesetReader::iterator::_SetRow ( size_t  rowIndex)
protectedvirtual

Reimplemented from BaseRowsetReader::iterator.

Definition at line 232 of file RowsetReader.cpp.

References BaseRowsetReader::iterator::_SetRow().

Referenced by iterator().

233 {
234  if( _rowIndex() != rowIndex )
235  {
236  mRow = ( mParent->rowCount() > rowIndex
237  ? mParent->_GetRow( rowIndex )
238  : NULL );
239  }
240 
242 }
size_t rowCount() const
Definition: RowsetReader.h:171
TuplesetReader * mParent
Definition: RowsetReader.h:164
virtual void _SetRow(size_t rowIndex)
Definition: RowsetReader.h:79
virtual size_t _rowIndex() const
Definition: RowsetReader.h:76
PyList * _GetRow(size_t index) const
Definition: RowsetReader.h:177

Here is the call graph for this function:

Here is the caller graph for this function:

PyRep* TuplesetReader::iterator::GetRep ( size_t  index) const
inlinevirtual

Implements PyRowsetReader::iterator.

Definition at line 155 of file RowsetReader.h.

References PyList::GetItem(), and mRow.

155 { return mRow->GetItem( index ); }
PyRep * GetItem(size_t index) const
Returns Python object.
Definition: PyRep.h:674

Here is the call graph for this function:

Friends And Related Function Documentation

friend class TuplesetReader
friend

Definition at line 151 of file RowsetReader.h.

Member Data Documentation

TuplesetReader* TuplesetReader::iterator::mParent
protected

Definition at line 164 of file RowsetReader.h.

Referenced by _baseReader().

PyList* TuplesetReader::iterator::mRow
protected

Definition at line 165 of file RowsetReader.h.

Referenced by GetRep().


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