OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ArrowResultSetRowIterator Class Reference

#include <ArrowResultSet.h>

+ Collaboration diagram for ArrowResultSetRowIterator:

Public Types

using value_type = std::vector< TargetValue >
 
using difference_type = std::ptrdiff_t
 
using pointer = std::vector< TargetValue > *
 
using reference = std::vector< TargetValue > &
 
using iterator_category = std::input_iterator_tag
 

Public Member Functions

bool operator== (const ArrowResultSetRowIterator &other) const
 
bool operator!= (const ArrowResultSetRowIterator &other) const
 
value_type operator* () const
 
ArrowResultSetRowIteratoroperator++ (void)
 
ArrowResultSetRowIterator operator++ (int)
 

Private Member Functions

 ArrowResultSetRowIterator (const ArrowResultSet *rs)
 

Private Attributes

const ArrowResultSetresult_set_
 
size_t crt_row_idx_
 

Friends

class ArrowResultSet
 

Detailed Description

Definition at line 59 of file ArrowResultSet.h.

Member Typedef Documentation

Definition at line 62 of file ArrowResultSet.h.

using ArrowResultSetRowIterator::iterator_category = std::input_iterator_tag

Definition at line 65 of file ArrowResultSet.h.

Definition at line 63 of file ArrowResultSet.h.

Definition at line 64 of file ArrowResultSet.h.

Definition at line 61 of file ArrowResultSet.h.

Constructor & Destructor Documentation

ArrowResultSetRowIterator::ArrowResultSetRowIterator ( const ArrowResultSet rs)
inlineprivate

Definition at line 89 of file ArrowResultSet.h.

90  : result_set_(rs), crt_row_idx_(0){};
const ArrowResultSet * result_set_

Member Function Documentation

bool ArrowResultSetRowIterator::operator!= ( const ArrowResultSetRowIterator other) const
inline

Definition at line 70 of file ArrowResultSet.h.

70  {
71  return !(*this == other);
72  }
ArrowResultSetRowIterator::value_type ArrowResultSetRowIterator::operator* ( ) const
inline

Definition at line 193 of file ArrowResultSet.h.

References crt_row_idx_, ArrowResultSet::getRowAt(), and result_set_.

193  {
195 }
std::vector< TargetValue > getRowAt(const size_t index) const
const ArrowResultSet * result_set_

+ Here is the call graph for this function:

ArrowResultSetRowIterator& ArrowResultSetRowIterator::operator++ ( void  )
inline

Definition at line 75 of file ArrowResultSet.h.

References crt_row_idx_.

75  {
76  crt_row_idx_++;
77  return *this;
78  }
ArrowResultSetRowIterator ArrowResultSetRowIterator::operator++ ( int  )
inline

Definition at line 79 of file ArrowResultSet.h.

79  {
80  ArrowResultSetRowIterator iter(*this);
81  ++(*this);
82  return iter;
83  }
bool ArrowResultSetRowIterator::operator== ( const ArrowResultSetRowIterator other) const
inline

Definition at line 67 of file ArrowResultSet.h.

References crt_row_idx_, and result_set_.

67  {
68  return result_set_ == other.result_set_ && crt_row_idx_ == other.crt_row_idx_;
69  }
const ArrowResultSet * result_set_

Friends And Related Function Documentation

friend class ArrowResultSet
friend

Definition at line 90 of file ArrowResultSet.h.

Member Data Documentation

size_t ArrowResultSetRowIterator::crt_row_idx_
private

Definition at line 87 of file ArrowResultSet.h.

Referenced by operator*(), operator++(), and operator==().

const ArrowResultSet* ArrowResultSetRowIterator::result_set_
private

Definition at line 86 of file ArrowResultSet.h.

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


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