OmniSciDB  d2f719934e
 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 49 of file ArrowResultSet.h.

Member Typedef Documentation

Definition at line 52 of file ArrowResultSet.h.

using ArrowResultSetRowIterator::iterator_category = std::input_iterator_tag

Definition at line 55 of file ArrowResultSet.h.

Definition at line 53 of file ArrowResultSet.h.

Definition at line 54 of file ArrowResultSet.h.

Definition at line 51 of file ArrowResultSet.h.

Constructor & Destructor Documentation

ArrowResultSetRowIterator::ArrowResultSetRowIterator ( const ArrowResultSet rs)
inlineprivate

Definition at line 79 of file ArrowResultSet.h.

80  : 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 60 of file ArrowResultSet.h.

60  {
61  return !(*this == other);
62  }
ArrowResultSetRowIterator::value_type ArrowResultSetRowIterator::operator* ( ) const
inline

Definition at line 164 of file ArrowResultSet.h.

References crt_row_idx_, and result_set_.

164  {
165  return result_set_->getRowAt(crt_row_idx_);
166 }
const ArrowResultSet * result_set_
ArrowResultSetRowIterator& ArrowResultSetRowIterator::operator++ ( void  )
inline

Definition at line 65 of file ArrowResultSet.h.

References crt_row_idx_.

65  {
66  crt_row_idx_++;
67  return *this;
68  }
ArrowResultSetRowIterator ArrowResultSetRowIterator::operator++ ( int  )
inline

Definition at line 69 of file ArrowResultSet.h.

69  {
70  ArrowResultSetRowIterator iter(*this);
71  ++(*this);
72  return iter;
73  }
bool ArrowResultSetRowIterator::operator== ( const ArrowResultSetRowIterator other) const
inline

Definition at line 57 of file ArrowResultSet.h.

References crt_row_idx_, and result_set_.

57  {
58  return result_set_ == other.result_set_ && crt_row_idx_ == other.crt_row_idx_;
59  }
const ArrowResultSet * result_set_

Friends And Related Function Documentation

friend class ArrowResultSet
friend

Definition at line 80 of file ArrowResultSet.h.

Member Data Documentation

size_t ArrowResultSetRowIterator::crt_row_idx_
private

Definition at line 77 of file ArrowResultSet.h.

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

const ArrowResultSet* ArrowResultSetRowIterator::result_set_
private

Definition at line 76 of file ArrowResultSet.h.

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


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