IODA Bundle
odc::TextReaderIterator Class Reference

#include <TextReaderIterator.h>

Inheritance diagram for odc::TextReaderIterator:
[legend]
Collaboration diagram for odc::TextReaderIterator:
[legend]

Public Member Functions

 TextReaderIterator (TextReader &owner)
 
 TextReaderIterator (TextReader &owner, const eckit::PathName &)
 
 ~TextReaderIterator ()
 
bool isNewDataset ()
 
const double * data () const
 
double * data ()
 
double & data (size_t)
 
bool operator!= (const TextReaderIterator &other)
 
core::MetaDatacolumns ()
 
int close ()
 
bool next ()
 
size_t dataOffset (size_t i) const
 The offset of a given column in the doubles[] data array. More...
 
size_t rowDataSizeDoubles () const
 

Static Public Member Functions

static eckit::sql::BitfieldDef parseBitfields (const std::string &)
 

Public Attributes

bool noMore_
 
bool ownsF_
 
int refCount_
 

Protected Member Functions

 TextReaderIterator ()
 

Private Member Functions

 TextReaderIterator (const TextReaderIterator &)
 
TextReaderIteratoroperator= (const TextReaderIterator &)
 
void initRowBuffer ()
 
void parseHeader ()
 

Private Attributes

core::MetaData columns_
 
double * lastValues_
 
size_t * columnOffsets_
 
size_t rowDataSizeDoubles_
 
unsigned long long nrows_
 
std::string delimiter_
 
std::istream * in_
 
bool newDataset_
 

Friends

class odc::TextReader
 
class odc::IteratorProxy< odc::TextReaderIterator, odc::TextReader, const double >
 

Detailed Description

Definition at line 32 of file TextReaderIterator.h.

Constructor & Destructor Documentation

◆ TextReaderIterator() [1/4]

odc::TextReaderIterator::TextReaderIterator ( TextReader owner)

Definition at line 35 of file TextReaderIterator.cc.

Here is the call graph for this function:

◆ TextReaderIterator() [2/4]

odc::TextReaderIterator::TextReaderIterator ( TextReader owner,
const eckit::PathName &   
)

◆ ~TextReaderIterator()

odc::TextReaderIterator::~TextReaderIterator ( )

Definition at line 164 of file TextReaderIterator.cc.

Here is the call graph for this function:

◆ TextReaderIterator() [3/4]

odc::TextReaderIterator::TextReaderIterator ( const TextReaderIterator )
private

◆ TextReaderIterator() [4/4]

odc::TextReaderIterator::TextReaderIterator ( )
inlineprotected

Definition at line 91 of file TextReaderIterator.h.

Member Function Documentation

◆ close()

int odc::TextReaderIterator::close ( )

Definition at line 280 of file TextReaderIterator.cc.

Here is the caller graph for this function:

◆ columns()

core::MetaData& odc::TextReaderIterator::columns ( )
inline

Definition at line 47 of file TextReaderIterator.h.

Here is the caller graph for this function:

◆ data() [1/3]

double* odc::TextReaderIterator::data ( )
inline

Definition at line 41 of file TextReaderIterator.h.

Here is the caller graph for this function:

◆ data() [2/3]

const double* odc::TextReaderIterator::data ( ) const
inline

Definition at line 40 of file TextReaderIterator.h.

Here is the caller graph for this function:

◆ data() [3/3]

double & odc::TextReaderIterator::data ( size_t  i)

Definition at line 274 of file TextReaderIterator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dataOffset()

size_t odc::TextReaderIterator::dataOffset ( size_t  i) const
inline

The offset of a given column in the doubles[] data array.

Definition at line 58 of file TextReaderIterator.h.

◆ initRowBuffer()

void odc::TextReaderIterator::initRowBuffer ( )
private

Definition at line 177 of file TextReaderIterator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isNewDataset()

bool odc::TextReaderIterator::isNewDataset ( )

Definition at line 272 of file TextReaderIterator.cc.

◆ next()

bool odc::TextReaderIterator::next ( )

Definition at line 194 of file TextReaderIterator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool odc::TextReaderIterator::operator!= ( const TextReaderIterator other)

Definition at line 172 of file TextReaderIterator.cc.

◆ operator=()

TextReaderIterator& odc::TextReaderIterator::operator= ( const TextReaderIterator )
private

◆ parseBitfields()

eckit::sql::BitfieldDef odc::TextReaderIterator::parseBitfields ( const std::string &  c)
static

Definition at line 73 of file TextReaderIterator.cc.

Here is the caller graph for this function:

◆ parseHeader()

void odc::TextReaderIterator::parseHeader ( )
private

Definition at line 126 of file TextReaderIterator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rowDataSizeDoubles()

size_t odc::TextReaderIterator::rowDataSizeDoubles ( ) const
inline

Definition at line 61 of file TextReaderIterator.h.

Friends And Related Function Documentation

◆ odc::IteratorProxy< odc::TextReaderIterator, odc::TextReader, const double >

friend class odc::IteratorProxy< odc::TextReaderIterator, odc::TextReader, const double >
friend

Definition at line 93 of file TextReaderIterator.h.

◆ odc::TextReader

friend class odc::TextReader
friend

Definition at line 93 of file TextReaderIterator.h.

Member Data Documentation

◆ columnOffsets_

size_t* odc::TextReaderIterator::columnOffsets_
private

Definition at line 73 of file TextReaderIterator.h.

◆ columns_

core::MetaData odc::TextReaderIterator::columns_
private

Definition at line 71 of file TextReaderIterator.h.

◆ delimiter_

std::string odc::TextReaderIterator::delimiter_
private

Definition at line 76 of file TextReaderIterator.h.

◆ in_

std::istream* odc::TextReaderIterator::in_
private

Definition at line 78 of file TextReaderIterator.h.

◆ lastValues_

double* odc::TextReaderIterator::lastValues_
private

Definition at line 72 of file TextReaderIterator.h.

◆ newDataset_

bool odc::TextReaderIterator::newDataset_
private

Definition at line 82 of file TextReaderIterator.h.

◆ noMore_

bool odc::TextReaderIterator::noMore_

Definition at line 84 of file TextReaderIterator.h.

◆ nrows_

unsigned long long odc::TextReaderIterator::nrows_
private

Definition at line 75 of file TextReaderIterator.h.

◆ ownsF_

bool odc::TextReaderIterator::ownsF_

Definition at line 86 of file TextReaderIterator.h.

◆ refCount_

int odc::TextReaderIterator::refCount_

Definition at line 87 of file TextReaderIterator.h.

◆ rowDataSizeDoubles_

size_t odc::TextReaderIterator::rowDataSizeDoubles_
private

Definition at line 74 of file TextReaderIterator.h.


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