OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 43 of file ArrowResultSet.h.

Member Typedef Documentation

Definition at line 46 of file ArrowResultSet.h.

using ArrowResultSetRowIterator::iterator_category = std::input_iterator_tag

Definition at line 49 of file ArrowResultSet.h.

Definition at line 47 of file ArrowResultSet.h.

Definition at line 48 of file ArrowResultSet.h.

Definition at line 45 of file ArrowResultSet.h.

Constructor & Destructor Documentation

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

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

Definition at line 54 of file ArrowResultSet.h.

54  {
55  return !(*this == other);
56  }
ArrowResultSetRowIterator::value_type ArrowResultSetRowIterator::operator* ( ) const
inline

Definition at line 149 of file ArrowResultSet.h.

References crt_row_idx_, and result_set_.

149  {
150  return result_set_->getRowAt(crt_row_idx_);
151 }
const ArrowResultSet * result_set_
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  }
ArrowResultSetRowIterator ArrowResultSetRowIterator::operator++ ( int  )
inline

Definition at line 63 of file ArrowResultSet.h.

63  {
64  ArrowResultSetRowIterator iter(*this);
65  ++(*this);
66  return iter;
67  }
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

friend class ArrowResultSet
friend

Definition at line 74 of file ArrowResultSet.h.

Member Data Documentation

size_t ArrowResultSetRowIterator::crt_row_idx_
private

Definition at line 71 of file ArrowResultSet.h.

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

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: