OmniSciDB  c07336695a
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 43 of file ArrowResultSet.h.

Member Typedef Documentation

◆ difference_type

Definition at line 46 of file ArrowResultSet.h.

◆ iterator_category

using ArrowResultSetRowIterator::iterator_category = std::input_iterator_tag

Definition at line 49 of file ArrowResultSet.h.

◆ pointer

Definition at line 47 of file ArrowResultSet.h.

◆ reference

Definition at line 48 of file ArrowResultSet.h.

◆ value_type

Definition at line 45 of file ArrowResultSet.h.

Constructor & Destructor Documentation

◆ ArrowResultSetRowIterator()

ArrowResultSetRowIterator::ArrowResultSetRowIterator ( const ArrowResultSet rs)
inlineprivate

Definition at line 73 of file ArrowResultSet.h.

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

Member Function Documentation

◆ operator!=()

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

Definition at line 54 of file ArrowResultSet.h.

References operator*().

54  {
55  return !(*this == other);
56  }
+ Here is the call graph for this function:

◆ operator*()

ArrowResultSetRowIterator::value_type ArrowResultSetRowIterator::operator* ( ) const
inline

Definition at line 149 of file ArrowResultSet.h.

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

Referenced by operator!=().

149  {
151 }
std::vector< TargetValue > getRowAt(const size_t index) const
const ArrowResultSet * result_set_
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator++() [1/2]

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

Definition at line 59 of file ArrowResultSet.h.

References crt_row_idx_.

59  {
60  crt_row_idx_++;
61  return *this;
62  }

◆ operator++() [2/2]

ArrowResultSetRowIterator ArrowResultSetRowIterator::operator++ ( int  )
inline

Definition at line 63 of file ArrowResultSet.h.

63  {
64  ArrowResultSetRowIterator iter(*this);
65  ++(*this);
66  return iter;
67  }

◆ operator==()

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

Definition at line 51 of file ArrowResultSet.h.

References crt_row_idx_, and result_set_.

51  {
52  return result_set_ == other.result_set_ && crt_row_idx_ == other.crt_row_idx_;
53  }
const ArrowResultSet * result_set_

Friends And Related Function Documentation

◆ ArrowResultSet

friend class ArrowResultSet
friend

Definition at line 74 of file ArrowResultSet.h.

Member Data Documentation

◆ crt_row_idx_

size_t ArrowResultSetRowIterator::crt_row_idx_
private

Definition at line 71 of file ArrowResultSet.h.

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

◆ result_set_

const ArrowResultSet* ArrowResultSetRowIterator::result_set_
private

Definition at line 70 of file ArrowResultSet.h.

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


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