Skip to main content
FRAMES NO FRAMES

Class IloCsvReader::TableIterator

Definition file: ilconcert/ilocsvreader.h
Map of IloCsvReader::TableIteratorIloCsvReader::TableIteratorIloCsvReader::TableIterator
Table-iterator of csv readers.

TableIterator is a nested class of the class IloCsvReader. It is to be used only for multitable files.

IloCsvReader::TableIterator allows you to step through all the tables of the multitable csv data file on which the csv reader was created.

Method Summary
public IloBoolok() const
public IloCsvTableReaderoperator*() const
public TableIterator &operator++()
public TableIterator(IloCsvReader csv)
Method Detail

TableIterator

public TableIterator(IloCsvReader csv)

This constructor creates an iterator to traverse all the tables in the csv data file on which the csv reader csv was created.


ok

public IloBool ok() const

This member function returns IloTrue if the current position of the iterator is a valid one.

It returns IloFalse if the iterator reaches the end of the table.


operator*

public IloCsvTableReader operator*() const

This operator returns the current instance of IloCsvTable (representing the current table in the csv file); the one to which the invoking iterator points.


operator++

public TableIterator & operator++()

This left-increment operator shifts the current position of the iterator to the next instance of IloCsvTableReader representing the next line in the file.