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

#include "RowsetReader.h"

Inheritance diagram for RowsetReader::iterator:
Collaboration diagram for RowsetReader::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 (RowsetReader *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

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

Friends

class RowsetReader
 

Detailed Description

Definition at line 111 of file RowsetReader.h.

Constructor & Destructor Documentation

RowsetReader::iterator::iterator ( )

Definition at line 185 of file RowsetReader.cpp.

186 : mParent( NULL ),
187  mRow( NULL )
188 {
189 }
RowsetReader * mParent
Definition: RowsetReader.h:126
RowsetReader::iterator::iterator ( RowsetReader parent,
size_t  rowIndex 
)
protected

Definition at line 191 of file RowsetReader.cpp.

References _SetRow().

192 : mParent( parent ),
193  mRow( NULL )
194 {
195  _SetRow( rowIndex );
196 }
RowsetReader * mParent
Definition: RowsetReader.h:126
void _SetRow(size_t rowIndex)

Here is the call graph for this function:

Member Function Documentation

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

Implements BaseRowsetReader::iterator.

Definition at line 122 of file RowsetReader.h.

References mParent.

122 { return mParent; }
RowsetReader * mParent
Definition: RowsetReader.h:126
void RowsetReader::iterator::_SetRow ( size_t  rowIndex)
protectedvirtual

Reimplemented from BaseRowsetReader::iterator.

Definition at line 198 of file RowsetReader.cpp.

References BaseRowsetReader::iterator::_SetRow().

Referenced by iterator().

199 {
200  if( _rowIndex() != rowIndex )
201  {
202  mRow = ( mParent->rowCount() > rowIndex
203  ? mParent->_GetRow( rowIndex )
204  : NULL );
205  }
206 
208 }
size_t rowCount() const
Definition: RowsetReader.h:133
virtual void _SetRow(size_t rowIndex)
Definition: RowsetReader.h:79
RowsetReader * mParent
Definition: RowsetReader.h:126
virtual size_t _rowIndex() const
Definition: RowsetReader.h:76
PyList * _GetRow(size_t index) const
Definition: RowsetReader.h:139

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements PyRowsetReader::iterator.

Definition at line 117 of file RowsetReader.h.

References PyList::GetItem(), and mRow.

117 { 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 RowsetReader
friend

Definition at line 113 of file RowsetReader.h.

Member Data Documentation

RowsetReader* RowsetReader::iterator::mParent
protected

Definition at line 126 of file RowsetReader.h.

Referenced by _baseReader().

PyList* RowsetReader::iterator::mRow
protected

Definition at line 127 of file RowsetReader.h.

Referenced by GetRep().


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