OmniSciDB  0fdbebe030
 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 48 of file ArrowResultSet.h.

Member Typedef Documentation

Definition at line 51 of file ArrowResultSet.h.

using ArrowResultSetRowIterator::iterator_category = std::input_iterator_tag

Definition at line 54 of file ArrowResultSet.h.

Definition at line 52 of file ArrowResultSet.h.

Definition at line 53 of file ArrowResultSet.h.

Definition at line 50 of file ArrowResultSet.h.

Constructor & Destructor Documentation

ArrowResultSetRowIterator::ArrowResultSetRowIterator ( const ArrowResultSet rs)
inlineprivate

Definition at line 78 of file ArrowResultSet.h.

79  : 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 59 of file ArrowResultSet.h.

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

Definition at line 155 of file ArrowResultSet.h.

References crt_row_idx_, and result_set_.

155  {
156  return result_set_->getRowAt(crt_row_idx_);
157 }
const ArrowResultSet * result_set_
ArrowResultSetRowIterator& ArrowResultSetRowIterator::operator++ ( void  )
inline

Definition at line 64 of file ArrowResultSet.h.

References crt_row_idx_.

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

Definition at line 68 of file ArrowResultSet.h.

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

Definition at line 56 of file ArrowResultSet.h.

References crt_row_idx_, and result_set_.

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

Friends And Related Function Documentation

friend class ArrowResultSet
friend

Definition at line 79 of file ArrowResultSet.h.

Member Data Documentation

size_t ArrowResultSetRowIterator::crt_row_idx_
private

Definition at line 76 of file ArrowResultSet.h.

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

const ArrowResultSet* ArrowResultSetRowIterator::result_set_
private

Definition at line 75 of file ArrowResultSet.h.

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


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